summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libmail/ChangeLog10
-rw-r--r--dev-libs/libmail/Manifest4
-rw-r--r--dev-libs/libmail/files/libmail-0.3-respect-cflags.patch37
-rw-r--r--dev-libs/libmail/libmail-0.3-r2.ebuild45
4 files changed, 94 insertions, 2 deletions
diff --git a/dev-libs/libmail/ChangeLog b/dev-libs/libmail/ChangeLog
index fea2a5d6857c..2e6645e20be4 100644
--- a/dev-libs/libmail/ChangeLog
+++ b/dev-libs/libmail/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-libs/libmail
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmail/ChangeLog,v 1.6 2013/01/30 15:30:00 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmail/ChangeLog,v 1.7 2013/01/31 13:09:01 pinkbyte Exp $
+
+*libmail-0.3-r2 (31 Jan 2013)
+
+ 31 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> +libmail-0.3-r2.ebuild,
+ +files/libmail-0.3-respect-cflags.patch:
+ Revision bump: port to autotools-utils eclass, reorganize CFLAGS sed into
+ patch(fix bug #454380), add USE flags for debug and static libs building(bug
+ #454558)
30 Jan 2013; Agostino Sarubbo <ago@gentoo.org> libmail-0.3-r1.ebuild:
Stable for x86, wrt bug #454296
diff --git a/dev-libs/libmail/Manifest b/dev-libs/libmail/Manifest
index 906260d717ac..6caedcb0097b 100644
--- a/dev-libs/libmail/Manifest
+++ b/dev-libs/libmail/Manifest
@@ -1,5 +1,7 @@
+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-r1.ebuild 1044 SHA256 94fa3f44f77ab9c425619a573df0290d393b5d5677cdc0a28142537241c1be5a SHA512 044350eef2fb781e74f77466c950462618fc098ec532f5d23c5723ac3c4e591d789878a39f6b2500e547b70c2c9ded5d61552be2ea796c358035bb3208a4c6cc WHIRLPOOL 19cac3ab5835d5327d25fc5ad154ab7119bc49671fee8e2181f2c3447b8c2f662831fa5e5de5c3f224de37aa8a2c67300118b9e26df2554cd46f436cb2a46d31
+EBUILD libmail-0.3-r2.ebuild 1147 SHA256 43f9c2e4fbf5727a0e3047ec2653cf1a32451a128d9fbeeb94a94e83cfe8ef9b SHA512 69aa09675f24f3b01a7673793ee3c610cfd7aa59dcb04417dc4e6ac0b72566bfc7f7165dfd8be655d22e292e844e725a2ba0c0c1312e82b67cf9b7b1efd5e0b3 WHIRLPOOL 4cb7bab59784b2ec3b3ecd544b3db22fd7f9eef0d940b7ec5cf536aa1b104f65eae5326f765a882164fa3ce750b285d5d6901f9644ae7b3a7b8e100e5241fb92
EBUILD libmail-0.3.ebuild 848 SHA256 39bdf6512e6dc83c08c95444fae8322b5f6cdd15e0fa07829551e2243d18ebe3 SHA512 132322d3f5e1b108c7ee3ea2294502e845c3fdc0dd4e206be06979c7057d7fe7dc51fa9513b937352e8ae3501807730138ed679caaea4644cc2bfd99b44317db WHIRLPOOL f8ab3c2084e05cc5d28c638a4128155b4993563a04a551630db7c805eafcc8b4bd976529edd9e4eb42e7394a706f02a7f4d4d0536a2ba892c057d8bbaef7f6e1
-MISC ChangeLog 1072 SHA256 5e3e2b024f7b2d63c19709a7c3ee8c9b9f4cc2ed371e7fdec877db4b500d35c3 SHA512 617dd700f6a4d2115499c6cfb54d9608fe4d762c9c2262327c967cbbcc2036545a0c2e4c6a91d2a91dcded53c23c56dfd6744b1267693e82514fcb60fb5b9f30 WHIRLPOOL e11e4b7b850857052f947fb877d30eada82e2ef444d7914044e3af5542f5c9b50a01d42c0a845d4e52c7e617785cf0c94d59ff450a4e7671bd2dabc0265ee8f1
+MISC ChangeLog 1392 SHA256 2d1d5c42ef405bd5a69d110b89b9161d0268d20c9191827d049c863f437dc6b5 SHA512 b71d94e90c1a6935c02b0f7dcbaaaec9577b730c0498100200ebcf3f3d5e10c14132b8cbdc45473edee01ce085dfb95c21976c93923af86d223ae420db5a62bf WHIRLPOOL 9ec13b8ee0885c54936d5cb207bac0b05ebbbc661add83fc03041728d5267a32382a814840fea21ee28b6376393b4e8df09a125e3edb252c2434a2bed875c135
MISC metadata.xml 336 SHA256 e8e1090f46651485d6a85012ea208a126e1372ca39d239dbbf842de597768c29 SHA512 fcd1df4ace5a3748f98bad34e0e12cf7f0d95d9bd6699519276490248d7d69a3c355f33028d1ad4994c2238a9194719f5eb736ca94ee91366602c01f12230950 WHIRLPOOL 9edf06401ea5dc9868cd0e613a5fe26424afd8a5909132ff2b2671fb67c0f3369182abfde7543551cf2f29eb5ad6aae2df3ae633007fa0d28624ffc8c3f0b38e
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-r2.ebuild b/dev-libs/libmail/libmail-0.3-r2.ebuild
new file mode 100644
index 000000000000..b728b64d10e8
--- /dev/null
+++ b/dev-libs/libmail/libmail-0.3-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmail/libmail-0.3-r2.ebuild,v 1.1 2013/01/31 13:09:01 pinkbyte Exp $
+
+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"
+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
+}