From 36ac65103bf5503e5bad1ecc7e8cb9e7643f6840 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 13 Sep 2019 17:49:31 +0100 Subject: Revert "gentoo resync : 13.09.2019" This reverts commit a1392efe64137262023d92492396ca9156d22396. --- mail-filter/libspf2/libspf2-1.2.9-r3.ebuild | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 mail-filter/libspf2/libspf2-1.2.9-r3.ebuild (limited to 'mail-filter/libspf2/libspf2-1.2.9-r3.ebuild') diff --git a/mail-filter/libspf2/libspf2-1.2.9-r3.ebuild b/mail-filter/libspf2/libspf2-1.2.9-r3.ebuild new file mode 100644 index 000000000000..6e99cae55055 --- /dev/null +++ b/mail-filter/libspf2/libspf2-1.2.9-r3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit eutils autotools + +DESCRIPTION="libspf2 implements the Sender Policy Framework, a part of the SPF/SRS protocols" +HOMEPAGE="http://www.libspf2.org" +SRC_URI="http://www.libspf2.org/spf/libspf2-${PV}.tar.gz" + +LICENSE="|| ( LGPL-2.1 BSD-2 )" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="static static-libs" + +DEPEND="" +RDEPEND="!dev-perl/Mail-SPF-Query" +REQUIRED_USE="static? ( static-libs )" + +src_prepare() { + epatch "${FILESDIR}/${P}-ipv6.patch" + if ! use static; then + sed -i -e '/bin_PROGRAMS/s/spfquery_static//' src/spfquery/Makefile.am \ + -e '/bin_PROGRAMS/s/spftest_static//' src/spftest/Makefile.am \ + -e '/bin_PROGRAMS/s/spfd_static//' src/spfd/Makefile.am \ + -e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am \ + || die + eautoreconf + fi +} + +src_configure() { + econf \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README TODO INSTALL + + use static-libs || rm -f "${D}"/usr/lib*/libspf2.la +} -- cgit v1.2.3