1 |
commit: 232d82a08b3c9fc3e0e809bd68a46f9982151b73 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 5 18:39:08 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 5 19:26:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=232d82a0 |
7 |
|
8 |
app-crypt/gnupg: eapi bump |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
12 |
|
13 |
app-crypt/gnupg/gnupg-2.2.9-r1.ebuild | 123 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 123 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/gnupg/gnupg-2.2.9-r1.ebuild b/app-crypt/gnupg/gnupg-2.2.9-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..063744008a2 |
19 |
--- /dev/null |
20 |
+++ b/app-crypt/gnupg/gnupg-2.2.9-r1.ebuild |
21 |
@@ -0,0 +1,123 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit flag-o-matic 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 ~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 |
+# Existence of executables is checked during configuration. |
41 |
+DEPEND=">=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.28 |
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 |
+ virtual/mta |
55 |
+ app-crypt/pinentry |
56 |
+ !app-crypt/dirmngr" |
57 |
+ |
58 |
+RDEPEND="${DEPEND} |
59 |
+ selinux? ( sec-policy/selinux-gpg ) |
60 |
+ nls? ( virtual/libintl )" |
61 |
+ |
62 |
+BDEPEND="nls? ( sys-devel/gettext ) |
63 |
+ doc? ( sys-apps/texinfo )" |
64 |
+ |
65 |
+S="${WORKDIR}/${MY_P}" |
66 |
+ |
67 |
+DOCS=( |
68 |
+ ChangeLog NEWS README THANKS TODO VERSION |
69 |
+ doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
70 |
+) |
71 |
+ |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
74 |
+) |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local myconf=() |
78 |
+ |
79 |
+ if use prefix && use usb; then |
80 |
+ # bug #649598 |
81 |
+ append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
82 |
+ fi |
83 |
+ |
84 |
+ if use elibc_SunOS || use elibc_AIX; then |
85 |
+ myconf+=( --disable-symcryptrun ) |
86 |
+ else |
87 |
+ myconf+=( --enable-symcryptrun ) |
88 |
+ fi |
89 |
+ |
90 |
+ # glib fails and picks up clang's internal stdint.h causing weird errors |
91 |
+ [[ ${CC} == *clang ]] && \ |
92 |
+ export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
93 |
+ |
94 |
+ econf \ |
95 |
+ "${myconf[@]}" \ |
96 |
+ $(use_enable bzip2) \ |
97 |
+ $(use_enable nls) \ |
98 |
+ $(use_enable smartcard scdaemon) \ |
99 |
+ $(use_enable ssl gnutls) \ |
100 |
+ $(use_enable tofu) \ |
101 |
+ $(use_enable usb ccid-driver) \ |
102 |
+ $(use_enable wks-server wks-tools) \ |
103 |
+ $(use_with ldap) \ |
104 |
+ $(use_with readline) \ |
105 |
+ --enable-all-tests \ |
106 |
+ --enable-gpg \ |
107 |
+ --enable-gpgsm \ |
108 |
+ --enable-large-secmem \ |
109 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ default |
114 |
+ |
115 |
+ use doc && emake -C doc html |
116 |
+} |
117 |
+ |
118 |
+src_test() { |
119 |
+ #Bug: 638574 |
120 |
+ use tofu && export TESTFLAGS=--parallel |
121 |
+ default |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ default |
126 |
+ |
127 |
+ use tools && |
128 |
+ dobin \ |
129 |
+ tools/{convert-from-106,gpg-check-pattern} \ |
130 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
131 |
+ tools/make-dns-cert |
132 |
+ |
133 |
+ dosym gpg /usr/bin/gpg2 |
134 |
+ dosym gpgv /usr/bin/gpgv2 |
135 |
+ echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
136 |
+ echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
137 |
+ |
138 |
+ dodir /etc/env.d |
139 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
140 |
+ |
141 |
+ use doc && dodoc doc/gnupg.html/* doc/*.png |
142 |
+ |
143 |
+ systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
144 |
+} |