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

(-)grfcodec-0_pre2306.ebuild (-20 / +36 lines)
Lines 1-41 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/grfcodec/grfcodec-0_pre2306.ebuild,v 1.7 2010/10/15 13:49:56 maekke Exp $
3
# $Header: $
4
4
5
EAPI=2
5
EAPI=3
6
inherit eutils toolchain-funcs
7
6
8
MY_PV=${PV/0_pre/r}
7
SCM=""
8
if [ "${PV%9999}" != "${PV}" ] ; then
9
	SCM=mercurial
10
	EHG_REPO_URI="http://hg.openttdcoop.org/${PN}"
11
fi
12
13
inherit toolchain-funcs ${SCM}
14
15
MY_PV=${PV/_rc/-RC}
9
DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files"
16
DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files"
10
HOMEPAGE="http://binaries.openttd.org/extra/grfcodec/"
17
HOMEPAGE="http://dev.openttdcoop.org/projects/grfcodec"
11
SRC_URI="http://binaries.openttd.org/extra/grfcodec/${MY_PV}/${PN}-${MY_PV}-source.tar.bz2"
18
19
if [ "${PV%9999}" != "${PV}" ] ; then
20
	SRC_URI=""
21
else
22
	SRC_URI="http://binaries.openttd.org/extra/${PN}/${MY_PV}/${PN}-${MY_PV}-source.tar.gz"
23
fi
12
24
13
LICENSE="GPL-2"
25
LICENSE="GPL-2"
14
SLOT="0"
26
SLOT="0"
15
KEYWORDS="amd64 ~arm ppc ppc64 x86"
27
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
16
IUSE=""
28
IUSE=""
17
29
18
S=${WORKDIR}/${PN}-${MY_PV}
30
if [ "${PV%9999}" != "${PV}" ] ; then
19
31
	S=${WORKDIR}/${PN}
20
DEPEND="dev-lang/perl
32
else
21
	dev-libs/boost"
33
	S=${WORKDIR}/${PN}-${MY_PV}-source
34
fi
35
36
DEPEND="!games-util/nforenum
37
	dev-lang/perl
38
	dev-libs/boost
39
	media-libs/libpng"
22
RDEPEND=""
40
RDEPEND=""
23
41
24
src_prepare() {
42
src_prepare() {
25
	cat > Makefile.local <<-__EOF__
43
# Set up Makefile.local so that we respect CXXFLAGS/LDFLAGS
26
		CC = $(tc-getCC)
44
cat > Makefile.local <<-__EOF__
27
		CXX = $(tc-getCXX)
45
		CXX = $(tc-getCXX)
28
		CFLAGS = ${CFLAGS}
29
		CXXFLAGS = ${CXXFLAGS}
46
		CXXFLAGS = ${CXXFLAGS}
30
		LDOPT = ${LDFLAGS}
47
		LDOPT = ${LDFLAGS}
31
		STRIP = :
48
		UPX =
32
		V = 1
49
		V = 1
33
	__EOF__
50
	__EOF__
34
35
	epatch "${FILESDIR}"/${P}-build.patch
36
}
51
}
37
52
38
src_install() {
53
src_install() {
39
	dobin ${PN} grf{diff,merge} || die
54
	dobin ${PN} grf{diff,id,merge} nforenum || die
40
	dodoc *.txt Changelog || die
55
	doman docs/*.1 || die
56
	dodoc changelog.txt docs/*.txt || die
41
}
57
}

Return to bug 365957