From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-libs/libetpan/Manifest | 6 ++ net-libs/libetpan/files/libetpan-1.0-nonnull.patch | 12 ++++ net-libs/libetpan/libetpan-1.8.ebuild | 75 ++++++++++++++++++++++ net-libs/libetpan/metadata.xml | 21 ++++++ 4 files changed, 114 insertions(+) create mode 100644 net-libs/libetpan/Manifest create mode 100644 net-libs/libetpan/files/libetpan-1.0-nonnull.patch create mode 100644 net-libs/libetpan/libetpan-1.8.ebuild create mode 100644 net-libs/libetpan/metadata.xml (limited to 'net-libs/libetpan') diff --git a/net-libs/libetpan/Manifest b/net-libs/libetpan/Manifest new file mode 100644 index 000000000000..e3226018a43b --- /dev/null +++ b/net-libs/libetpan/Manifest @@ -0,0 +1,6 @@ +AUX libetpan-1.0-nonnull.patch 404 SHA256 b392551bc510f587f65cbf3476979ad9325dac0e0f1a87267a65ca1eaab65dd6 SHA512 3800d6e2dbb50985290b8a141ee2fe6ff92bee8516567f55ea14e634b41e11d1074cd8df6e6de30996e0d86e54cd659300da0d61ad63fc10f713d672aa3b4f6e WHIRLPOOL c4b0f8afe4d4ff0ac71d4336da2f19c18105f3d6e837588ffd5610633488eafa9e8a25d93793ec1d2c07f6c83284cd875384f0b51647464a687609ef2052e80f +DIST libetpan-1.8.tar.gz 6188927 SHA256 4e67a7b4abadcf3cc16fa16e1621a68e54d489dadfd9a7d1f960c172e953b6eb SHA512 a5e97998803cc56dbd54356153c8579b52a9675fe95fbf642c3158215428d9d2cb30c4e0060c5f4dd760634fff5b1c2a32ce4bb70a5f2bc6398a071ce95e1efd WHIRLPOOL 41e7e184a3f1789726055cb8bc9941057eb0c4b7bf6057dd94519b46905c1dd9fa45c403fa05c45eaa2b36a03af74b35097348ed471b9428f6bf4e864dbdd791 +EBUILD libetpan-1.8.ebuild 2093 SHA256 899ed7b0cd08278e6081f1b322bec128cd00310be60846b1ab1bc5c919d07788 SHA512 23d9195d9665ad24c58cc1c7b570e48ddc157cae14cc69dbd814124525bc70de3aaa33687a5a914aade21241c082c1b16f5014f8618795cc53ebdbf6b8b0e933 WHIRLPOOL e289857e54888ef1f957ea97f07074d5eabd8c53fb6f907933c5fdf192cb0d535df19e834094c1b34f0c233b6f66f7a064b8302c5b3b65e6dcaaf6f3a526f606 +MISC ChangeLog 5775 SHA256 7064b34a0a8114df8fda49d5b905ea56f49936b204266b407aa59f8f0aaac620 SHA512 1e9962241caea25e198cdcc27301cc6a08c7a267ef9e96c0a31a80c6e174757efe74f1efe46a66b9fe6219a1096d150a3dfc4addc8b3bd70afd580762c95aa07 WHIRLPOOL 871728a1d6a3765eac73876c8aea8f155d988a9996a84ef361b4c2507c0aeea18f4bec09a023edda8271b26b96f5798ccc4e8e0957da03cd1033f5a233a12fba +MISC ChangeLog-2015 12993 SHA256 8be8ac4b736397661a10cbca248ada5b64e0a2d04ac9637e5a71a4f89745d97d SHA512 4691e6f9efffd020561d25b08e530cbecfeb9c54491a054b512a70cef8618e9fd298e86e345548f91750e1d0feee5af5971f78bc231243288b2fcb53fafdc219 WHIRLPOOL b4b50cf07352e30d29f2b6322aade9d7d23682a0be011163546919b9f6ecc0f8be0defba0a4a011c5e8acfeeaa04d47206e080fa968d291f243ba58b7d7528e7 +MISC metadata.xml 772 SHA256 f2308ce74877061835b4b0cd631277586b1c4291a8f763edeff868fc81fff44b SHA512 275d042363fa741049c659c40a0f5d7a1f62a0b40f6b4972752e4464fad2206031954fe62999fb10cf73095e43aa8985442b355908c6a443c8a28b7fdbd06366 WHIRLPOOL 2f2a00dea44fad0dac59ca6823a5d4dc1b787827c2237a9631a43cf80ab5cf9b0ff8762ca42b61d73e2d79e8653aa643a49666de5e76e2ffd3824a7551efed86 diff --git a/net-libs/libetpan/files/libetpan-1.0-nonnull.patch b/net-libs/libetpan/files/libetpan-1.0-nonnull.patch new file mode 100644 index 000000000000..138f038315c3 --- /dev/null +++ b/net-libs/libetpan/files/libetpan-1.0-nonnull.patch @@ -0,0 +1,12 @@ +https://sourceforge.net/mailarchive/forum.php?thread_name=k2vfc2c80ae1004051048n4a2b5ab0y85ab946c2a556544%40mail.gmail.com&forum_name=libetpan-devel +--- a/src/low-level/nntp/Makefile.am ++++ b/src/low-level/nntp/Makefile.am +@@ -35,6 +35,8 @@ + AM_CPPFLAGS = -I$(top_builddir)/include \ + -I$(top_srcdir)/src/data-types + ++CFLAGS += -Wno-nonnull ++ + noinst_LTLIBRARIES = libnntp.la + + libnntp_la_SOURCES = \ diff --git a/net-libs/libetpan/libetpan-1.8.ebuild b/net-libs/libetpan/libetpan-1.8.ebuild new file mode 100644 index 000000000000..b6dfb6cdbfb7 --- /dev/null +++ b/net-libs/libetpan/libetpan-1.8.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools + +DESCRIPTION="A portable, efficient middleware for different kinds of mail access" +HOMEPAGE="http://libetpan.sourceforge.net/" +SRC_URI="https://github.com/dinhviethoa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="berkdb debug gnutls ipv6 liblockfile libressl sasl ssl static-libs" + +DEPEND="sys-libs/zlib + berkdb? ( sys-libs/db:= ) + ssl? ( + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + ) + sasl? ( dev-libs/cyrus-sasl:2 ) + liblockfile? ( net-libs/liblockfile )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0-nonnull.patch +) + +pkg_setup() { + if use gnutls && ! use ssl ; then + ewarn "You have \"gnutls\" USE flag enabled but \"ssl\" USE flag disabled!" + ewarn "No ssl support will be available in ${PN}." + fi +} + +src_prepare() { + default + + sed -i \ + -e "s/-O2 -g//" \ + configure.ac + + eautoreconf +} + +src_configure() { + # in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so + # libtool recognises it as valid shell (bug #300211) + use prefix && export CONFIG_SHELL=${BASH} + # The configure script contains an error, in that it doesn't check the + # argument of --enable-{debug,optim}, hence --disable-debug results in + # --enable-debug=no, which isn't checked and debugging flags are blindly + # injected. So, avoid passing --disable-debug when we don't need it. + local myeconfargs=( + $(usex debug '--enable-debug' '') + $(use_enable berkdb db) + $(use_with sasl) + $(use_enable ipv6) + $(use_enable liblockfile lockfile) + $(usex ssl "$(use_with gnutls) $(use_with !gnutls openssl)" '--without-gnutls --without-openssl') + $(use_enable static-libs static) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + if ! use static-libs ; then + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die + fi +} diff --git a/net-libs/libetpan/metadata.xml b/net-libs/libetpan/metadata.xml new file mode 100644 index 000000000000..2bdf901416e6 --- /dev/null +++ b/net-libs/libetpan/metadata.xml @@ -0,0 +1,21 @@ + + + + + net-mail@gentoo.org + Net-Mail + + + libEtPan ! is a mail purpose library. It will be used for low-level mail + handling : network protocols (IMAP/NNTP/POP3/SMTP over TCP/IP and + SSL/TCP/IP, already implemented), local storage (mbox/MH/maildir), + message / MIME parser + + + Enable support for liblockfile library + + + dinhviethoa/libetpan + libetpan + + -- cgit v1.2.3