Skip to content

Commit

Permalink
dev-util/pkgconf: move test deps to BDEPEND, misc tweaks
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.68, Repoman-2.3.16_p2
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
floppym committed Jul 26, 2019
1 parent 418b54f commit a843600
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dev-util/pkgconf/pkgconf-1.6.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ IUSE="+pkg-config test"
# tests require 'kyua'
RESTRICT="!test? ( test )"

DEPEND="
BDEPEND="
test? (
dev-libs/atf
dev-util/kyua
Expand Down Expand Up @@ -54,7 +54,8 @@ src_prepare() {
}

multilib_src_configure() {
ECONF_SOURCE="${S}" econf
local ECONF_SOURCE="${S}"
econf
}

multilib_src_test() {
Expand All @@ -70,6 +71,9 @@ multilib_src_install() {
dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
else
rm "${ED}"/usr/share/aclocal/pkg.m4 || die
rmdir "${ED}"/usr/share/aclocal || die
rm "${ED}"/usr/share/man/man7/pkg.m4.7 || die
rmdir "${ED}"/usr/share/man/man7 || die
fi
}

Expand Down
8 changes: 6 additions & 2 deletions dev-util/pkgconf/pkgconf-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ IUSE="+pkg-config test"
# tests require 'kyua'
RESTRICT="!test? ( test )"

DEPEND="
BDEPEND="
test? (
dev-libs/atf
dev-util/kyua
Expand Down Expand Up @@ -54,7 +54,8 @@ src_prepare() {
}

multilib_src_configure() {
ECONF_SOURCE="${S}" econf
local ECONF_SOURCE="${S}"
econf
}

multilib_src_test() {
Expand All @@ -70,6 +71,9 @@ multilib_src_install() {
dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
else
rm "${ED}"/usr/share/aclocal/pkg.m4 || die
rmdir "${ED}"/usr/share/aclocal || die
rm "${ED}"/usr/share/man/man7/pkg.m4.7 || die
rmdir "${ED}"/usr/share/man/man7 || die
fi
}

Expand Down

0 comments on commit a843600

Please sign in to comment.