diff --git a/ttaenc-3.4.1-r1.ebuild b/ttaenc-3.4.1-r1.ebuild index d769746..5adbd45 100644 --- a/ttaenc-3.4.1-r1.ebuild +++ b/ttaenc-3.4.1-r1.ebuild @@ -1,9 +1,7 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=4 - -inherit toolchain-funcs +EAPI=6 DESCRIPTION="True Audio Compressor Software" HOMEPAGE="http://tta.sourceforge.net" @@ -18,17 +16,23 @@ DEPEND="sys-apps/sed" S=${WORKDIR}/${P}-src +PATCHES=( + "${FILESDIR}"/${P}-fix_int_types.patch +) + src_prepare() { - sed -i -e "s:gcc:$(tc-getCC):g" \ - -e "s:-o:${LDFLAGS} -o:g" \ + default + + sed -i -e 's:gcc:${CC}:g' \ + -e 's:-o:${LDFLAGS} -o:g' \ Makefile || die } -src_compile () { +src_compile() { emake CFLAGS="${CFLAGS}" } -src_install () { +src_install() { dobin ttaenc dodoc ChangeLog-${PV} README }