diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-filter/libspf2/libspf2-1.2.10.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-filter/libspf2/libspf2-1.2.10.ebuild')
-rw-r--r-- | mail-filter/libspf2/libspf2-1.2.10.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mail-filter/libspf2/libspf2-1.2.10.ebuild b/mail-filter/libspf2/libspf2-1.2.10.ebuild new file mode 100644 index 000000000000..b5eb7acc548b --- /dev/null +++ b/mail-filter/libspf2/libspf2-1.2.10.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="libspf2 implements the Sender Policy Framework, a part of the SPF/SRS protocol pair" +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 ~arm 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() { + 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 + epatch "${FILESDIR}"/${P}-gcc5.patch #570486 + + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die + eautoreconf +} + +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 +} |