4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
LUA_COMPAT=( lua5-{3,4} )
|
7 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
7 |
PYTHON_COMPAT=( python3_{10..11} )
|
8 |
8 |
|
9 |
9 |
inherit autotools lua-single perl-module python-single-r1 toolchain-funcs
|
10 |
10 |
|
11 |
11 |
DESCRIPTION="Red Hat Package Management Utils"
|
12 |
12 |
HOMEPAGE="https://rpm.org/ https://github.com/rpm-software-management/rpm"
|
13 |
|
SRC_URI="https://ftp.osuosl.org/pub/rpm/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2
|
14 |
|
http://ftp.rpm.org/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2"
|
|
13 |
SRC_URI="
|
|
14 |
https://ftp.osuosl.org/pub/rpm/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2
|
|
15 |
http://ftp.rpm.org/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2
|
|
16 |
"
|
15 |
17 |
|
16 |
18 |
LICENSE="GPL-2 LGPL-2"
|
17 |
19 |
SLOT="0"
|
18 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
|
19 |
|
|
|
20 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
|
|
21 |
IUSE="acl audit caps +berkdb doc dbus nls openmp python readline selinux +sqlite test +zstd"
|
|
22 |
REQUIRED_USE="
|
|
23 |
${LUA_REQUIRED_USE}
|
|
24 |
python? ( ${PYTHON_REQUIRED_USE} )
|
|
25 |
"
|
20 |
26 |
# Tests are broken. See bug #657500
|
21 |
27 |
RESTRICT="test"
|
22 |
28 |
|
23 |
|
IUSE="acl audit caps +berkdb doc dbus nls openmp python readline selinux +sqlite test +zstd"
|
24 |
|
REQUIRED_USE="${LUA_REQUIRED_USE}
|
25 |
|
python? ( ${PYTHON_REQUIRED_USE} )"
|
26 |
|
|
27 |
29 |
DEPEND="
|
28 |
30 |
${LUA_DEPS}
|
29 |
31 |
!app-arch/rpm5
|
... | ... | |
73 |
75 |
|
74 |
76 |
use python && python-single-r1_pkg_setup
|
75 |
77 |
|
76 |
|
# Added USE=openmp and this check for bug #779769
|
|
78 |
# bug #779769
|
77 |
79 |
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
78 |
80 |
}
|
79 |
81 |
|
... | ... | |
94 |
96 |
src_configure() {
|
95 |
97 |
# rpm no longer supports berkdb, but has readonly support.
|
96 |
98 |
# https://github.com/rpm-software-management/rpm/commit/4290300e24c5ab17c615b6108f38438e31eeb1d0
|
97 |
|
econf \
|
98 |
|
--enable-libelf \
|
99 |
|
--without-selinux \
|
100 |
|
--disable-inhibit-plugin \
|
101 |
|
--with-crypto=libgcrypt \
|
102 |
|
$(use_enable berkdb bdb-ro) \
|
103 |
|
$(use_enable python) \
|
104 |
|
$(use_enable nls) \
|
105 |
|
$(use_enable openmp) \
|
106 |
|
$(use_enable dbus inhibit-plugin) \
|
107 |
|
$(use_enable sqlite) \
|
108 |
|
$(use_with caps cap) \
|
109 |
|
$(use_with acl) \
|
110 |
|
$(use_with audit) \
|
111 |
|
$(use_with readline) \
|
|
99 |
local myeconfargs=(
|
|
100 |
--enable-libelf
|
|
101 |
--without-selinux
|
|
102 |
--disable-inhibit-plugin
|
|
103 |
--with-crypto=libgcrypt
|
|
104 |
$(use_enable berkdb bdb-ro)
|
|
105 |
$(use_enable python)
|
|
106 |
$(use_enable nls)
|
|
107 |
$(use_enable openmp)
|
|
108 |
$(use_enable dbus inhibit-plugin)
|
|
109 |
$(use_enable sqlite)
|
|
110 |
$(use_with caps cap)
|
|
111 |
$(use_with acl)
|
|
112 |
$(use_with audit)
|
|
113 |
$(use_with readline)
|
112 |
114 |
$(use_enable zstd zstd $(usex zstd yes no))
|
|
115 |
)
|
|
116 |
|
|
117 |
econf "${myeconfargs[@]}"
|
113 |
118 |
}
|
114 |
119 |
|
115 |
120 |
src_test() {
|