Skip to content

Commit

Permalink
app-arch/rpm: Add src_test
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/657488
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
Whissi committed Jun 6, 2018
1 parent 55af2aa commit 0bc99ab
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app-arch/rpm/rpm-4.14.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"

IUSE="acl caps doc lua nls python selinux"
IUSE="acl caps doc lua nls python selinux test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

CDEPEND="!app-arch/rpm5
Expand All @@ -40,6 +40,7 @@ DEPEND="${CDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )
virtual/pkgconfig
test? ( sys-apps/fakechroot )
"
RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-rpm )
Expand Down Expand Up @@ -106,6 +107,10 @@ src_install() {
perl_delete_localpod
}

src_test() {
emake check
}

pkg_postinst() {
if [[ -f "${EROOT}"/var/lib/rpm/Packages ]] ; then
einfo "RPM database found... Rebuilding database (may take a while)..."
Expand Down
4 changes: 4 additions & 0 deletions profiles/arch/alpha/package.use.mask
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Thomas Deutschmann <[email protected]> (06 Jun 2018)
# Needs sys-apps/fakechroot which isn't keyworded
app-arch/rpm test

# Tomáš Mózes <[email protected]> (05 Jun 2018)
# Unkeyworded dependencies.
app-admin/syslog-ng amqp mongodb
Expand Down
4 changes: 4 additions & 0 deletions profiles/arch/arm/package.use.mask
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Thomas Deutschmann <[email protected]> (06 Jun 2018)
# Needs sys-apps/fakechroot which isn't keyworded
app-arch/rpm test

# Andreas Sturmlechner <[email protected]> (03 Jun 2018)
# net-wireless/soapysdr not keyworded
net-wireless/gr-osmosdr soapy
Expand Down
4 changes: 4 additions & 0 deletions profiles/arch/arm64/package.use.mask
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Thomas Deutschmann <[email protected]> (06 Jun 2018)
# Needs sys-apps/fakechroot which isn't keyworded
app-arch/rpm test

# Alex Bennee <[email protected]> (31 May 2018)
# bunch of dev-perl packages not yet keyworded
# and the i3 ebuild currently has RESTRICT="test" due to upstream bug
Expand Down
4 changes: 4 additions & 0 deletions profiles/arch/ia64/package.use.mask
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Thomas Deutschmann <[email protected]> (06 Jun 2018)
# Needs sys-apps/fakechroot which isn't keyworded
app-arch/rpm test

# Michał Górny <[email protected]> (15 Apr 2018)
# Unkeyworded deps.
net-misc/curl curl_ssl_axtls
Expand Down

0 comments on commit 0bc99ab

Please sign in to comment.