1 |
commit: d69e4f3df3d6b2cc382256544449cdab39d724f1 |
2 |
Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 30 17:42:30 2018 +0000 |
4 |
Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 30 17:42:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d69e4f3d |
7 |
|
8 |
app-crypt/gnupg: Use ssl instead of gnutls USE flag |
9 |
|
10 |
Closes: https://bugs.gentoo.org/646130 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
app-crypt/gnupg/gnupg-2.2.4-r1.ebuild | 129 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 129 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/gnupg/gnupg-2.2.4-r1.ebuild b/app-crypt/gnupg/gnupg-2.2.4-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..90eea8ab852 |
19 |
--- /dev/null |
20 |
+++ b/app-crypt/gnupg/gnupg-2.2.4-r1.ebuild |
21 |
@@ -0,0 +1,129 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI="6" |
26 |
+ |
27 |
+inherit systemd toolchain-funcs |
28 |
+ |
29 |
+MY_P="${P/_/-}" |
30 |
+ |
31 |
+DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
32 |
+HOMEPAGE="http://www.gnupg.org/" |
33 |
+SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
38 |
+IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb wks-server" |
39 |
+ |
40 |
+COMMON_DEPEND_LIBS=" |
41 |
+ >=dev-libs/npth-1.2 |
42 |
+ >=dev-libs/libassuan-2.5.0 |
43 |
+ >=dev-libs/libgcrypt-1.7.3 |
44 |
+ >=dev-libs/libgpg-error-1.24 |
45 |
+ >=dev-libs/libksba-1.3.4 |
46 |
+ >=net-misc/curl-7.10 |
47 |
+ ssl? ( >=net-libs/gnutls-3.0:0= ) |
48 |
+ sys-libs/zlib |
49 |
+ ldap? ( net-nds/openldap ) |
50 |
+ bzip2? ( app-arch/bzip2 ) |
51 |
+ readline? ( sys-libs/readline:0= ) |
52 |
+ smartcard? ( usb? ( virtual/libusb:0 ) ) |
53 |
+ tofu? ( >=dev-db/sqlite-3.7 ) |
54 |
+ " |
55 |
+COMMON_DEPEND_BINS="app-crypt/pinentry |
56 |
+ !app-crypt/dirmngr" |
57 |
+ |
58 |
+# Existence of executables is checked during configuration. |
59 |
+DEPEND="${COMMON_DEPEND_LIBS} |
60 |
+ ${COMMON_DEPEND_BINS} |
61 |
+ nls? ( sys-devel/gettext ) |
62 |
+ doc? ( sys-apps/texinfo )" |
63 |
+ |
64 |
+RDEPEND="${COMMON_DEPEND_LIBS} |
65 |
+ ${COMMON_DEPEND_BINS} |
66 |
+ selinux? ( sec-policy/selinux-gpg ) |
67 |
+ nls? ( virtual/libintl )" |
68 |
+ |
69 |
+S="${WORKDIR}/${MY_P}" |
70 |
+ |
71 |
+DOCS=( |
72 |
+ ChangeLog NEWS README THANKS TODO VERSION |
73 |
+ doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
74 |
+) |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
78 |
+) |
79 |
+ |
80 |
+src_configure() { |
81 |
+ local myconf=() |
82 |
+ |
83 |
+ if use smartcard; then |
84 |
+ myconf+=( |
85 |
+ --enable-scdaemon |
86 |
+ $(use_enable usb ccid-driver) |
87 |
+ ) |
88 |
+ else |
89 |
+ myconf+=( --disable-scdaemon ) |
90 |
+ fi |
91 |
+ |
92 |
+ if use elibc_SunOS || use elibc_AIX; then |
93 |
+ myconf+=( --disable-symcryptrun ) |
94 |
+ else |
95 |
+ myconf+=( --enable-symcryptrun ) |
96 |
+ fi |
97 |
+ |
98 |
+ # glib fails and picks up clang's internal stdint.h causing weird errors |
99 |
+ [[ ${CC} == *clang ]] && \ |
100 |
+ export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
101 |
+ |
102 |
+ econf \ |
103 |
+ "${myconf[@]}" \ |
104 |
+ $(use_enable bzip2) \ |
105 |
+ $(use_enable ssl gnutls) \ |
106 |
+ $(use_enable nls) \ |
107 |
+ $(use_enable tofu) \ |
108 |
+ $(use_enable wks-server wks-tools) \ |
109 |
+ $(use_with ldap) \ |
110 |
+ $(use_with readline) \ |
111 |
+ --enable-gpg \ |
112 |
+ --enable-gpgsm \ |
113 |
+ --enable-large-secmem \ |
114 |
+ --enable-all-tests \ |
115 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" |
116 |
+} |
117 |
+ |
118 |
+src_compile() { |
119 |
+ default |
120 |
+ |
121 |
+ use doc && emake -C doc html |
122 |
+} |
123 |
+ |
124 |
+src_test() { |
125 |
+ #Bug: 638574 |
126 |
+ use tofu && export TESTFLAGS=--parallel |
127 |
+ default |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ default |
132 |
+ |
133 |
+ use tools && |
134 |
+ dobin \ |
135 |
+ tools/{convert-from-106,gpg-check-pattern} \ |
136 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
137 |
+ tools/make-dns-cert |
138 |
+ |
139 |
+ dosym gpg /usr/bin/gpg2 |
140 |
+ dosym gpgv /usr/bin/gpgv2 |
141 |
+ echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
142 |
+ echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
143 |
+ |
144 |
+ dodir /etc/env.d |
145 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
146 |
+ |
147 |
+ use doc && dodoc doc/gnupg.html/* doc/*.png |
148 |
+ |
149 |
+ systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
150 |
+} |