summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-mail/eps/eps-1.7-r1.ebuild8
-rw-r--r--net-mail/eps/files/eps-1.7-static-libs.patch22
2 files changed, 25 insertions, 5 deletions
diff --git a/net-mail/eps/eps-1.7-r1.ebuild b/net-mail/eps/eps-1.7-r1.ebuild
index 92434d568c07..40d368deccd5 100644
--- a/net-mail/eps/eps-1.7-r1.ebuild
+++ b/net-mail/eps/eps-1.7-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit toolchain-funcs
@@ -12,10 +12,8 @@ SRC_URI="http://www.inter7.com/eps/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
-IUSE=""
-DEPEND="sys-apps/sed"
-RDEPEND=""
+PATCHES=( "${FILESDIR}"/${P}-static-libs.patch )
src_prepare() {
sed -i -e 's:/usr:$(DESTDIR)$(prefix):g' \
diff --git a/net-mail/eps/files/eps-1.7-static-libs.patch b/net-mail/eps/files/eps-1.7-static-libs.patch
new file mode 100644
index 000000000000..06fa8bc82559
--- /dev/null
+++ b/net-mail/eps/files/eps-1.7-static-libs.patch
@@ -0,0 +1,22 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,7 @@
+ CC = gcc
+ AR = ar
+ STRIP = strip
+-LIB = libeps.a libeps.so
++LIB = libeps.so
+
+ AROPTS = -cru
+ RANLIB = ranlib
+@@ -20,10 +20,6 @@ DEFS = -Wall -I.
+
+ all: $(LIB)
+
+-libeps.a: $(OBJS)
+- $(AR) $(AROPTS) libeps.a $(OBJS)
+- $(RANLIB) libeps.a
+-
+ libeps.so: $(OBJS)
+ $(CC) -shared -o libeps.so $(OBJS)
+