Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libetpan/files/, net-libs/libetpan/
Date: Thu, 05 May 2016 16:37:57
Message-Id: 1462466263.3bdefd6d0add09b842437376a2d072b995918a27.polynomial-c@gentoo
1 commit: 3bdefd6d0add09b842437376a2d072b995918a27
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 5 16:36:22 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu May 5 16:37:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bdefd6d
7
8 net-libs/libetpan: Bump to version 1.7
9
10 Package-Manager: portage-2.2.28
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-libs/libetpan/Manifest | 1 +
14 net-libs/libetpan/files/libetpan-1.0-nonnull.patch | 4 +-
15 net-libs/libetpan/libetpan-1.7.ebuild | 80 ++++++++++++++++++++++
16 3 files changed, 83 insertions(+), 2 deletions(-)
17
18 diff --git a/net-libs/libetpan/Manifest b/net-libs/libetpan/Manifest
19 index 05d7b6f..3715216 100644
20 --- a/net-libs/libetpan/Manifest
21 +++ b/net-libs/libetpan/Manifest
22 @@ -1,3 +1,4 @@
23 DIST libetpan-1.1.tar.gz 1657767 SHA256 ce3ac567d0f07e5b2d1fdb0045042a8295ec477cd933de1a391fd48139c1f75e SHA512 fbcaf0e467d6f7541148aa60e89e1275f3cdb2b1039b8e6eaeba476e4b4411f44acfc01936eb7c4ab92cc0a574f3dcc4836e57bdf38861008bed0d015211f82b WHIRLPOOL a8c714937d797f4e8cabb59edf2b5880723e0bc6d4947ac78a3bd31f7b2e94f36c6699f7186f527b1075460f65dbb10d7c083442b6646cba1dbf2de68dd7c291
24 DIST libetpan-1.5.tar.gz 6139416 SHA256 42c4d858c3c1762c3e348889fbbf6cc5e5c5e654170d1df1ebb9c14aa4579736 SHA512 7b0a3adff7d7b3a7e3ea1d1a330ef6fea5ed86077a9ccf3fb5e51548d337c6c1f1fbb9ca81560b478335a9acf34e08bfef1895a05c5a69c37e3b87651c255fd5 WHIRLPOOL c408cbef9cc4e9bfec07a6e87a5afa96ea241770564c11f625776e4d692484c75ad01724c10923e38927d344616f4d396fa652d63d8cdcb2451d2a075dd0909e
25 DIST libetpan-1.6.tar.gz 6144117 SHA256 7962b1f9445be24d1eb72daddabaebb427074c14a50e9dad0cebdec044c71e17 SHA512 e3f19cfe231e8cadbb6cba3a765611e3aaeb260fa78e05cea1153a59015abe547c0f3a8b84c6b41cbbd17d04a4c7ab7b14d1b1b44a1a4b24ac124cb200a191a5 WHIRLPOOL b72a50513dbd55898e79b14a53088277b12ae7ac911ab0a9692d47f85dadd1b80a9ba616bd7a2beb89d9406940f4edf24cabf93aabef0cd27d6de6bef4e29a40
26 +DIST libetpan-1.7.tar.gz 6184289 SHA256 47d0c049d8adcdcfd0698e9f1fcb85416b0b2f476eed1f52aae72c2883cf05b0 SHA512 b90c46f6692df7a7889be68f5712a6b6d58ef1931edb82674da2cb6690c2150c935ca782fd32c1567c31cdff629261bd1ba23921b12431d781a086729489573e WHIRLPOOL b6c286a0554ecf4ad3c0d09dd45d1892a665bdc4eed4e19b65745de3a6195351cccef51da6447f34d57a29dacd01bbb16067d30911b837db914016ddb7ab2e87
27
28 diff --git a/net-libs/libetpan/files/libetpan-1.0-nonnull.patch b/net-libs/libetpan/files/libetpan-1.0-nonnull.patch
29 index 0710cfd..f07a0fb 100644
30 --- a/net-libs/libetpan/files/libetpan-1.0-nonnull.patch
31 +++ b/net-libs/libetpan/files/libetpan-1.0-nonnull.patch
32 @@ -1,6 +1,6 @@
33 http://sourceforge.net/mailarchive/forum.php?thread_name=k2vfc2c80ae1004051048n4a2b5ab0y85ab946c2a556544%40mail.gmail.com&forum_name=libetpan-devel
34 ---- src/low-level/nntp/Makefile.am 2011-06-14 15:37:14.511603732 +0300
35 -+++ src/low-level/nntp/Makefile.am 2011-06-14 15:38:42.000000000 +0300
36 +--- a/src/low-level/nntp/Makefile.am
37 ++++ b/src/low-level/nntp/Makefile.am
38 @@ -35,6 +35,8 @@
39 AM_CPPFLAGS = -I$(top_builddir)/include \
40 -I$(top_srcdir)/src/data-types
41
42 diff --git a/net-libs/libetpan/libetpan-1.7.ebuild b/net-libs/libetpan/libetpan-1.7.ebuild
43 new file mode 100644
44 index 0000000..e9ab62f
45 --- /dev/null
46 +++ b/net-libs/libetpan/libetpan-1.7.ebuild
47 @@ -0,0 +1,80 @@
48 +# Copyright 1999-2016 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +# $Id$
51 +
52 +EAPI=6
53 +inherit autotools eutils
54 +
55 +DESCRIPTION="A portable, efficient middleware for different kinds of mail access"
56 +HOMEPAGE="http://libetpan.sourceforge.net/"
57 +SRC_URI="https://github.com/dinhviethoa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
58 +
59 +LICENSE="BSD"
60 +SLOT="0"
61 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
62 +IUSE="berkdb debug gnutls ipv6 liblockfile sasl ssl static-libs"
63 +
64 +DEPEND="berkdb? ( sys-libs/db:= )
65 + ssl? (
66 + gnutls? ( net-libs/gnutls )
67 + !gnutls? ( dev-libs/openssl:0= )
68 + )
69 + sasl? ( dev-libs/cyrus-sasl )
70 + liblockfile? ( net-libs/liblockfile )"
71 +RDEPEND="${DEPEND}"
72 +
73 +PATCHES=(
74 + "${FILESDIR}"/${PN}-1.0-nonnull.patch
75 +)
76 +
77 +pkg_setup() {
78 + if use gnutls && ! use ssl ; then
79 + ewarn "You have \"gnutls\" USE flag enabled but \"ssl\" USE flag disabled!"
80 + ewarn "No ssl support will be available in ${PN}."
81 + fi
82 +}
83 +
84 +src_prepare() {
85 + default
86 +
87 + sed -i \
88 + -e "s/-O2 -g//" \
89 + configure.ac
90 +
91 + eautoreconf
92 +}
93 +
94 +src_configure() {
95 + local sslconf
96 +
97 + if use ssl; then
98 + if use gnutls; then
99 + sslconf="--with-gnutls --without-openssl"
100 + else
101 + sslconf="--without-gnutls --with-openssl"
102 + fi
103 + else
104 + sslconf="--without-gnutls --without-openssl"
105 + fi
106 +
107 + # in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so
108 + # libtool recognises it as valid shell (bug #300211)
109 + use prefix && export CONFIG_SHELL=${BASH}
110 + # The configure script contains an error, in that it doesn't check the
111 + # argument of --enable-{debug,optim}, hence --disable-debug results in
112 + # --enable-debug=no, which isn't checked and debugging flags are blindly
113 + # injected. So, avoid passing --disable-debug when we don't need it.
114 + econf \
115 + $(usex debug '--enable-debug' '') \
116 + $(use_enable berkdb db) \
117 + $(use_with sasl) \
118 + $(use_enable ipv6) \
119 + $(use_enable liblockfile lockfile) \
120 + $(use_enable static-libs static) \
121 + ${sslconf}
122 +}
123 +
124 +src_install() {
125 + default
126 + use static-libs || prune_libtool_files --all
127 +}