Skip to content

Commit

Permalink
dev-util/lcov: add optfeature, emake -j1
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
juippis committed Sep 29, 2020
1 parent a9a2d89 commit b6072ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions dev-util/lcov/lcov-1.15.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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]
}
11 changes: 7 additions & 4 deletions dev-util/lcov/lcov-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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]
}

0 comments on commit b6072ec

Please sign in to comment.