From 8de691b02ec9fb49c2cf9e59cf169f989c4b606a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Jan 2004 18:16:18 +0000 Subject: fix wrapper script #38580 --- games-strategy/freecraft/ChangeLog | 7 +- .../freecraft/files/digest-freecraft-1.18-r2 | 1 - .../freecraft/files/digest-freecraft-1.18-r3 | 1 + games-strategy/freecraft/files/freecraft | 2 +- games-strategy/freecraft/freecraft-1.18-r2.ebuild | 78 ---------------------- games-strategy/freecraft/freecraft-1.18-r3.ebuild | 78 ++++++++++++++++++++++ 6 files changed, 86 insertions(+), 81 deletions(-) delete mode 100644 games-strategy/freecraft/files/digest-freecraft-1.18-r2 create mode 100644 games-strategy/freecraft/files/digest-freecraft-1.18-r3 delete mode 100644 games-strategy/freecraft/freecraft-1.18-r2.ebuild create mode 100644 games-strategy/freecraft/freecraft-1.18-r3.ebuild (limited to 'games-strategy') diff --git a/games-strategy/freecraft/ChangeLog b/games-strategy/freecraft/ChangeLog index 261ebc493775..5963797ff068 100644 --- a/games-strategy/freecraft/ChangeLog +++ b/games-strategy/freecraft/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-strategy/freecraft # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft/ChangeLog,v 1.3 2004/01/18 01:43:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft/ChangeLog,v 1.4 2004/01/22 18:16:18 vapier Exp $ + +*freecraft-1.18-r3 (22 Jan 2004) + + 22 Jan 2004; Mike Frysinger : + Stupid wrapper script #38580. *freecraft-1.18-r2 (17 Jan 2004) diff --git a/games-strategy/freecraft/files/digest-freecraft-1.18-r2 b/games-strategy/freecraft/files/digest-freecraft-1.18-r2 deleted file mode 100644 index 8720e43ef97e..000000000000 --- a/games-strategy/freecraft/files/digest-freecraft-1.18-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 e7926083835d9f913e4bfc7e1ab13cc1 freecraft-030311-src.tar.gz 1883435 diff --git a/games-strategy/freecraft/files/digest-freecraft-1.18-r3 b/games-strategy/freecraft/files/digest-freecraft-1.18-r3 new file mode 100644 index 000000000000..8720e43ef97e --- /dev/null +++ b/games-strategy/freecraft/files/digest-freecraft-1.18-r3 @@ -0,0 +1 @@ +MD5 e7926083835d9f913e4bfc7e1ab13cc1 freecraft-030311-src.tar.gz 1883435 diff --git a/games-strategy/freecraft/files/freecraft b/games-strategy/freecraft/files/freecraft index 542146588d6f..12f0c1e0293a 100644 --- a/games-strategy/freecraft/files/freecraft +++ b/games-strategy/freecraft/files/freecraft @@ -12,4 +12,4 @@ if [ ! -d GENTOO_DATADIR/data/music ] ; then exit 1 fi -freecraft -d GENTOO_DATADIR/data "$@" +GENTOO_LIBDIR/freecraft -d GENTOO_DATADIR/data "$@" diff --git a/games-strategy/freecraft/freecraft-1.18-r2.ebuild b/games-strategy/freecraft/freecraft-1.18-r2.ebuild deleted file mode 100644 index 9085aec58a65..000000000000 --- a/games-strategy/freecraft/freecraft-1.18-r2.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft/freecraft-1.18-r2.ebuild,v 1.1 2004/01/18 01:43:39 vapier Exp $ - -inherit games eutils - -MY_P=${PN}-030311 -DESCRIPTION="realtime strategy game engine for games like Warcraft/Starcraft/etc." -HOMEPAGE="http://www.freecraft.org/" -SRC_URI="${MY_P}-src.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -RESTRICT="fetch" - -DEPEND=">=media-libs/libpng-1.2.3 - >=media-libs/libsdl-1.2.4 - sys-libs/zlib" - -S=${WORKDIR}/${MY_P} - -pkg_nofetch() { - einfo "Due to a Ceast and Desist given by Blizzard," - einfo "you must obtain the sources for this game yourself." - einfo "For more information, please visit: ${HOMEPAGE}" - einfo "Also, you'll have to place the files ${A}" - einfo "into ${DISTDIR}" -} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-setup.patch - env GENTOO_CFLAGS="${CFLAGS}" ./setup || die -} - -src_compile() { - make depend || die "depend generation failed" - make || die "build failed" -} - -src_install() { - exeinto ${GAMES_LIBDIR}/${PN} - doexe freecraft - dogamesbin ${FILESDIR}/freecraft - dosed "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/freecraft - dosed "s:GENTOO_LIBDIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/freecraft - - exeinto ${GAMES_DATADIR}/${PN}/tools - doexe tools/{build.sh,aledoc,startool,wartool} - - dodir ${GAMES_DATADIR}/${PN}/ - cp -r data ${D}/${GAMES_DATADIR}/${PN}/ - - insinto ${GAMES_DATADIR}/${PN}/contrib - cp -r contrib ${D}/${GAMES_DATADIR}/${PN}/ - - dohtml -r doc - dodoc README - - prepgamesdirs -} - -pkg_postinst() { - einfo "Freecraft is now installed but in order to actually play" - einfo "you will need to either use a Warcraft CD or install the" - einfo "freecraft-fcmp ebuild. To use a Warcraft CD:" - einfo " 1 mount the cd as /mnt/cdrom" - einfo " 2 cd ${GAMES_DATADIR}" - einfo " 3 run tools/build.sh" - einfo "This will extract the data files to the correct place." - einfo "Note that the CD is still needed for the music. To" - einfo "start a game just run \`playfreecraft\`." - einfo "For more info, review \`freecraft --help\`." - - games_pkg_postinst -} diff --git a/games-strategy/freecraft/freecraft-1.18-r3.ebuild b/games-strategy/freecraft/freecraft-1.18-r3.ebuild new file mode 100644 index 000000000000..4fc5742058d9 --- /dev/null +++ b/games-strategy/freecraft/freecraft-1.18-r3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecraft/freecraft-1.18-r3.ebuild,v 1.1 2004/01/22 18:16:18 vapier Exp $ + +inherit games eutils + +MY_P=${PN}-030311 +DESCRIPTION="realtime strategy game engine for games like Warcraft/Starcraft/etc." +HOMEPAGE="http://www.freecraft.org/" +SRC_URI="${MY_P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +RESTRICT="fetch" + +DEPEND=">=media-libs/libpng-1.2.3 + >=media-libs/libsdl-1.2.4 + sys-libs/zlib" + +S=${WORKDIR}/${MY_P} + +pkg_nofetch() { + einfo "Due to a Ceast and Desist given by Blizzard," + einfo "you must obtain the sources for this game yourself." + einfo "For more information, please visit: ${HOMEPAGE}" + einfo "Also, you'll have to place the files ${A}" + einfo "into ${DISTDIR}" +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-setup.patch + env GENTOO_CFLAGS="${CFLAGS}" ./setup || die +} + +src_compile() { + make depend || die "depend generation failed" + make || die "build failed" +} + +src_install() { + exeinto ${GAMES_LIBDIR}/${PN} + doexe freecraft + dogamesbin ${FILESDIR}/freecraft + dosed "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/freecraft + dosed "s:GENTOO_LIBDIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/freecraft + + exeinto ${GAMES_DATADIR}/${PN}/tools + doexe tools/{build.sh,aledoc,startool,wartool} + + dodir ${GAMES_DATADIR}/${PN}/ + cp -r data ${D}/${GAMES_DATADIR}/${PN}/ + + insinto ${GAMES_DATADIR}/${PN}/contrib + cp -r contrib ${D}/${GAMES_DATADIR}/${PN}/ + + dohtml -r doc + dodoc README + + prepgamesdirs +} + +pkg_postinst() { + einfo "Freecraft is now installed but in order to actually play" + einfo "you will need to either use a Warcraft CD or install the" + einfo "freecraft-fcmp ebuild. To use a Warcraft CD:" + einfo " 1 mount the cd as /mnt/cdrom" + einfo " 2 cd ${GAMES_DATADIR}" + einfo " 3 run tools/build.sh" + einfo "This will extract the data files to the correct place." + einfo "Note that the CD is still needed for the music. To" + einfo "start a game just run \`playfreecraft\`." + einfo "For more info, review \`freecraft --help\`." + + games_pkg_postinst +} -- cgit v1.2.3-65-gdbad