Skip to content

Commit

Permalink
sys-libs/uclibc-ng: version bump to 1.0.14
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
blueness committed Apr 18, 2016
1 parent b64d15e commit 96c8f60
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sys-libs/uclibc-ng/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST uClibc-ng-1.0.13.tar.bz2 2950676 SHA256 2d3530fa9321022db30c4576b272d8113efb75393f9b43281bd3b014c75bd2d4 SHA512 aae994d06119756161b9a38eeb8b4a0b8531dfaf13094158218cce2500cd02dcac9067160a5a2764d355e1208ee7cda04f4c1ddf7f6812c794f4680c938e9b22 WHIRLPOOL e612f9a152335c9b89fe6e10dcab0ad44978c205da8230597f3ff3b8adee81a95a71dfcec36afc9c0c262fa56d643de47a705840e841363a13b0af2fee686653
DIST uClibc-ng-1.0.14.tar.bz2 2859522 SHA256 5e3ed3c217786b238e7e356fae05c75a158d1852e72ddea954787bdcf4d63dfa SHA512 293b9260ca9a62170746e441de161ebfedb171050f168db0131fa1aec1819477ff792204525747aec82c7f473b2f48eb93aedabcd768814ac207b28032112366 WHIRLPOOL 93dce8443c3b6d0b4a616de6084cf5169d24a55e0cf9445d90d24ea66dc51902f1612371747171967431ad30a8129fa3b22830d55d746e013dc2929a0f4d81eb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pkg_setup() {
}

src_prepare() {
local version subversion
local version subversion extraversion

# uclibc-ng tries to create a two sym link with ld.so,
# ld-uClibc.so.{0,MAJOR_VERSION} -> ld-uClibc-<version>.so
Expand All @@ -269,18 +269,21 @@ src_prepare() {
version=( $(get_version_components) )
if [[ -z ${version[1]} ]]; then
subversion=0
extraversion=0
else
subversion=${version[1]}
if [[ -z ${version[2]} ]]; then
subversion=${version[1]}
extraversion=0
else
subversion=${version[1]}.${version[2]}
extraversion=.${version[2]}
fi
fi

sed -i \
-e "/^MAJOR_VERSION/s|:=.*|:= 0|" \
-e "/^MINOR_VERSION/s|:=.*|:= ${version[0]}|" \
-e "/^SUBLEVEL/s|:=.*|:= ${subversion}|" \
-e "/^EXTRAVERSION/s|:=.*|:= ${extraversion}|" \
Rules.mak || die

eapply_user
Expand Down
9 changes: 6 additions & 3 deletions sys-libs/uclibc-ng/uclibc-ng-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pkg_setup() {
}

src_prepare() {
local version subversion
local version subversion extraversion

# uclibc-ng tries to create a two sym link with ld.so,
# ld-uClibc.so.{0,MAJOR_VERSION} -> ld-uClibc-<version>.so
Expand All @@ -269,18 +269,21 @@ src_prepare() {
version=( $(get_version_components) )
if [[ -z ${version[1]} ]]; then
subversion=0
extraversion=0
else
subversion=${version[1]}
if [[ -z ${version[2]} ]]; then
subversion=${version[1]}
extraversion=0
else
subversion=${version[1]}.${version[2]}
extraversion=.${version[2]}
fi
fi

sed -i \
-e "/^MAJOR_VERSION/s|:=.*|:= 0|" \
-e "/^MINOR_VERSION/s|:=.*|:= ${version[0]}|" \
-e "/^SUBLEVEL/s|:=.*|:= ${subversion}|" \
-e "/^EXTRAVERSION/s|:=.*|:= ${extraversion}|" \
Rules.mak || die

eapply_user
Expand Down

0 comments on commit 96c8f60

Please sign in to comment.