diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-09-21 00:39:05 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-09-21 00:39:05 +0000 |
commit | 6530535c8c6cf9f34fd24b961e8f2f9406323f35 (patch) | |
tree | f3ed056ffe88cef6477f7d11aec9b63b89a86b99 /games-rpg | |
parent | Stable on sparc wrt #106678 (diff) | |
download | gentoo-2-6530535c8c6cf9f34fd24b961e8f2f9406323f35.tar.gz gentoo-2-6530535c8c6cf9f34fd24b961e8f2f9406323f35.tar.bz2 gentoo-2-6530535c8c6cf9f34fd24b961e8f2f9406323f35.zip |
Initial commit of new split ebuild for nwn (1.66-r1). It is currently masked, but I'm hoping that this becomes the default for nwn quite shortly. Closing bug #106484.
(Portage version: 1.589-cvs)
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/nwn/ChangeLog | 10 | ||||
-rw-r--r-- | games-rpg/nwn/files/digest-nwn-1.66 | 3 | ||||
-rw-r--r-- | games-rpg/nwn/files/digest-nwn-1.66-r1 | 20 | ||||
-rw-r--r-- | games-rpg/nwn/metadata.xml | 4 | ||||
-rw-r--r-- | games-rpg/nwn/nwn-1.66-r1.ebuild | 132 | ||||
-rw-r--r-- | games-rpg/nwn/nwn-1.66.ebuild | 14 |
6 files changed, 171 insertions, 12 deletions
diff --git a/games-rpg/nwn/ChangeLog b/games-rpg/nwn/ChangeLog index 4b32ecedde0a..76c5a056c6c7 100644 --- a/games-rpg/nwn/ChangeLog +++ b/games-rpg/nwn/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for games-rpg/nwn # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.23 2005/09/16 02:49:44 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.24 2005/09/21 00:39:04 wolf31o2 Exp $ + +*nwn-1.66-r1 (21 Sep 2005) + + 21 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org> metadata.xml, + nwn-1.66.ebuild, +nwn-1.66-r1.ebuild: + Initial commit of new split ebuild for nwn (1.66-r1). It is currently + masked, but I'm hoping that this becomes the default for nwn quite shortly. + Closing bug #106484. 16 Sep 2005; Michael Sterrett <mr_bones_@gentoo.org> nwn-1.65-r1.ebuild, nwn-1.66.ebuild: diff --git a/games-rpg/nwn/files/digest-nwn-1.66 b/games-rpg/nwn/files/digest-nwn-1.66 index 309cbf93171c..6c8b3f36c66d 100644 --- a/games-rpg/nwn/files/digest-nwn-1.66 +++ b/games-rpg/nwn/files/digest-nwn-1.66 @@ -8,6 +8,9 @@ MD5 efa3fb10bdaced373d21d9809a176968 nwitalian129.tar.gz 3926804 MD5 506c6b358266ada6dfeb741c1f0f3e2e Spanish_linuxclient166_orig.tar.gz 97416220 MD5 0cfe48c49ecbb52263853ebe4f8c2854 NWNSpanish1.66dialog.zip 6693679 MD5 920d4fdcf5d8d0ff583f236ae7f3f6d4 nwspanish129.tar.gz 3912516 +MD5 fd196316842c0ba0e622174a16f16d3b German_linuxclient166_orig.tar.gz 96518347 +MD5 2f12c9aac4588a72e2528a0ab536dc77 NWNGerman1.66dialog.zip 7217241 +MD5 7ff8aeea91a59f8c54a5263ca8ea2261 nwgerman129.tar.gz 381832822 MD5 bf313bdffef3440011888a1b8386ef88 English_linuxclient166_orig.tar.gz 95293070 MD5 f4dafd3788aae35c8295c691b4e40db4 NWNEnglish1.66dialog.zip 3180592 MD5 8222401efe25235b56d01b38ae880b5b nwresources129.tar.gz 1212356127 diff --git a/games-rpg/nwn/files/digest-nwn-1.66-r1 b/games-rpg/nwn/files/digest-nwn-1.66-r1 new file mode 100644 index 000000000000..4a0dd8bca59a --- /dev/null +++ b/games-rpg/nwn/files/digest-nwn-1.66-r1 @@ -0,0 +1,20 @@ +MD5 682de9174ed425d842fcfa0e1d33c175 French_linuxclient166_orig.tar.gz 95815139 +MD5 98d3d4afa02be4a76cc664372aa3576d NWNFrench1.66dialog.zip 6758854 +MD5 8571410f2406d105f2261d0941dba60c French_linuxclient166_xp1.tar.gz 115014548 +MD5 42828e091adca30ec437352bf9bf81a4 French_linuxclient166_xp2.tar.gz 93784492 +MD5 a8ea537b8ff909d1e473dfd26440507f Italian_linuxclient166_orig.tar.gz 97447989 +MD5 73c9ddb239ddf21684088b536a670aae NWNItalian1.66dialog.zip 6719283 +MD5 f521643eace9dd518f57d9bd80baae7f Italian_linuxclient166_xp1.tar.gz 107235995 +MD5 d5bd025c1a05dcee1cb6a69af9dea2c5 Italian_linuxclient166_xp2.tar.gz 94358544 +MD5 506c6b358266ada6dfeb741c1f0f3e2e Spanish_linuxclient166_orig.tar.gz 97416220 +MD5 0cfe48c49ecbb52263853ebe4f8c2854 NWNSpanish1.66dialog.zip 6693679 +MD5 30b8d96aac622849b60c898d5b6388e6 Spanish_linuxclient166_xp1.tar.gz 107234620 +MD5 86b814566a263980dac5b6f4f6a23510 Spanish_linuxclient166_xp2.tar.gz 94355753 +MD5 fd196316842c0ba0e622174a16f16d3b German_linuxclient166_orig.tar.gz 96518347 +MD5 2f12c9aac4588a72e2528a0ab536dc77 NWNGerman1.66dialog.zip 7217241 +MD5 1cfbba036cb656a544d65f11fe90e3ec German_linuxclient166_xp1.tar.gz 116750907 +MD5 f22bbb5242cc85fd7d2c39be8b766245 German_linuxclient166_xp2.tar.gz 94927860 +MD5 bf313bdffef3440011888a1b8386ef88 English_linuxclient166_orig.tar.gz 95293070 +MD5 f4dafd3788aae35c8295c691b4e40db4 NWNEnglish1.66dialog.zip 3180592 +MD5 0c598fa6ab6c357a7d8d0a371d9e68af English_linuxclient166_xp1.tar.gz 98486117 +MD5 69acbaab584943c5b4d625010f715e87 English_linuxclient166_xp2.tar.gz 80653616 diff --git a/games-rpg/nwn/metadata.xml b/games-rpg/nwn/metadata.xml index d3c2cc926f0b..fe08918e6837 100644 --- a/games-rpg/nwn/metadata.xml +++ b/games-rpg/nwn/metadata.xml @@ -2,4 +2,8 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>games</herd> +<maintainer> + <email>wolf31o2@gentoo.org</email> + <name>Chris Gianelloni</name> +</maintainer> </pkgmetadata> diff --git a/games-rpg/nwn/nwn-1.66-r1.ebuild b/games-rpg/nwn/nwn-1.66-r1.ebuild new file mode 100644 index 000000000000..587b29d4ff27 --- /dev/null +++ b/games-rpg/nwn/nwn-1.66-r1.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66-r1.ebuild,v 1.1 2005/09/21 00:39:05 wolf31o2 Exp $ + +inherit eutils games + +MY_PV=${PV//.} +PATCH_URL_BASE=http://content.bioware.com/neverwinternights/linux/${MY_PV}/ +DIALOG_URL_BASE=http://nwdownloads.bioware.com/neverwinternights/patch/dialog/ +PACKAGE_NAME=_linuxclient${MY_PV}_orig.tar.gz +SOU_NAME=_linuxclient${MY_PV}_xp1.tar.gz +HOU_NAME=_linuxclient${MY_PV}_xp2.tar.gz + +DESCRIPTION="Neverwinter Nights" +HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html" +SRC_URI="linguas_fr? ( + ${PATCH_URL_BASE}French${PACKAGE_NAME} + ${DIALOG_URL_BASE}/french/NWNFrench${PV}dialog.zip + sou? ( ${PATCH_URL_BASE}French${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}French${HOU_NAME} ) ) + linguas_it? ( + ${PATCH_URL_BASE}Italian${PACKAGE_NAME} + ${DIALOG_URL_BASE}/italian/NWNItalian${PV}dialog.zip + sou? ( ${PATCH_URL_BASE}Italian${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}Italian${HOU_NAME} ) ) + linguas_es? ( + ${PATCH_URL_BASE}Spanish${PACKAGE_NAME} + ${DIALOG_URL_BASE}/spanish/NWNSpanish${PV}dialog.zip + sou? ( ${PATCH_URL_BASE}Spanish${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}Spanish${HOU_NAME} ) ) + linguas_de? ( + ${PATCH_URL_BASE}German${PACKAGE_NAME} + ${DIALOG_URL_BASE}/german/NWNGerman${PV}dialog.zip + sou? ( ${PATCH_URL_BASE}German${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}German${HOU_NAME} ) ) + !linguas_de? ( !linguas_fr? ( !linguas_es? ( !linguas_it? ( + ${PATCH_URL_BASE}English${PACKAGE_NAME} + ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip + sou? ( ${PATCH_URL_BASE}English${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}English${HOU_NAME} ) ) ) ) )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sou hou" +RESTRICT="nostrip nomirror" + +RDEPEND="games-rpg/nwn-data + virtual/x11 + virtual/opengl + >=media-libs/libsdl-1.2.5 + amd64? ( app-emulation/emul-linux-x86-baselibs )" + +S="${WORKDIR}/nwn" +dir="${GAMES_PREFIX_OPT}/${PN}" +Ddir="${D}/${dir}" + +die_from_busted_nwn-data() { + local use=$* + echo "DEBUG: $use" + ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this" + ewarn "by doing the following:" + echo + einfo "mkdir -p /etc/portage" + einfo "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use" + einfo "emerge --oneshot games-rpg/nwn-data" + die "nwn-data requires USE=$use" +} + +pkg_setup() { + if use sou + then + built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou + fi + if use hou + then + built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou + fi + if use linguas_fr + then + built_with_use games-rpg/nwn-data linguas_fr || \ + die_from_busted_nwn-data linguas_fr + fi + if use linguas_it + then + built_with_use games-rpg/nwn-data linguas_it || \ + die_from_busted_nwn-data linguas_it + fi + if use linguas_es + then + built_with_use games-rpg/nwn-data linguas_es || \ + die_from_busted_nwn-data linguas_es + fi + if use linguas_de + then + built_with_use games-rpg/nwn-data linguas_de || \ + die_from_busted_nwn-data linguas_de + fi + games_pkg_setup +} + +src_unpack() { + mkdir -p ${S} + cd ${S} + # the following is so ugly, please pretend it doesnt exist + declare -a Aarray=(${A}) + unpack ${Aarray[0]} + use sou && rm -f data/patch.bif patch.key && unpack ${Aarray[2]} + use hou && rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key \ + override/* && unpack ${Aarray[3]} + unpack ${Aarray[1]} +} + +src_install() { + dodir ${dir} + sed \ + -e "s:GENTOO_USER:${GAMES_USER}:" \ + -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \ + -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \ + ${FILESDIR}/${P}-fixinstall > ${S}/fixinstall + mv ${S}/* ${Ddir} + games_make_wrapper nwn ./nwn ${dir} + make_desktop_entry nwn "Neverwinter Nights" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + einfo "The NWN linux client is now installed." + einfo "Proceed with the following step in order to get it working:" + einfo "Run ${dir}/fixinstall as root" +} diff --git a/games-rpg/nwn/nwn-1.66.ebuild b/games-rpg/nwn/nwn-1.66.ebuild index 38f5fe8ab1f8..ae4824b3f5b6 100644 --- a/games-rpg/nwn/nwn-1.66.ebuild +++ b/games-rpg/nwn/nwn-1.66.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66.ebuild,v 1.3 2005/09/16 02:49:44 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66.ebuild,v 1.4 2005/09/21 00:39:05 wolf31o2 Exp $ inherit eutils games @@ -15,15 +15,13 @@ SRC_URI="http://nwdownloads.bioware.com/neverwinternights/linux/129/nwclient129. linguas_fr? ( ${PATCH_URL_BASE}French${PACKAGE_NAME} ${DIALOG_URL_BASE}/french/NWNFrench${PV}dialog.zip ftp://jeuxlinux.com/bioware/Neverwinter_Nights/nwfrench129.tar.gz ) linguas_it? ( ${PATCH_URL_BASE}Italian${PACKAGE_NAME} ${DIALOG_URL_BASE}/italian/NWNItalian${PV}dialog.zip http://nwdownloads.bioware.com/neverwinternights/linux/129/nwitalian129.tar.gz ) linguas_es? ( ${PATCH_URL_BASE}Spanish${PACKAGE_NAME} ${DIALOG_URL_BASE}/spanish/NWNSpanish${PV}dialog.zip http://nwdownloads.bioware.com/neverwinternights/linux/129/nwspanish129.tar.gz ) + linguas_de? ( ${PATCH_URL_BASE}German${PACKAGE_NAME} ${DIALOG_URL_BASE}/german/NWNGerman${PV}dialog.zip http://xfer06.fileplanet.com/%5E389272944/082003/nwgerman129.tar.gz ) !linguas_de? ( !linguas_fr? ( !linguas_es? ( !linguas_it? ( ${PATCH_URL_BASE}English${PACKAGE_NAME} ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip ) ) ) ) nowin? ( http://bsd.mikulas.com/nwresources129.tar.gz http://163.22.12.40/FreeBSD/distfiles/nwresources129.tar.gz ftp://jeuxlinux.com/bioware/Neverwinter_Nights/nwresources129.tar.gz )" -# This is commented because FilePlanet sucks and I can't find another mirror, -# so I can't even grab this file. -# linguas_de? ( ${PATCH_URL_BASE}German${PACKAGE_NAME} ${DIALOG_URL_BASE}/german/NWNGerman${PV}dialog.zip http://xfer06.fileplanet.com/%5E389272944/082003/nwgerman129.tar.gz )" LICENSE="NWN-EULA" SLOT="0" @@ -35,8 +33,6 @@ RDEPEND="virtual/x11 virtual/opengl >=media-libs/libsdl-1.2.5 amd64? ( app-emulation/emul-linux-x86-baselibs )" -DEPEND="${RDEPEND} - app-arch/unzip" S="${WORKDIR}/nwn" dir="${GAMES_PREFIX_OPT}/${PN}" @@ -48,11 +44,7 @@ pkg_setup() { # disk2.zip \ # disk3.zip \ # disk4.zip - if use linguas_de - then - einfo "To download nwgerman129.tar.gz you need a gamespy account" - einfo "This means German support is unavailable at this time." - fi +# einfo "To download nwgerman129.tar.gz you need a gamespy account" games_pkg_setup } |