summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-08-06 19:34:16 +0000
committerMike Frysinger <vapier@gentoo.org>2012-08-06 19:34:16 +0000
commit3cd1e243c403022709e8c7b340435a40a7ad9fee (patch)
tree8fab63de41d75e6161458374323d835ffbd73e48
parentVersion bump. Eapi4fy it. Take exclusive maintainership (diff)
downloadgentoo-2-3cd1e243c403022709e8c7b340435a40a7ad9fee.tar.gz
gentoo-2-3cd1e243c403022709e8c7b340435a40a7ad9fee.tar.bz2
gentoo-2-3cd1e243c403022709e8c7b340435a40a7ad9fee.zip
Add USE=static support.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
-rw-r--r--app-arch/pigz/ChangeLog6
-rw-r--r--app-arch/pigz/pigz-2.2.5.ebuild17
2 files changed, 14 insertions, 9 deletions
diff --git a/app-arch/pigz/ChangeLog b/app-arch/pigz/ChangeLog
index 829a04436a1f..69a664298c71 100644
--- a/app-arch/pigz/ChangeLog
+++ b/app-arch/pigz/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-arch/pigz
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/ChangeLog,v 1.22 2012/08/03 08:32:07 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/ChangeLog,v 1.23 2012/08/06 19:34:16 vapier Exp $
+
+ 06 Aug 2012; Mike Frysinger <vapier@gentoo.org> pigz-2.2.5.ebuild:
+ Add USE=static support.
03 Aug 2012; Tim Harder <radhermit@gentoo.org> -pigz-2.1.6.ebuild,
-pigz-2.1.6-r1.ebuild, -files/pigz-2.1.6-doubledash.patch,
@@ -99,4 +102,3 @@
26 Mar 2009; Timothy Redaelli <drizzt@gentoo.org>
+files/pigz-2.1.4-respect-flags.patch, +metadata.xml, +pigz-2.1.4.ebuild:
New ebuild
-
diff --git a/app-arch/pigz/pigz-2.2.5.ebuild b/app-arch/pigz/pigz-2.2.5.ebuild
index 962e6192b54e..55426e7e9761 100644
--- a/app-arch/pigz/pigz-2.2.5.ebuild
+++ b/app-arch/pigz/pigz-2.2.5.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.2.5.ebuild,v 1.1 2012/08/03 08:30:06 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.2.5.ebuild,v 1.2 2012/08/06 19:34:16 vapier Exp $
EAPI="4"
-inherit toolchain-funcs
+inherit toolchain-funcs flag-o-matic
DESCRIPTION="A parallel implementation of gzip"
HOMEPAGE="http://www.zlib.net/pigz/"
@@ -13,25 +13,28 @@ SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~mips ~sparc ~x86 ~amd64-linux ~sparc64-solaris"
-IUSE="symlink test"
+IUSE="static symlink test"
-RDEPEND="sys-libs/zlib"
+LIB_DEPEND="sys-libs/zlib[static-libs(+)]"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )
test? ( app-arch/ncompress )"
src_prepare() {
sed -i -e '1,3d' -e '5s/$(CC)/$(CC) $(LDFLAGS)/' Makefile || die
+ use static && append-ldflags -static
tc-export CC
}
src_install() {
dobin ${PN}
- dosym /usr/bin/${PN} /usr/bin/un${PN}
+ dosym ${PN} /usr/bin/un${PN}
dodoc README
doman ${PN}.1
if use symlink; then
- dosym /usr/bin/${PN} /usr/bin/gzip
- dosym /usr/bin/un${PN} /usr/bin/gunzip
+ dosym ${PN} /usr/bin/gzip
+ dosym un${PN} /usr/bin/gunzip
fi
}