Package-Manager: Portage-2.3.19, Repoman-2.3.6
--- /dev/null
+--- 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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
+EAPI=6
inherit toolchain-funcs
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
}