summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2020-09-29 09:01:30 +0300
committerJoonas Niilola <juippis@gentoo.org>2020-09-29 09:01:30 +0300
commitb6072ec4da998d5a2305a09eb45d97590953f7da (patch)
tree15bf75fbd248dc288a9edde19a5a94060e8a1d8c /dev-util/lcov
parentdev-util/lcov: add 1.15 (diff)
downloadgentoo-b6072ec4da998d5a2305a09eb45d97590953f7da.tar.gz
gentoo-b6072ec4da998d5a2305a09eb45d97590953f7da.tar.bz2
gentoo-b6072ec4da998d5a2305a09eb45d97590953f7da.zip
dev-util/lcov: add optfeature, emake -j1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util/lcov')
-rw-r--r--dev-util/lcov/lcov-1.15.ebuild11
-rw-r--r--dev-util/lcov/lcov-9999.ebuild11
2 files changed, 14 insertions, 8 deletions
diff --git a/dev-util/lcov/lcov-1.15.ebuild b/dev-util/lcov/lcov-1.15.ebuild
index 67bf3e5ce14c..aaf14998d4b6 100644
--- a/dev-util/lcov/lcov-1.15.ebuild
+++ b/dev-util/lcov/lcov-1.15.ebuild
@@ -11,20 +11,18 @@ else
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-linux ~x64-macos"
fi
-inherit prefix
+inherit optfeature prefix
DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov"
HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php"
LICENSE="GPL-2+"
SLOT="0"
-IUSE="png"
RDEPEND="
dev-lang/perl
dev-perl/JSON
dev-perl/PerlIO-gzip
- png? ( dev-perl/GD[png] )
"
src_prepare() {
@@ -37,5 +35,10 @@ src_prepare() {
src_compile() { :; }
src_install() {
- emake PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install
+ emake -j1 PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install
+}
+
+pkg_postinst() {
+ elog "Optional features:"
+ optfeature "png output support" dev-perl/GD[png]
}
diff --git a/dev-util/lcov/lcov-9999.ebuild b/dev-util/lcov/lcov-9999.ebuild
index 295385b60d64..456ec4605d03 100644
--- a/dev-util/lcov/lcov-9999.ebuild
+++ b/dev-util/lcov/lcov-9999.ebuild
@@ -11,20 +11,18 @@ else
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-linux ~x64-macos"
fi
-inherit prefix
+inherit optfeature prefix
DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov"
HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php"
LICENSE="GPL-2+"
SLOT="0"
-IUSE="png"
RDEPEND="
dev-lang/perl
dev-perl/JSON
dev-perl/PerlIO-gzip
- png? ( dev-perl/GD[png] )
"
src_prepare() {
@@ -37,5 +35,10 @@ src_prepare() {
src_compile() { :; }
src_install() {
- emake PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install
+ emake -j1 PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install
+}
+
+pkg_postinst() {
+ elog "Optional features:"
+ optfeature "png output support" dev-perl/GD[png]
}