blob: c1918791a3e69c3f5e81dd203c3313244209f8b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/agistudio/agistudio-1.2.2.ebuild,v 1.7 2009/08/09 19:13:24 ssuominen Exp $
EAPI=1
inherit eutils toolchain-funcs qt3
DESCRIPTION="QT AGI Studio allows you to view, create and edit AGI games"
HOMEPAGE="http://agistudio.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""
DEPEND="x11-libs/qt:3"
S=${WORKDIR}/${P}/src
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-glibc-2.10.patch
sed -i \
-e "s#^QTDIR.*#QTDIR = ${QTDIR}#" \
-e "s#^INCPATH.*#INCPATH = -I\$(QTDIR)/include#" \
-e "s:g++:$(tc-getCXX):" \
-e "/^CXXFLAGS/s:-O2:${CXXFLAGS}:" \
-e 's/$(LFLAGS)/$(LDFLAGS)/' \
Makefile \
|| die "sed failed"
}
src_install() {
dobin agistudio || die "dobin failed"
cd ..
insinto /usr/share/${PN}
doins -r help template || die "doins failed"
doman agistudio.1
dodoc README relnotes
}
|