Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 324462 Details for
Bug 369419
games-action/d1x-rebirth ebuild updates
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-action/descent1-data-1.0-r1.ebuild
descent1-data-1.0-r1.ebuild (text/plain), 3.48 KB, created by
Jared B.
on 2012-09-21 03:25:00 UTC
(
hide
)
Description:
games-action/descent1-data-1.0-r1.ebuild
Filename:
MIME Type:
Creator:
Jared B.
Created:
2012-09-21 03:25:00 UTC
Size:
3.48 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI="2" > >inherit cdrom eutils games > >MY_PV=${PV/./} > >MY_EXE="setup_descent_1_2.exe" > >DESCRIPTION="Data files for Descent 1" >HOMEPAGE="http://www.interplay.com/games/support.php?id=263" >SRC_URI="http://www.dxx-rebirth.com/download/dxx/res/d1datapt.zip > !cdinstall? ( $MY_EXE )" ># Don't have a method of applying the ver 1.2 patch in Linux ># http://www.interplay.com/support/product.asp?GameID=109 ># mirror://3dgamers/descent2/d2ptch${MY_PV}.exe > ># See readme.txt >LICENSE="${PN}" >SLOT="0" >KEYWORDS="amd64 x86" >PROPERTIES="" >CDROM_OPTIONAL="yes" >RESTRICT="!cdinstall? ( fetch )" >IUSE="+cdinstall doc" > >RDEPEND="" >DEPEND="app-arch/unzip > !cdinstall? ( > app-arch/innoextract > )" > >S=${WORKDIR} >dir=${GAMES_DATADIR}/d1x > ># 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() { > games_pkg_setup > > if use cdinstall; then > # Check for Descent 1 CD or an existing install (eg., for GOG) > CDROM_NAME_SET=( "CD-ROM Version" "Installed Version" "Installed Version" ) > cdrom_get_cds descent/descent.hog:descent.hog:DESCENT.HOG > case ${CDROM_SET} in > 0) > F_ROOT="${CDROM_ROOT}/descent" > einfo 'Found Descent I CD' ;; > [12]) > F_ROOT="${CDROM_ROOT}" > einfo 'Found Descent I Installation' ;; > *) > die 'Descent I CD or installation files not found' ;; > esac > > else > # Check for GOG installer > if [ ! -e "${DISTDIR}/${MY_EXE}" ]; then > ewarn "You must copy or symlink '${MY_EXE}' to your distfiles directory" > die "GOG installer not found" > fi > F_ROOT="${WORKDIR}/gog/app/descent" > fi >} > >src_unpack() { > mkdir "${WORKDIR}/missions" > > # Unpack GOG package if necessary > if ! use cdinstall; then > 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 .. > fi > > # Copy all (including optional) mission files > for i in "${F_ROOT}"/*.{hog,HOG,msn,MSN,pig,PIG,txt,TXT,pdf,PDF}; do > copy_file "$i" "${WORKDIR}/missions" || die "copy '${i}' failed" > done > > # Move and validate required files > mv missions/descent.hog . || die 'descent.hog not found' > mv missions/descent.pig . || die 'descent.pig not found' > > # Unpack data file patches > unpack d1datapt.zip > > mkdir doc > mv missions/*.txt missions/*.pdf doc/ >} > >src_prepare() { > # Only try to apply patch if it's actually needed > if [ "$(md5sum descent.hog | cut -f1 -d' ')" != "c792a21a30b869b1ec6d31ad64e9557e" ]; then > einfo "Patching Descent 1 data files" > patch -p0 descent.hog <d1datapt/descent.hog.diff > patch -p0 descent.pig <d1datapt/descent.pig.diff > fi >} > > >src_install() { > insinto "${dir}" > doins * || die "doins * failed" > > insinto "${dir}/missions" > doins missions/* > > if use doc; then > dodoc doc/*.txt > if [ $(ls doc/*.pdf 2>/dev/null | wc -l) -gt 0 ]; then > insinto "/usr/share/doc/${PF}" > doins doc/*.pdf > fi > fi > > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > > elog "A client is needed to run the game, e.g. games-action/d1x-rebirth." > echo >}
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 369419
:
275255
|
275257
|
288163
|
288165
|
300977
|
300979
|
301109
|
301193
|
301207
|
301209
| 324462