summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-04 15:54:15 -0500
committerMike Frysinger <vapier@gentoo.org>2015-11-04 15:55:32 -0500
commit3da173897a05735b80c9cf62bbd9d9966d92288c (patch)
treee3ad59b21c57bdbacbc36f224208b1ce7a05f600 /dev-libs/pcre++
parentdev-libs/pcre++: update to EAPI=5 (diff)
downloadgentoo-3da173897a05735b80c9cf62bbd9d9966d92288c.tar.gz
gentoo-3da173897a05735b80c9cf62bbd9d9966d92288c.tar.bz2
gentoo-3da173897a05735b80c9cf62bbd9d9966d92288c.zip
dev-libs/pcre++: add USE=static-libs support
Diffstat (limited to 'dev-libs/pcre++')
-rw-r--r--dev-libs/pcre++/pcre++-0.9.5-r1.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-libs/pcre++/pcre++-0.9.5-r1.ebuild b/dev-libs/pcre++/pcre++-0.9.5-r1.ebuild
index 751000a3acf6..0003bf23ec95 100644
--- a/dev-libs/pcre++/pcre++-0.9.5-r1.ebuild
+++ b/dev-libs/pcre++/pcre++-0.9.5-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="http://www.daemon.de/files/mirror/ftp.daemon.de/scip/Apps/${PN}/${P}.ta
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 s390 sh sparc x86"
-IUSE=""
+IUSE="static-libs"
DEPEND="dev-libs/libpcre"
RDEPEND="${DEPEND}"
@@ -25,11 +25,19 @@ src_prepare() {
EPATCH_FORCE="yes" \
epatch
+ # Disable examples which we never run/install.
+ echo > examples/Makefile.am || die
+
eautoreconf
}
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
src_install() {
default
+ use static-libs || find "${ED}"/usr -name 'lib*.la' -delete
dohtml -r doc/html/.
doman doc/man/man3/Pcre.3