Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 324458 Details for
Bug 200967
games-fps/rott-data (Rise of the Triad) (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-fps/rott-data-1.0-r1.ebuild
rott-data-1.0-r1.ebuild (text/plain), 2.82 KB, created by
Jared B.
on 2012-09-21 02:58:33 UTC
(
hide
)
Description:
games-fps/rott-data-1.0-r1.ebuild
Filename:
MIME Type:
Creator:
Jared B.
Created:
2012-09-21 02:58:33 UTC
Size:
2.82 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >EAPI="3" > >inherit cdrom games > >MY_EXE="setup_rise_of_the_triad.exe" > >DESCRIPTION="Rise of the Triad game data" >HOMEPAGE="http://www.3drealms.com/rott/" >SRC_URI="!cdinstall? ( $MY_EXE )" > >LICENSE="as-is" >SLOT="0" >KEYWORDS="amd64 x86" >PROPERTIES="cdinstall? ( interactive )" >RESTRICT="!cdinstall? ( fetch )" >IUSE="+cdinstall doc" > >DEPEND="!cdinstall? ( > app-arch/innoextract > app-arch/unzip > )" >RDEPEND="" > >S=${WORKDIR} > ># Function to handle copying and renaming files from installation directory >copy_file() { > local dest="${2}" > local f=$(basename "${1}") > if [ "${f:0:1}" == '*' ]; then > return 0 > else > echo "Copying '${f}'" > local d=$(echo ${f} | tr "[:upper:]" "[:lower:]") > cp -f "${1}" "${dest}/${d}" > return $? > fi >} > >pkg_nofetch() { > elog "You must place a copy of, or symlink to, the GOG setup package here:" > elog "${DISTDIR}/${MY_EXE}" > echo > elog "If you wish to install from CD-ROM instead, please enable the cdinstall flag" >} > >pkg_setup() { > if use cdinstall; then > export CDROM_NAME_SET=("Existing Install", "Existing Install", "RotT CD-ROM") > cdrom_get_cds darkwar.wad:DARKWAR.RTC:rottinst/darkwar.wad > case ${CDROM_SET} in > [01]) ROTTDIR=. ;; > 2) ROTTDIR=rottinst ;; > *) die "unrecognized CD" > esac > else > if [ ! -e "${DISTDIR}/${MY_EXE}" ]; then > ewarn "You must copy or symlink '${MY_EXE}' to your distfiles directory" > die "GOG installer not found" > fi > fi >} > >src_install() { > if use cdinstall; then > local SRC="${CDROM_ROOT}"/"${ROTTDIR}" > > # Otherwise, extract files from GOG package > else > local SRC="${WORKDIR}/gog/app" > einfo "Unpacking ${MY_EXE}. This will take a while..." > mkdir gog && cd gog || die "mkdir failed" > innoextract -e -s -L "${DISTDIR}/${MY_EXE}" || die "innoextract failed" > cd .. > > # Also unpack additional levels > unzip -d "${SRC}" "${SRC}/morelvls.zip" > fi > > local DST="${GAMES_DATADIR}"/rott > dodir "${DST}" > insinto "${DST}" > > # Copy all available data files (include optional levels, etc.) > for i in "${SRC}"/*.{dmo,DMO,rtc,RTC,rtl,RTL,rts,RTS,wad,WAD}; do > copy_file "$i" "${D}/${DST}" || die "copy '${i}' failed" > done > > # Verify that, at least, the main data files are included > if [ ! -f "${D}/${DST}"/darkwar.rtc \ > -o ! -f "${D}/${DST}"/huntbgin.rtc ]; then > die "Required data files not found" > fi > > # Install optional documentation > if use doc; then > for i in "${SRC}"/*.{txt,TXT,pdf,PDF}; do > copy_file "$i" "${WORKDIR}" || die "copy '${i}' failed" > done > dodoc {license,readme}.txt > if [ $(ls "${SRC}"/*.pdf 2>/dev/null | wc -l) -gt 0 ]; then > insinto usr/share/doc/"${PF}" > doins *.pdf > fi > fi > > prepgamesdirs >} > >pkg_postinst() { > elog "This is just the data portion of the game. You also need to install" > elog "a game engine, such as games-fps/rott, to play the game." >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 200967
:
137518
|
198144
|
240169
|
276725
|
288147
|
288149
|
288151
| 324458