summaryrefslogtreecommitdiff
path: root/dev-libs/libmail
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libmail')
-rw-r--r--dev-libs/libmail/Manifest6
-rw-r--r--dev-libs/libmail/files/libmail-0.3-respect-cflags.patch37
-rw-r--r--dev-libs/libmail/libmail-0.3-r3.ebuild53
-rw-r--r--dev-libs/libmail/metadata.xml11
4 files changed, 107 insertions, 0 deletions
diff --git a/dev-libs/libmail/Manifest b/dev-libs/libmail/Manifest
new file mode 100644
index 000000000000..c730f8ec88f8
--- /dev/null
+++ b/dev-libs/libmail/Manifest
@@ -0,0 +1,6 @@
+AUX libmail-0.3-respect-cflags.patch 879 SHA256 a9cc354b3f2650c38f73751221b3965b354c3b127ef89a5c20dba4528fdf1c5e SHA512 b5450bf020a84473f173f4985a5192609629e312a44da40c11cd8e806fb6d6b7d4e97df9821823d4da41d9588c9218dfb0d20a18b38ab06074001ad3ea3beb18 WHIRLPOOL 942eaf38b0c04ab9bcb340002c2f31e6d47e5d28a3df89660b03d0ae31298c7ae97cd0c81b38e1f209210749ff09f90eec88e997d9ad728f01149e085c0854f7
+DIST libmail-0.3.tar.bz2 271946 SHA256 b07db69866ae649d0489b35a38a11692b6e404078931ec384973134b3913db51 SHA512 df4e0e549867f7cf73db8c965a28c14e3e089e54a8272b70be8b00c896dcd91d68625e2287a15d353eff75ec05e702e6d113f8122ed0e9d294766fe4f467e9d3 WHIRLPOOL 9ab90bd0545d52ab692f56fd5c222848a00351bf61b588779bb7de3b1c8e43f2102519fd79e44dca438a71ba693007b58651c63280ea900b258a4ce3cbe38627
+EBUILD libmail-0.3-r3.ebuild 1232 SHA256 1d477a04aaa922308600a34103c847b562415cdc3384b90457aad0f3ce4a65ab SHA512 250af3049f272445fa3e1de9dff561fbe6055ca24aec542ae5a634dc1ad01ff530253567abfc435e4124d425cd2585941fbbb2e44e0245e2664d23cad60dc87c WHIRLPOOL a5c251b4a585f5383087a2bd994ea07314a302cd372152811c7963ff9986ecf72f4099a33ac5b9d90250bfaef7ba97bcdbcde240078fe8c8d46d8bed006776ad
+MISC ChangeLog 2567 SHA256 81690c21d916e8cee653a390d00139c774b5ba6666abd9ba26fbf74f2c7dae18 SHA512 8ba23f86efe1731aa7a4329b1cfa1207d5d06fb45e8d6ba4878935e5c841c634df583ecd2d63815f0e834f0270644d484a2ddd31e494d1bb3b99fdfe308ffc21 WHIRLPOOL a5330826b51ed97cfb2e1fd8876c587dd81ae6f8c51bb7e4978acb7704f0ee5b7c4b05262dae24848c4d59f35ad309633ef1eba746bf5d3a4f81499605785daf
+MISC ChangeLog-2015 2191 SHA256 1a38bce5ae04ebf4b0b7ff016b52739f30b8d4130cb3cfc343ca1322795304f7 SHA512 76ca4dfb211a77c04df413264c3f6cf33341697c9ade88839d00b0c29235e37d481d6f43add120e045f7c66078a576f6998364ff01864cd65b55993c15c5e046 WHIRLPOOL 160c9548c7ab6745bcf61fcb5a81f5c40edde57125dbb73624cc99f41aede9d9fd8b86dc1f177b54a82c596749198e8be7ecff10889c98dd0fcb38d32e0bd3f0
+MISC metadata.xml 325 SHA256 dcb2089c964bcfdd36cfe1ef6ee6503d65fa92f51dda453913debdf5795dcc83 SHA512 027f60bf3d6fcab565ddad1434d9df43f6e2d0e71c85f670a7c9723dec14ecbf7e8dddd4c15f1290b0bfdab453f796e58dc241752e5605023fe323ae4fac0f41 WHIRLPOOL 83c82e66f50144e718caed3b34159292984acd4ff3ff2323831c9238c5ebce3c320ab1ba893f4140ad5ecd00792661a81eae83281e88d06dd5d1e7bce5bc99b1
diff --git a/dev-libs/libmail/files/libmail-0.3-respect-cflags.patch b/dev-libs/libmail/files/libmail-0.3-respect-cflags.patch
new file mode 100644
index 000000000000..7e22de4c7576
--- /dev/null
+++ b/dev-libs/libmail/files/libmail-0.3-respect-cflags.patch
@@ -0,0 +1,37 @@
+--- configure.ac.orig 2013-01-31 16:18:06.537834009 +0400
++++ configure.ac 2013-01-31 16:19:00.138835711 +0400
+@@ -12,7 +12,7 @@
+ AC_PROG_MAKE_SET
+ AC_PROG_LIBTOOL
+
+-CFLAGS="-D_GNU_SOURCE -Wall -Wunused -Wstrict-prototypes"
++CFLAGS="-D_GNU_SOURCE -Wall -Wunused -Wstrict-prototypes ${CFLAGS}"
+
+ use_sasl=false
+ use_apop=false
+@@ -99,7 +99,6 @@
+ ;;
+ yes)
+ AC_DEFINE(NDEBUG, [1], [Use debug functionality])
+- CFLAGS="$CFLAGS -g"
+ optimize="no"
+ ;;
+ *)
+@@ -119,7 +118,6 @@
+ ;;
+ yes)
+ AC_DEFINE(NDEBUG, [1], [Use debug functionality])
+- CFLAGS="$CFLAGS -pg -g"
+ optimize="yes"
+ ;;
+ *)
+@@ -127,9 +125,6 @@
+ ;;
+ esac
+ ])
+-if test $optimize = "yes"; then
+- CFLAGS="$CFLAGS -O2"
+-fi
+ AM_CONDITIONAL([LIBMAIL_USE_SASL], [test x$use_sasl = xtrue])
+ AM_CONDITIONAL([LIBMAIL_USE_APOP], [test x$use_apop = xtrue])
+ AM_CONDITIONAL([LIBMAIL_USE_TLS], [test x$use_tls = xtrue])
diff --git a/dev-libs/libmail/libmail-0.3-r3.ebuild b/dev-libs/libmail/libmail-0.3-r3.ebuild
new file mode 100644
index 000000000000..c20fa7c5a900
--- /dev/null
+++ b/dev-libs/libmail/libmail-0.3-r3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils
+
+DESCRIPTION="A mail handling library"
+HOMEPAGE="http://libmail.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="apop debug gnutls profile sasl static-libs"
+
+DEPEND="gnutls? ( >=net-libs/gnutls-2 )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README TODO )
+
+# Do not unset user's CFLAGS, bug #454558
+PATCHES=( "${FILESDIR}/${P}-respect-cflags.patch" )
+
+src_prepare() {
+ # Drop quotes from ACLOCAL_AMFLAGS otherwise aclocal will fail
+ # see 447760
+ sed -i -e "/ACLOCAL_AMFLAGS/s:\"::g" Makefile.am || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable apop)
+ $(use_enable debug)
+ $(use_enable gnutls tls)
+ $(use_enable profile)
+ $(use_enable sasl)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ # headers, that are wrongly skipped from installing
+ insinto /usr/include/libmail
+ doins libmail/libmail_intl.h
+ doins config.h
+}
diff --git a/dev-libs/libmail/metadata.xml b/dev-libs/libmail/metadata.xml
new file mode 100644
index 000000000000..b77b86fc4804
--- /dev/null
+++ b/dev-libs/libmail/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="apop">Enables the APOP authentication method</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">libmail</remote-id>
+ </upstream>
+</pkgmetadata>