# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 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 ' 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 }