You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libmail/libmail-0.3-r1.ebuild

43 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmail/libmail-0.3-r1.ebuild,v 1.1 2012/12/19 17:21:40 hwoarang Exp $
EAPI=5
inherit autotools
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 gnutls profile sasl"
DEPEND="gnutls? ( >=net-libs/gnutls-2 )
sasl? ( >=dev-libs/cyrus-sasl-2 )"
RDEPEND="${DEPEND}"
src_prepare() {
# Drop quotes from ACLOCAL_AMFLAGS otherwise aclocal will fail
# see 447760
sed -i -e "/ACLOCAL_AMFLAGS/s:\"::g" Makefile.am || die
# Do not unset user's CFLAGS
sed -i -e "/^CFLAGS=/s:CFLAGS=\":CFLAGS=\"\$CFLAGS :" configure.ac || die
eautoreconf
}
src_configure() {
econf \
$(use_enable apop) \
$(use_enable gnutls tls) \
$(use_enable profile ) \
$(use_enable sasl)
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS ChangeLog NEWS README TODO
}