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/mail-filter/libsrs_alt/libsrs_alt-1.0.ebuild

45 lines
1.0 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit eutils autotools
MY_PV=${PV}
MY_RC=${PV}
S=${WORKDIR}/${PN}-${MY_PV}
DESCRIPTION="Sender Rewriting Scheme library"
HOMEPAGE="http://srs.mirtol.com/"
SRC_URI="http://srs.mirtol.com/libsrs_alt-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND="!dev-perl/Mail-SRS"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-ftime.patch
eautoreconf
}
src_compile() {
# add missing header
sed -i -e '/timeb.h>/ a #include <stdlib.h>' test.c
# Since the primary intended consumers of this library are MTAs,
# use non-standard separator characters (--with-base64compat).
# This breaks "SRS Compliancy", which is a rough standard at
# best.
econf --with-base64compat || die "econf failed"
emake -j1 || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "make install failed"
dodoc "${S}"/MTAs/README.EXIM
}