summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-19 19:49:29 +0100
committerSam James <sam@gentoo.org>2021-04-19 20:12:16 +0100
commit7b4264a6530e16ad88d27ec2d0740e445155acba (patch)
tree724be735dfdcf75e29720dbdbb2af9eb34520af9 /mail-filter/libspf2
parentmail-client/mailx-support: port to EAPI 7 (diff)
downloadgentoo-7b4264a6530e16ad88d27ec2d0740e445155acba.tar.gz
gentoo-7b4264a6530e16ad88d27ec2d0740e445155acba.tar.bz2
gentoo-7b4264a6530e16ad88d27ec2d0740e445155acba.zip
mail-filter/libspf2: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'mail-filter/libspf2')
-rw-r--r--mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch6
-rw-r--r--mail-filter/libspf2/libspf2-1.2.10.ebuild34
2 files changed, 19 insertions, 21 deletions
diff --git a/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch b/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch
index d36ec96efd77..75b3fb899b3e 100644
--- a/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch
+++ b/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch
@@ -1,10 +1,8 @@
https://github.com/shevek/libspf2/issues/13
https://bugs.gentoo.org/show_bug.cgi?id=570486
-Index: libspf2-1.2.10/src/include/spf_log.h
-===================================================================
---- libspf2-1.2.10/src/include/spf_log.h
-+++ libspf2-1.2.10/src/include/spf_log.h 2015-10-20 23:23:04.579055906 +0200
+--- a/src/include/spf_log.h
++++ b/src/include/spf_log.h
@@ -60,10 +60,10 @@
#if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
diff --git a/mail-filter/libspf2/libspf2-1.2.10.ebuild b/mail-filter/libspf2/libspf2-1.2.10.ebuild
index 601920195353..d31bd24a4514 100644
--- a/mail-filter/libspf2/libspf2-1.2.10.ebuild
+++ b/mail-filter/libspf2/libspf2-1.2.10.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit autotools epatch
+EAPI=7
+
+inherit autotools
DESCRIPTION="libspf2 implements the Sender Policy Framework, a part of the SPF/SRS protocols"
HOMEPAGE="https://www.libspf2.org"
@@ -11,35 +12,34 @@ SRC_URI="https://www.libspf2.org/spf/libspf2-${PV}.tar.gz"
LICENSE="|| ( LGPL-2.1 BSD-2 )"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
-IUSE="static static-libs"
-DEPEND=""
RDEPEND="!dev-perl/Mail-SPF-Query"
-REQUIRED_USE="static? ( static-libs )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc5.patch #570486
+)
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
+ default
+
+ 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
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die
+
eautoreconf
}
src_configure() {
- econf \
- $(use_enable static-libs static)
+ econf --disable-static
}
src_install() {
emake DESTDIR="${D}" install
dodoc README TODO INSTALL
- use static-libs || rm -f "${D}"/usr/lib*/libspf2.la
+ find "${ED}" -name '*.la' -delete || die
}