--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- fteqcc-2501.ebuild +++ fteqcc-1.00.ebuild @@ -1,42 +1,40 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-util/fteqcc/fteqcc-2501.ebuild,v 1.5 2010/01/20 20:09:05 maekke Exp $ -EAPI=2 -inherit eutils flag-o-matic +EAPI=4 +inherit eutils toolchain-funcs + +MY_P=ftesrc-v${PV/./}-all DESCRIPTION="QC compiler" -HOMEPAGE="http://fteqw.sourceforge.net/" -SRC_URI="mirror://sourceforge/fteqw/qclibsrc${PV}.zip" +HOMEPAGE="http://www.fteqw.com/" +SRC_URI="mirror://sourceforge/fteqw/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="~amd64 ~x86" IUSE="" RESTRICT="test" -DEPEND="app-arch/unzip" -RDEPEND="" - -S=${WORKDIR} +S=${WORKDIR}/qclib src_prepare() { - epatch "${FILESDIR}"/${P}-cleanup-source.patch sed -i \ -e '/^CC/d' \ - -e "s: -O3 : :g" \ - -e "s: -s : :g" \ + -e '/^BASE_LDFLAGS/d' \ + -e '/^BASE_CFLAGS/d' \ -e 's/-o fteqcc.bin/$(LDFLAGS) -o fteqcc.bin/' \ Makefile || die "sed failed" edos2unix readme.txt - append-flags -DQCCONLY } src_compile() { - emake BASE_CFLAGS="${CFLAGS} -Wall" || die "emake qcc failed" + tc-export CC + default } src_install() { - newbin fteqcc.bin fteqcc || die "newbin fteqcc.bin failed" + newbin fteqcc.bin fteqcc dodoc readme.txt }