1 |
commit: 8978227035b09b94e251cdbe9dca708818718d3e |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 18 06:24:41 2018 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 18 06:25:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89782270 |
7 |
|
8 |
net-mail/mailutils: fix building with emacs |
9 |
|
10 |
thanks Ulrich Müller for the patch |
11 |
Closes: https://bugs.gentoo.org/656324 |
12 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
13 |
|
14 |
net-mail/mailutils/mailutils-3.4-r3.ebuild | 136 +++++++++++++++++++++++++++++ |
15 |
1 file changed, 136 insertions(+) |
16 |
|
17 |
diff --git a/net-mail/mailutils/mailutils-3.4-r3.ebuild b/net-mail/mailutils/mailutils-3.4-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..ff55ff32e35 |
20 |
--- /dev/null |
21 |
+++ b/net-mail/mailutils/mailutils-3.4-r3.ebuild |
22 |
@@ -0,0 +1,136 @@ |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+PYTHON_COMPAT=( python2_7 ) |
28 |
+ |
29 |
+inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="A useful collection of mail servers, clients, and filters" |
32 |
+HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html" |
33 |
+SRC_URI="mirror://gnu/mailutils/${P}.tar.xz" |
34 |
+ |
35 |
+LICENSE="GPL-2 LGPL-2.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos" |
38 |
+IUSE="berkdb bidi +clients emacs gdbm sasl guile ipv6 kerberos kyotocabinet \ |
39 |
+ ldap mysql nls pam postgres python servers ssl static-libs +threads tcpd \ |
40 |
+ tokyocabinet" |
41 |
+ |
42 |
+RDEPEND="!mail-client/nmh |
43 |
+ !mail-filter/libsieve |
44 |
+ !mail-client/mailx |
45 |
+ !mail-client/nail |
46 |
+ sys-libs/ncurses:= |
47 |
+ sys-libs/readline:= |
48 |
+ dev-libs/libltdl:0 |
49 |
+ virtual/mta |
50 |
+ berkdb? ( sys-libs/db:= ) |
51 |
+ bidi? ( dev-libs/fribidi ) |
52 |
+ emacs? ( virtual/emacs ) |
53 |
+ gdbm? ( sys-libs/gdbm ) |
54 |
+ guile? ( dev-scheme/guile:12/22 ) |
55 |
+ kerberos? ( virtual/krb5 ) |
56 |
+ kyotocabinet? ( dev-db/kyotocabinet ) |
57 |
+ ldap? ( net-nds/openldap ) |
58 |
+ mysql? ( virtual/mysql ) |
59 |
+ nls? ( sys-devel/gettext ) |
60 |
+ pam? ( virtual/pam ) |
61 |
+ postgres? ( dev-db/postgresql:= ) |
62 |
+ python? ( ${PYTHON_DEPS} ) |
63 |
+ sasl? ( virtual/gsasl ) |
64 |
+ ssl? ( net-libs/gnutls:= ) |
65 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
66 |
+ tokyocabinet? ( dev-db/tokyocabinet )" |
67 |
+ |
68 |
+DEPEND="${RDEPEND} |
69 |
+ virtual/pkgconfig" |
70 |
+ |
71 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) |
72 |
+ servers? ( tcpd )" |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ use python && python-single-r1_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ # Disable bytecompilation of Python modules. |
80 |
+ echo "#!/bin/sh" > build-aux/py-compile |
81 |
+ eapply "${FILESDIR}/${P}-MH-testsuite.patch" \ |
82 |
+ "${FILESDIR}/${P}-fix-endianness.patch" |
83 |
+ # add missing tests so that make check doesn't fail |
84 |
+ cp "${FILESDIR}"/{hdr,nohdr,twomsg,weed}.at "${S}"/readmsg/tests || die |
85 |
+ if use mysql; then |
86 |
+ sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \ |
87 |
+ sql/Makefile.am || die |
88 |
+ fi |
89 |
+ eapply_user |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ append-flags -fno-strict-aliasing |
95 |
+ |
96 |
+ # maildir is the Gentoo default |
97 |
+ econf MU_DEFAULT_SCHEME=maildir \ |
98 |
+ CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \ |
99 |
+ $(use_with berkdb berkeley-db) \ |
100 |
+ $(use_with bidi fribidi) \ |
101 |
+ $(use_enable ipv6) \ |
102 |
+ $(use_with gdbm) \ |
103 |
+ $(use_with sasl gsasl) \ |
104 |
+ $(use_with guile) \ |
105 |
+ $(use_with kerberos gssapi) \ |
106 |
+ $(use_with ldap) \ |
107 |
+ $(use_with mysql) \ |
108 |
+ $(use_enable nls) \ |
109 |
+ $(use_enable pam) \ |
110 |
+ $(use_with postgres) \ |
111 |
+ $(use_enable python) \ |
112 |
+ $(use_with ssl gnutls) \ |
113 |
+ $(use_enable static-libs static) \ |
114 |
+ $(use_enable threads pthread) \ |
115 |
+ $(use_with tokyocabinet) \ |
116 |
+ $(use_with kyotocabinet) \ |
117 |
+ $(use_with tcpd tcp-wrappers) \ |
118 |
+ $(use_enable servers build-servers) \ |
119 |
+ $(use_enable clients build-clients) \ |
120 |
+ EMACS=$(usex emacs emacs no) \ |
121 |
+ --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \ |
122 |
+ --with-mail-spool=/var/spool/mail \ |
123 |
+ --with-readline \ |
124 |
+ --enable-sendmail \ |
125 |
+ --disable-debug \ |
126 |
+ --disable-rpath |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ emake DESTDIR="${D}" install |
131 |
+ |
132 |
+ insinto /etc |
133 |
+ # bug 613112 |
134 |
+ newins "${FILESDIR}/mailutils.rc" mailutils.conf |
135 |
+ keepdir /etc/mailutils.d/ |
136 |
+ insinto /etc/mailutils.d |
137 |
+ doins "${FILESDIR}/mail" |
138 |
+ |
139 |
+ if use python; then |
140 |
+ python_optimize |
141 |
+ if use static-libs; then |
142 |
+ rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die |
143 |
+ fi |
144 |
+ fi |
145 |
+ |
146 |
+ if use servers; then |
147 |
+ newinitd "${FILESDIR}"/imap4d.initd imap4d |
148 |
+ newinitd "${FILESDIR}"/pop3d.initd pop3d |
149 |
+ newinitd "${FILESDIR}"/comsatd.initd comsatd |
150 |
+ fi |
151 |
+ |
152 |
+ dodoc AUTHORS ChangeLog NEWS README* THANKS TODO |
153 |
+ |
154 |
+ # compatibility link |
155 |
+ use clients && dosym /usr/bin/mail /bin/mail |
156 |
+ |
157 |
+ use static-libs || find "${D}" -name "*.la" -delete |
158 |
+} |