1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 S=${WORKDIR}/${PN}-${MY_PV}
12 DESCRIPTION="Sender Rewriting Scheme library for use with Exim"
13 HOMEPAGE="http://opsec.eu/src/srs/"
14 SRC_URI="https://opsec.eu/src/srs/libsrs_alt-${MY_PV}.tar.bz2"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86"
21 RDEPEND="!dev-perl/Mail-SRS"
24 eapply "${FILESDIR}"/${P}-ftime.patch
27 sed -i -e '/timeb.h>/ a #include <stdlib.h>' test.c
35 # Since the primary intended consumers of this library are MTAs,
36 # use non-standard separator characters (--with-base64compat).
37 # This breaks "SRS Compliancy", which is a rough standard at
39 econf --with-base64compat
43 # Makefile rules are h0rk3ned, but this is such a tiny package, that
44 # it hardly makes sense to fix this.
50 dodoc "${S}"/MTAs/README.EXIM
52 use static-libs || rm "${ED}"/usr/$(get_libdir)/libsrs_alt.a