Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 405930 Details for
Bug 343495
Amnesia: The Dark Descent (amnesia tdd): games-rpg/amnesia-tdd-1.0.1.ebuild (NEW EBUILD)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-rpg/amnesia-tdd-1.3.1.ebuild
amnesia-tdd-1.3.1.ebuild (text/plain), 6.03 KB, created by
Jared B.
on 2015-06-29 02:38:26 UTC
(
hide
)
Description:
games-rpg/amnesia-tdd-1.3.1.ebuild
Filename:
MIME Type:
Creator:
Jared B.
Created:
2015-06-29 02:38:26 UTC
Size:
6.03 KB
patch
obsolete
># Copyright 1999-2015 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=5 > >inherit check-reqs eutils games unpacker > >MY_PN="${PN//-/_}" >MY_REV="" >MY_ARCH="${ARCH/amd64/x86_64}" > >DESCRIPTION="Amnesia: The Dark Descent is a first person survival horror. A game about immersion, discovery and living through a nightmare." >HOMEPAGE="http://www.amnesiagame.com/" >SRC_URI="${MY_PN}_${PV}${MY_REV}.sh" > >RESTRICT="fetch strip" >LICENSE="Frictional_Games-EULA" > >SLOT="0" >KEYWORDS="amd64 ~x86" >IUSE="doc linguas_de linguas_es linguas_fr linguas_it linguas_ru" > >DEPEND="app-arch/unzip > app-arch/xz-utils" >RDEPEND="media-libs/freealut > >=media-libs/glew-1.5 > media-libs/libpng:1.2 > media-libs/libtheora > media-libs/libvorbis > media-libs/openal > media-libs/sdl-image > media-libs/sdl-ttf > sys-libs/zlib > x11-libs/libxcb > x11-libs/libXext > virtual/glu > virtual/jpeg:62 > virtual/opengl" > >CHECKREQS_DISK_BUILD="2500M" > >S="${WORKDIR}/data" > >GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" > >pkg_nofetch() { > einfo "" > einfo "Please buy and download \"${SRC_URI}\" from:" > einfo " ${HOMEPAGE}" > einfo "and move/link it to \"${DISTDIR}\"" > einfo "" >} > >pkg_setup() { > games_pkg_setup >} > >src_unpack() { > einfo "\nUnpacking files. This will take several minutes.\n" > > # unzip expected to return error code 1 because of wrapper > unzip -q "${DISTDIR}/${A}" 2>/dev/null > [ $? -gt 1 ] && die "unpacking failed" >} > >src_prepare() { > # Files to remove. > cd noarch > REMOVE="*.pdf > *.rtf" > > # Files to keep. > # Bundled LibIL (media-libs/devil) isn't in portage as too old > KEEP="libs*/libIL*" > #KEEP="" > > # Collect infos about languages... > LINGUAS_ARRAY=() # Linguas - string: E.g.: "linguas_en" > LANG_ARRAY=() # Lang - string: E.g.: "en" > LANGUAGE_ARRAY=() # Language - string: E.g.: "english" > LANGUAGE_SHORT_ARRAY=() # Language Short - string: E.g.: "eng" > USE_ARRAY=() # Used - bool (0,1) > > local linguas_in_use="0" > for use in ${IUSE} > do > if [[ "${use%%_*}" == "linguas" ]] > then > local tmp="${use}" > LINGUAS_ARRAY=(${LINGUAS_ARRAY[@]} "${tmp}") > > tmp="${tmp##linguas_}" > LANG_ARRAY=(${LANG_ARRAY[@]} "${tmp}") > > case "${tmp}" in > "de") tmp="german";; > "es") tmp="spanish";; > "fr") tmp="french";; > "it") tmp="italian";; > "ru") tmp="russian";; > *) tmp="";; > esac > LANGUAGE_ARRAY=(${LANGUAGE_ARRAY[@]} "${tmp}") > LANGUAGE_SHORT_ARRAY=(${LANGUAGE_SHORT_ARRAY[@]} "${tmp:0:3}") > > if use ${use} > then > USE_ARRAY=(${USE_ARRAY[@]} "1") > linguas_in_use="$(( ${linguas_in_use} + 1 ))" > else > USE_ARRAY=(${USE_ARRAY[@]} "0") > fi > fi > done > > # ...then process them. > local n="0" > local docs_eng="0" > while [[ "${n}" -lt "${#LINGUAS_ARRAY[@]}" ]] > do > if [[ "${USE_ARRAY[${n}]}" -gt "0" ]] > then > # If only one lang is selected, use it as default. > if [[ "${linguas_in_use}" == "1" ]] > then > sed -e "s#english.lang#${LANGUAGE_ARRAY[${n}]}.lang#g" \ > -i config/*main_init.cfg || die "sed \"config/*main_init.cfg\" failed" > fi > else > REMOVE="${REMOVE} $(find config -type f -name "*${LANGUAGE_ARRAY[${n}]}.lang")" > if [[ -d "lang/${LANGUAGE_SHORT_ARRAY[${n}]}" ]] > then > REMOVE="${REMOVE} lang/${LANGUAGE_SHORT_ARRAY[${n}]}" > fi > fi > > if use doc > then > if [[ -f "EULA_${LANG_ARRAY[${n}]}.rtf" && -f "Manual_${LANG_ARRAY[${n}]}.pdf" ]] > then > KEEP="${KEEP} EULA_${LANG_ARRAY[${n}]}.rtf Manual_${LANG_ARRAY[${n}]}.pdf" > else > local docs_eng="1" > fi > fi > > n="$(( ${n} + 1 ))" > done > > if use doc && [[ ( "${linguas_in_use}" == "0" || "${docs_eng}" != "0" ) ]] > then > KEEP="${KEEP} EULA_en.rtf Manual_en.pdf Remember*.pdf" > fi > > einfo " Removing useless files ..." > for remove in ${REMOVE} > do > local removable="1" > for keep in ${KEEP} > do > if [[ "${remove}" == "${keep}" && "${removable}" == "1" ]] > then > local removable="0" > fi > done > > if [[ "${removable}" == "1" ]] > then > rm -r "${S}/"${remove} &> /dev/null > fi > done >} > >src_install() { > # Install data > insinto "${GAMEDIR}" > > einfo " Installing game data files ..." > for directory in $(find noarch/* -maxdepth 0 -type d) > do > doins -r ${directory} || die "doins game data files failed" > done > > # Other files > find noarch -maxdepth 1 -type f ! -name "*.bin" \ > ! -name "*.pdf" \ > ! -name "*.png" \ > ! -name "*.rtf" \ > -exec doins '{}' \; || die "doins other files failed" > > > # Install libraries and executables > einfo " Installing libraries and executables ..." > > exeinto "${libsdir}" > dosym "/usr/$(get_libdir)/libGLEW.so" "${libsdir}/libGLEW.so.1.5" > > exeinto "${GAMEDIR}" > newexe "${MY_ARCH}/Amnesia.bin.${MY_ARCH}" "Amnesia.bin" > newexe "${MY_ARCH}/Launcher.bin.${MY_ARCH}" "Launcher.bin" > > # Make game wrapper > local wrapper="${S}/${PN}" > local ext="${PN}-justine" > > cat << EOF > "${wrapper}" || die "echo failed" >#!/bin/sh >cd "${GAMEDIR}" > >if [[ "\$(basename "\${0}")" == "${ext}" ]] >then > params="ptest \${@}" >fi > >if [[ -w "\${HOME}/.frictionalgames/Amnesia/Main/main_settings.cfg" ]] >then > exec ./Amnesia.bin \${params:-"\${@}"} >else > exec ./Launcher.bin "\${@}" >fi >EOF > > # Install wrapper > dogamesbin "${wrapper}" || die "dogamesbin ${wrapper} failed" > dosym "${PN}" "${GAMES_BINDIR}/${ext}" > > # Install icon and desktop file > newicon noarch/Amnesia.png "${PN}.png" || die "newicon failed" > make_desktop_entry "${PN}" "Amnesia: The Dark Descent" "/usr/share/pixmaps/${PN}.png" || die "make_desktop_entry failed" > make_desktop_entry "${ext}" "Amnesia: The Dark Descent - Justine" "/usr/share/pixmaps/${PN}.png" || die "make_desktop_entry failed" > > # Install documentation > if use doc > then > dodoc noarch/*.rtf noarch/*.pdf || die "dodoc failed" > fi > > # Setting permissions. > einfo " Setting permissions ..." > prepgamesdirs >} > >pkg_postinst() { > ewarn "" > ewarn "Amnesia: The Dark Descent needs video drivers that provide a complete". > ewarn "GLSL 1.20 implementation. For more information, please visit:" > ewarn "http://www.frictionalgames.com/forum/thread-3760.html" > ewarn "" > ewarn "--------------------------------------------------------------------" > ewarn "" > ewarn "Saved games from previous versions may not be fully compatible." > ewarn "" >}
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 343495
:
252661
|
252663
|
288537
|
291241
|
301877
|
314249
|
314369
|
314625
|
315063
|
358662
| 405930