From b6072ec4da998d5a2305a09eb45d97590953f7da Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Tue, 29 Sep 2020 09:01:30 +0300 Subject: [PATCH] dev-util/lcov: add optfeature, emake -j1 Signed-off-by: Joonas Niilola --- dev-util/lcov/lcov-1.15.ebuild | 11 +++++++---- dev-util/lcov/lcov-9999.ebuild | 11 +++++++---- 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 67bf3e5ce14c6..aaf14998d4b60 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 295385b60d64a..456ec4605d036 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] }