diff options
author | David Seifert <soap@gentoo.org> | 2017-12-29 13:33:45 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-12-29 14:16:21 +0100 |
commit | 7de330c3c4863c55526d29e3f38af67e913e5d6d (patch) | |
tree | dce2141a0a7b052d04a4f056bf534903c4d23da7 /app-arch | |
parent | app-arch/arc: Port to EAPI 6 (diff) | |
download | gentoo-7de330c3c4863c55526d29e3f38af67e913e5d6d.tar.gz gentoo-7de330c3c4863c55526d29e3f38af67e913e5d6d.tar.bz2 gentoo-7de330c3c4863c55526d29e3f38af67e913e5d6d.zip |
app-arch/par: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/par/files/par-1.1-fix-build-system.patch | 13 | ||||
-rw-r--r-- | app-arch/par/par-1.1.ebuild | 20 |
2 files changed, 21 insertions, 12 deletions
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 new file mode 100644 index 000000000000..30361579f226 --- /dev/null +++ b/app-arch/par/files/par-1.1-fix-build-system.patch @@ -0,0 +1,13 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,8 +1,8 @@ + +-CFLAGS=-g -W -Wall -Wno-unused -O2 ++CFLAGS += -W -Wall -Wno-unused + + par: backend.o checkpar.o makepar.o rwpar.o rs.o md5.o fileops.o main.o readoldpar.o interface.o ui_text.o +- $(CC) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + clean: + rm -f core par par.exe *.o diff --git a/app-arch/par/par-1.1.ebuild b/app-arch/par/par-1.1.ebuild index a0bb3fff9ad7..63ac82a7d472 100644 --- a/app-arch/par/par-1.1.ebuild +++ b/app-arch/par/par-1.1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=2 +EAPI=6 inherit toolchain-funcs @@ -14,23 +14,19 @@ SLOT="0" KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="" -DEPEND="!app-text/par +DEPEND=" + !app-text/par !dev-util/par" RDEPEND="${DEPEND}" S="${WORKDIR}"/par-cmdline +PATCHES=( "${FILESDIR}"/${PN}-1.1-fix-build-system.patch ) -src_prepare() { - sed -i \ - -e 's/\$(CC)/$(LINK.o)/' \ - Makefile || die "sed failed" -} - -src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed" +src_configure() { + tc-export CC } src_install() { - dobin par || die "dobin failed" - dodoc AUTHORS NEWS README + dobin par + einstalldocs } |