diff options
author | 2004-07-10 03:01:12 +0000 | |
---|---|---|
committer | 2004-07-10 03:01:12 +0000 | |
commit | 0b20f274a78c2c4298acd8422a357148e3e497a4 (patch) | |
tree | c13b3ce8fa7d9f449c6b13a49b74a9d1c1de79ce /games-strategy/attal/attal-0.8.1.ebuild | |
parent | Added ~sparc keyword. (diff) | |
download | historical-0b20f274a78c2c4298acd8422a357148e3e497a4.tar.gz historical-0b20f274a78c2c4298acd8422a357148e3e497a4.tar.bz2 historical-0b20f274a78c2c4298acd8422a357148e3e497a4.zip |
version bump (bug #56495)
Diffstat (limited to 'games-strategy/attal/attal-0.8.1.ebuild')
-rw-r--r-- | games-strategy/attal/attal-0.8.1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/games-strategy/attal/attal-0.8.1.ebuild b/games-strategy/attal/attal-0.8.1.ebuild new file mode 100644 index 000000000000..cacb3f9e44ef --- /dev/null +++ b/games-strategy/attal/attal-0.8.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/attal/attal-0.8.1.ebuild,v 1.1 2004/07/10 03:01:12 mr_bones_ Exp $ + +inherit games + +MY_P="${PN}-src-${PV}" +DESCRIPTION="turn-based strategy game project" +HOMEPAGE="http://www.attal-thegame.org/" +SRC_URI="mirror://sourceforge/attal/${MY_P}.tar.bz2 + mirror://sourceforge/attal/themes-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +DEPEND=">=x11-libs/qt-3*" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd ${S} + for lib in Client Common Fight Server ; do + sed -i \ + -e "/^TARGET/s:= ${lib}:= ${PN}${lib}:" \ + -e "s:lib${lib}\.so:lib${PN}${lib}.so:g" \ + -e "s:-l${lib}:-l${PN}${lib}:g" \ + */*.pro \ + || die "renaming ${lib}" + done + qmake -o Makefile Makefile.pro || die "qmake failed" + sed -i \ + "s:\./themes/:${GAMES_DATADIR}/${PN}/themes/:" \ + `grep -Rl '\./themes/' *` \ + || die "fixing theme loc" + find "${WORKDIR}/themes" -name .cvsignore -exec rm -f \{\} \; +} + +src_compile() { + # broken deps in the makefiles ... + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + sub-libCommon || die "emake sub-libCommon failed" + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + sub-{libFight,libClient,libServer} || die "emake libs failed" + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + || die "emake failed" +} + +src_install() { + dogamesbin attal-* || die "dogamesbin failed" + into "${GAMES_PREFIX}" + dolib.so lib*.so* || die "dolib.so failed" + dodir "${GAMES_DATADIR}/${PN}" + cp -r "${WORKDIR}/themes" "${D}/${GAMES_DATADIR}/${PN}/themes" \ + || die "cp failed" + dodoc AUTHORS NEWS README TODO + prepgamesdirs +} |