1 |
commit: c63980f7bba608bc46a454b484635f281f463b2c |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 21:09:30 2016 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 21:13:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c63980f7 |
7 |
|
8 |
dev-libs/gmime: Add optional support for S/MIME |
9 |
|
10 |
Fix deps: gpgme is only required for S/MIME, but gmime used to depend on |
11 |
it unconditionally. |
12 |
|
13 |
Bump both revisions because the one depending on gtk-sharp is not going |
14 |
to be stabilized soon. |
15 |
|
16 |
Gentoo-Bug: 583614 |
17 |
|
18 |
Package-Manager: portage-2.3.0_rc1 |
19 |
|
20 |
dev-libs/gmime/gmime-2.6.20-r2.ebuild | 71 +++++++++++++++++++++++++++++++++++ |
21 |
dev-libs/gmime/gmime-2.6.20-r3.ebuild | 70 ++++++++++++++++++++++++++++++++++ |
22 |
dev-libs/gmime/metadata.xml | 3 ++ |
23 |
3 files changed, 144 insertions(+) |
24 |
|
25 |
diff --git a/dev-libs/gmime/gmime-2.6.20-r2.ebuild b/dev-libs/gmime/gmime-2.6.20-r2.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..bff36f5 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/gmime/gmime-2.6.20-r2.ebuild |
30 |
@@ -0,0 +1,71 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI="5" |
36 |
+GCONF_DEBUG="no" |
37 |
+VALA_USE_DEPEND="vapigen" |
38 |
+ |
39 |
+inherit eutils mono-env gnome2 vala |
40 |
+ |
41 |
+DESCRIPTION="Utilities for creating and parsing messages using MIME" |
42 |
+HOMEPAGE="http://spruce.sourceforge.net/gmime/ https://developer.gnome.org/gmime/stable/" |
43 |
+ |
44 |
+SLOT="2.6" |
45 |
+LICENSE="LGPL-2.1" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
47 |
+IUSE="doc mono smime static-libs vala" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-libs/glib-2.18:2 |
51 |
+ sys-libs/zlib |
52 |
+ mono? ( |
53 |
+ dev-lang/mono |
54 |
+ >=dev-dotnet/glib-sharp-2.4.0:2 ) |
55 |
+ smime? ( >=app-crypt/gpgme-1.1.6 ) |
56 |
+" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ >=dev-util/gtk-doc-am-1.8 |
59 |
+ virtual/pkgconfig |
60 |
+ doc? ( app-text/docbook-sgml-utils ) |
61 |
+ mono? ( dev-dotnet/gtk-sharp-gapi:2 ) |
62 |
+ vala? ( |
63 |
+ $(vala_depend) |
64 |
+ >=dev-libs/gobject-introspection-1.30.0 ) |
65 |
+" |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ use mono && mono-env_pkg_setup |
69 |
+} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ gnome2_src_prepare |
73 |
+ use vala && vala_src_prepare |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ gnome2_src_configure \ |
78 |
+ --enable-cryptography \ |
79 |
+ --disable-strict-parser \ |
80 |
+ $(use_enable mono) \ |
81 |
+ $(use_enable smime) \ |
82 |
+ $(use_enable static-libs static) \ |
83 |
+ $(use_enable vala) |
84 |
+} |
85 |
+ |
86 |
+src_compile() { |
87 |
+ MONO_PATH="${S}" gnome2_src_compile |
88 |
+ if use doc; then |
89 |
+ emake -C docs/tutorial html |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ GACUTIL_FLAGS="/root '${ED}/usr/$(get_libdir)' /gacdir '${EPREFIX}/usr/$(get_libdir)' /package ${PN}" \ |
95 |
+ gnome2_src_install |
96 |
+ |
97 |
+ if use doc ; then |
98 |
+ docinto tutorial |
99 |
+ dodoc docs/tutorial/html/* |
100 |
+ fi |
101 |
+} |
102 |
|
103 |
diff --git a/dev-libs/gmime/gmime-2.6.20-r3.ebuild b/dev-libs/gmime/gmime-2.6.20-r3.ebuild |
104 |
new file mode 100644 |
105 |
index 0000000..30439fd |
106 |
--- /dev/null |
107 |
+++ b/dev-libs/gmime/gmime-2.6.20-r3.ebuild |
108 |
@@ -0,0 +1,70 @@ |
109 |
+# Copyright 1999-2016 Gentoo Foundation |
110 |
+# Distributed under the terms of the GNU General Public License v2 |
111 |
+# $Id$ |
112 |
+ |
113 |
+EAPI="5" |
114 |
+GCONF_DEBUG="no" |
115 |
+VALA_USE_DEPEND="vapigen" |
116 |
+ |
117 |
+inherit eutils mono-env gnome2 vala |
118 |
+ |
119 |
+DESCRIPTION="Utilities for creating and parsing messages using MIME" |
120 |
+HOMEPAGE="http://spruce.sourceforge.net/gmime/ https://developer.gnome.org/gmime/stable/" |
121 |
+ |
122 |
+SLOT="2.6" |
123 |
+LICENSE="LGPL-2.1" |
124 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
125 |
+IUSE="doc mono smime static-libs vala" |
126 |
+ |
127 |
+RDEPEND=" |
128 |
+ >=dev-libs/glib-2.18:2 |
129 |
+ sys-libs/zlib |
130 |
+ mono? ( |
131 |
+ dev-lang/mono |
132 |
+ >=dev-dotnet/gtk-sharp-2.12.21:2 ) |
133 |
+ smime? ( >=app-crypt/gpgme-1.1.6 ) |
134 |
+" |
135 |
+DEPEND="${RDEPEND} |
136 |
+ >=dev-util/gtk-doc-am-1.8 |
137 |
+ virtual/pkgconfig |
138 |
+ doc? ( app-text/docbook-sgml-utils ) |
139 |
+ vala? ( |
140 |
+ $(vala_depend) |
141 |
+ >=dev-libs/gobject-introspection-1.30.0 ) |
142 |
+" |
143 |
+ |
144 |
+pkg_setup() { |
145 |
+ use mono && mono-env_pkg_setup |
146 |
+} |
147 |
+ |
148 |
+src_prepare() { |
149 |
+ gnome2_src_prepare |
150 |
+ use vala && vala_src_prepare |
151 |
+} |
152 |
+ |
153 |
+src_configure() { |
154 |
+ gnome2_src_configure \ |
155 |
+ --enable-cryptography \ |
156 |
+ --disable-strict-parser \ |
157 |
+ $(use_enable mono) \ |
158 |
+ $(use_enable smime) \ |
159 |
+ $(use_enable static-libs static) \ |
160 |
+ $(use_enable vala) |
161 |
+} |
162 |
+ |
163 |
+src_compile() { |
164 |
+ MONO_PATH="${S}" gnome2_src_compile |
165 |
+ if use doc; then |
166 |
+ emake -C docs/tutorial html |
167 |
+ fi |
168 |
+} |
169 |
+ |
170 |
+src_install() { |
171 |
+ GACUTIL_FLAGS="/root '${ED}/usr/$(get_libdir)' /gacdir '${EPREFIX}/usr/$(get_libdir)' /package ${PN}" \ |
172 |
+ gnome2_src_install |
173 |
+ |
174 |
+ if use doc ; then |
175 |
+ docinto tutorial |
176 |
+ dodoc docs/tutorial/html/* |
177 |
+ fi |
178 |
+} |
179 |
|
180 |
diff --git a/dev-libs/gmime/metadata.xml b/dev-libs/gmime/metadata.xml |
181 |
index 24ed35a..3faea47 100644 |
182 |
--- a/dev-libs/gmime/metadata.xml |
183 |
+++ b/dev-libs/gmime/metadata.xml |
184 |
@@ -8,4 +8,7 @@ |
185 |
<upstream> |
186 |
<remote-id type="sourceforge">spruce</remote-id> |
187 |
</upstream> |
188 |
+ <use> |
189 |
+ <flag name="smime">Enable experimental S/MIME support</flag> |
190 |
+ </use> |
191 |
</pkgmetadata> |