Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 214314
Collapse All | Expand All

(-)file_not_specified_in_diff (-17 / +15 lines)
Line  Link Here
0
-- fteqcc-2501.ebuild
0
++ fteqcc-1.00.ebuild
Lines 1-42 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-util/fteqcc/fteqcc-2501.ebuild,v 1.5 2010/01/20 20:09:05 maekke Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-util/fteqcc/fteqcc-2501.ebuild,v 1.5 2010/01/20 20:09:05 maekke Exp $
4
4
5
EAPI=2
5
EAPI=4
6
inherit eutils flag-o-matic
7
6
7
inherit eutils toolchain-funcs
8
9
MY_P=ftesrc-v${PV/./}-all
8
DESCRIPTION="QC compiler"
10
DESCRIPTION="QC compiler"
9
HOMEPAGE="http://fteqw.sourceforge.net/"
11
HOMEPAGE="http://www.fteqw.com/"
10
SRC_URI="mirror://sourceforge/fteqw/qclibsrc${PV}.zip"
12
SRC_URI="mirror://sourceforge/fteqw/${MY_P}.tar.gz"
11
13
12
LICENSE="GPL-2"
14
LICENSE="GPL-2"
13
SLOT="0"
15
SLOT="0"
14
KEYWORDS="amd64 x86"
16
KEYWORDS="~amd64 ~x86"
15
IUSE=""
17
IUSE=""
16
RESTRICT="test"
18
RESTRICT="test"
17
19
18
DEPEND="app-arch/unzip"
20
S=${WORKDIR}/qclib
19
RDEPEND=""
20
21
S=${WORKDIR}
22
21
23
src_prepare() {
22
src_prepare() {
24
	epatch "${FILESDIR}"/${P}-cleanup-source.patch
25
	sed -i \
23
	sed -i \
26
		-e '/^CC/d' \
24
		-e '/^CC/d' \
27
		-e "s: -O3 : :g" \
25
		-e '/^BASE_LDFLAGS/d' \
28
		-e "s: -s : :g" \
26
		-e '/^BASE_CFLAGS/d' \
29
		-e 's/-o fteqcc.bin/$(LDFLAGS) -o fteqcc.bin/' \
27
		-e 's/-o fteqcc.bin/$(LDFLAGS) -o fteqcc.bin/' \
30
		Makefile || die "sed failed"
28
		Makefile || die "sed failed"
31
	edos2unix readme.txt
29
	edos2unix readme.txt
32
	append-flags -DQCCONLY
33
}
30
}
34
31
35
src_compile() {
32
src_compile() {
36
	emake BASE_CFLAGS="${CFLAGS} -Wall" || die "emake qcc failed"
33
	tc-export CC
34
	default
37
}
35
}
38
36
39
src_install() {
37
src_install() {
40
	newbin fteqcc.bin fteqcc || die "newbin fteqcc.bin failed"
38
	newbin fteqcc.bin fteqcc
41
	dodoc readme.txt
39
	dodoc readme.txt
42
}
40
}

Return to bug 214314