Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/par/, app-arch/par/files/
Date: Fri, 29 Dec 2017 13:17:17
Message-Id: 1514553381.7de330c3c4863c55526d29e3f38af67e913e5d6d.soap@gentoo
1 commit: 7de330c3c4863c55526d29e3f38af67e913e5d6d
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 29 12:33:45 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 29 13:16:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7de330c3
7
8 app-arch/par: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-arch/par/files/par-1.1-fix-build-system.patch | 13 +++++++++++++
13 app-arch/par/par-1.1.ebuild | 20 ++++++++------------
14 2 files changed, 21 insertions(+), 12 deletions(-)
15
16 diff --git a/app-arch/par/files/par-1.1-fix-build-system.patch b/app-arch/par/files/par-1.1-fix-build-system.patch
17 new file mode 100644
18 index 00000000000..30361579f22
19 --- /dev/null
20 +++ b/app-arch/par/files/par-1.1-fix-build-system.patch
21 @@ -0,0 +1,13 @@
22 +--- a/Makefile
23 ++++ b/Makefile
24 +@@ -1,8 +1,8 @@
25 +
26 +-CFLAGS=-g -W -Wall -Wno-unused -O2
27 ++CFLAGS += -W -Wall -Wno-unused
28 +
29 + par: backend.o checkpar.o makepar.o rwpar.o rs.o md5.o fileops.o main.o readoldpar.o interface.o ui_text.o
30 +- $(CC) -o $@ $^
31 ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
32 +
33 + clean:
34 + rm -f core par par.exe *.o
35
36 diff --git a/app-arch/par/par-1.1.ebuild b/app-arch/par/par-1.1.ebuild
37 index a0bb3fff9ad..63ac82a7d47 100644
38 --- a/app-arch/par/par-1.1.ebuild
39 +++ b/app-arch/par/par-1.1.ebuild
40 @@ -1,7 +1,7 @@
41 # Copyright 1999-2017 Gentoo Foundation
42 # Distributed under the terms of the GNU General Public License v2
43
44 -EAPI=2
45 +EAPI=6
46
47 inherit toolchain-funcs
48
49 @@ -14,23 +14,19 @@ SLOT="0"
50 KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
51 IUSE=""
52
53 -DEPEND="!app-text/par
54 +DEPEND="
55 + !app-text/par
56 !dev-util/par"
57 RDEPEND="${DEPEND}"
58
59 S="${WORKDIR}"/par-cmdline
60 +PATCHES=( "${FILESDIR}"/${PN}-1.1-fix-build-system.patch )
61
62 -src_prepare() {
63 - sed -i \
64 - -e 's/\$(CC)/$(LINK.o)/' \
65 - Makefile || die "sed failed"
66 -}
67 -
68 -src_compile() {
69 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
70 +src_configure() {
71 + tc-export CC
72 }
73
74 src_install() {
75 - dobin par || die "dobin failed"
76 - dodoc AUTHORS NEWS README
77 + dobin par
78 + einstalldocs
79 }