1 |
commit: 58ab8d2c4e3a315c9dda5fccf0079e69c1d4f79f |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 5 23:47:29 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 6 00:32:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58ab8d2c |
7 |
|
8 |
app-crypt/gnupg: support cross-compile |
9 |
|
10 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
12 |
|
13 |
app-crypt/gnupg/gnupg-2.2.10-r1.ebuild | 27 +++++++++++++++------------ |
14 |
1 file changed, 15 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/app-crypt/gnupg/gnupg-2.2.10-r1.ebuild b/app-crypt/gnupg/gnupg-2.2.10-r1.ebuild |
17 |
index 063744008a2..7d51332a544 100644 |
18 |
--- a/app-crypt/gnupg/gnupg-2.2.10-r1.ebuild |
19 |
+++ b/app-crypt/gnupg/gnupg-2.2.10-r1.ebuild |
20 |
@@ -17,29 +17,30 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s |
21 |
IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb wks-server" |
22 |
|
23 |
# Existence of executables is checked during configuration. |
24 |
-DEPEND=">=dev-libs/npth-1.2 |
25 |
+DEPEND="!app-crypt/dirmngr |
26 |
>=dev-libs/libassuan-2.5.0 |
27 |
>=dev-libs/libgcrypt-1.7.3 |
28 |
>=dev-libs/libgpg-error-1.28 |
29 |
>=dev-libs/libksba-1.3.4 |
30 |
+ >=dev-libs/npth-1.2 |
31 |
>=net-misc/curl-7.10 |
32 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
33 |
- sys-libs/zlib |
34 |
- ldap? ( net-nds/openldap ) |
35 |
bzip2? ( app-arch/bzip2 ) |
36 |
+ ldap? ( net-nds/openldap ) |
37 |
readline? ( sys-libs/readline:0= ) |
38 |
smartcard? ( usb? ( virtual/libusb:0 ) ) |
39 |
+ ssl? ( >=net-libs/gnutls-3.0:0= ) |
40 |
+ sys-libs/zlib |
41 |
tofu? ( >=dev-db/sqlite-3.7 ) |
42 |
- virtual/mta |
43 |
- app-crypt/pinentry |
44 |
- !app-crypt/dirmngr" |
45 |
+ virtual/mta" |
46 |
|
47 |
RDEPEND="${DEPEND} |
48 |
- selinux? ( sec-policy/selinux-gpg ) |
49 |
- nls? ( virtual/libintl )" |
50 |
+ app-crypt/pinentry |
51 |
+ nls? ( virtual/libintl ) |
52 |
+ selinux? ( sec-policy/selinux-gpg )" |
53 |
|
54 |
-BDEPEND="nls? ( sys-devel/gettext ) |
55 |
- doc? ( sys-apps/texinfo )" |
56 |
+BDEPEND="virtual/pkgconfig |
57 |
+ doc? ( sys-apps/texinfo ) |
58 |
+ nls? ( sys-devel/gettext )" |
59 |
|
60 |
S="${WORKDIR}/${MY_P}" |
61 |
|
62 |
@@ -81,11 +82,13 @@ src_configure() { |
63 |
$(use_enable wks-server wks-tools) \ |
64 |
$(use_with ldap) \ |
65 |
$(use_with readline) \ |
66 |
+ --disable-ntbtls \ |
67 |
--enable-all-tests \ |
68 |
--enable-gpg \ |
69 |
--enable-gpgsm \ |
70 |
--enable-large-secmem \ |
71 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
72 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" \ |
73 |
+ $(./configure --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#") |
74 |
} |
75 |
|
76 |
src_compile() { |