1 |
commit: 44c2c7b3e4732cbcd4042c91134c1869477ccd76 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 28 15:04:51 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 15:07:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c2c7b3 |
7 |
|
8 |
app-arch/pure-sfv: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
.../pure-sfv/files/pure-sfv-0.3-asneeded.patch | 11 ---------- |
13 |
.../files/pure-sfv-0.3-fix-build-system.patch | 22 +++++++++++++++++++ |
14 |
app-arch/pure-sfv/pure-sfv-0.3-r1.ebuild | 25 +++++++++------------- |
15 |
3 files changed, 32 insertions(+), 26 deletions(-) |
16 |
|
17 |
diff --git a/app-arch/pure-sfv/files/pure-sfv-0.3-asneeded.patch b/app-arch/pure-sfv/files/pure-sfv-0.3-asneeded.patch |
18 |
deleted file mode 100644 |
19 |
index 926dd1318bd..00000000000 |
20 |
--- a/app-arch/pure-sfv/files/pure-sfv-0.3-asneeded.patch |
21 |
+++ /dev/null |
22 |
@@ -1,11 +0,0 @@ |
23 |
---- Makefile.orig 2009-01-03 18:36:24.349399478 +0100 |
24 |
-+++ Makefile 2009-01-03 18:36:37.218398964 +0100 |
25 |
-@@ -65,7 +65,7 @@ |
26 |
- OBJ = ${SRCS:%.c=%.o} |
27 |
- |
28 |
- pure-sfv: $(OBJ) |
29 |
-- $(CC) -lm -DVERSION=\"$(VERSION)\" $(CFLAGS) -o $(PROG) $(OBJ) |
30 |
-+ $(CC) -DVERSION=\"$(VERSION)\" $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJ) -lm |
31 |
- |
32 |
- PURIFY_OPTIONS=-follow-child-processes=yes -always-use-cache-dir=yes |
33 |
- PURIFY=purify |
34 |
|
35 |
diff --git a/app-arch/pure-sfv/files/pure-sfv-0.3-fix-build-system.patch b/app-arch/pure-sfv/files/pure-sfv-0.3-fix-build-system.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..ca2143f1f95 |
38 |
--- /dev/null |
39 |
+++ b/app-arch/pure-sfv/files/pure-sfv-0.3-fix-build-system.patch |
40 |
@@ -0,0 +1,22 @@ |
41 |
+--- a/Makefile |
42 |
++++ b/Makefile |
43 |
+@@ -54,18 +54,16 @@ |
44 |
+ |
45 |
+ VC_CRAP = pure-sfv.ncb pure-sfv.plg |
46 |
+ |
47 |
+-CFLAGS += -Wall -Werror -O2 -g -Wno-unused |
48 |
+ INSTALL_PREFIX = /usr/local |
49 |
+ INSTALL_PROGRAM = /usr/bin/install -c |
50 |
+ |
51 |
+ all: pure-sfv |
52 |
+ |
53 |
+-CC = gcc |
54 |
+ |
55 |
+ OBJ = ${SRCS:%.c=%.o} |
56 |
+ |
57 |
+ pure-sfv: $(OBJ) |
58 |
+- $(CC) -lm -DVERSION=\"$(VERSION)\" $(CFLAGS) -o $(PROG) $(OBJ) |
59 |
++ $(CC) -DVERSION=\"$(VERSION)\" $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(PROG) $(OBJ) -lm |
60 |
+ |
61 |
+ PURIFY_OPTIONS=-follow-child-processes=yes -always-use-cache-dir=yes |
62 |
+ PURIFY=purify |
63 |
|
64 |
diff --git a/app-arch/pure-sfv/pure-sfv-0.3-r1.ebuild b/app-arch/pure-sfv/pure-sfv-0.3-r1.ebuild |
65 |
index ca26b16fbcf..f28c6df42ec 100644 |
66 |
--- a/app-arch/pure-sfv/pure-sfv-0.3-r1.ebuild |
67 |
+++ b/app-arch/pure-sfv/pure-sfv-0.3-r1.ebuild |
68 |
@@ -1,9 +1,9 @@ |
69 |
-# Copyright 1999-2012 Gentoo Foundation |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
|
73 |
-EAPI="2" |
74 |
+EAPI=6 |
75 |
|
76 |
-inherit eutils toolchain-funcs |
77 |
+inherit flag-o-matic toolchain-funcs |
78 |
|
79 |
DESCRIPTION="utility to test and create .sfv files and create .par files" |
80 |
HOMEPAGE="http://pure-sfv.sourceforge.net/" |
81 |
@@ -15,20 +15,15 @@ KEYWORDS="amd64 ~hppa ppc x86" |
82 |
IUSE="" |
83 |
RESTRICT="test" |
84 |
|
85 |
-DEPEND="" |
86 |
+S=${WORKDIR} |
87 |
+PATCHES=( "${FILESDIR}"/${PN}-0.3-fix-build-system.patch ) |
88 |
|
89 |
-S="${WORKDIR}" |
90 |
- |
91 |
-src_prepare() { |
92 |
- sed -i Makefile -e "s:-Werror -O2 -g::" |
93 |
- epatch "${FILESDIR}"/${P}-asneeded.patch |
94 |
-} |
95 |
- |
96 |
-src_compile() { |
97 |
- emake CC="$(tc-getCC)" || die "emake failed" |
98 |
+src_configure() { |
99 |
+ append-cflags -Wall -Wno-unused |
100 |
+ tc-export CC |
101 |
} |
102 |
|
103 |
src_install() { |
104 |
- dobin pure-sfv || die "dobin failed" |
105 |
- dodoc ReadMe.txt |
106 |
+ dobin pure-sfv |
107 |
+ newdoc ReadMe.txt README |
108 |
} |