From f1bc537f089cc8477a9a18db597cb349e1b00e91 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Jun 2018 05:02:38 +0100 Subject: gentoo resync : 16.06.2018 --- games-action/trine2/Manifest | 6 +- games-action/trine2/metadata.xml | 3 +- games-action/trine2/trine2-1.16-r1.ebuild | 133 ----------------------------- games-action/trine2/trine2-2.01.425.ebuild | 99 +++++++++++++++++++++ 4 files changed, 103 insertions(+), 138 deletions(-) delete mode 100644 games-action/trine2/trine2-1.16-r1.ebuild create mode 100644 games-action/trine2/trine2-2.01.425.ebuild (limited to 'games-action/trine2') diff --git a/games-action/trine2/Manifest b/games-action/trine2/Manifest index 8ee0f5a3af73..85d97d8698d8 100644 --- a/games-action/trine2/Manifest +++ b/games-action/trine2/Manifest @@ -1,3 +1,3 @@ -DIST trine2_linux_installer.run 1631149097 SHA256 39edf004fb4001360bb4b432cd365ab4b14350612e5632df789d568d682177e7 SHA512 d0c402f4f73f45290784c9414a5b59f89513b14bd09ade815d4456a77ae95909082e0a6a1afad198f6f58707a5d10eedbacd30d6cc5d063eabb702b03a7dc56e WHIRLPOOL 888073296772659c87d9955c14ac116c93bcf5da6ec2715e6a74b10520f2dcd94c5e50a794d0833f3242e3c47689f3f0042883b6673c6f8e0563fea829e06ad0 -EBUILD trine2-1.16-r1.ebuild 3230 BLAKE2B 1f7497ee876b75f1bdcb9b4642e3ac29600c786d078c4d610e9bce23c9576109e451ba4d6cbe1133e8c0abec63548708339e3bcc8ccc02fcc56929690a3497a3 SHA512 755c54368c84715eb324889b2f3c0e1eebc1f5d39390f7b0c421e723ff7453ae0ff598605e5c05fffc3cb61a0c7d94658c92ab046804c9a84d9366d069533407 -MISC metadata.xml 379 BLAKE2B c2145cb60f868b888d88f831ab58d5fac46fd31f5757253242fc2d78c725d28a41d31a7ec8e4bc0a34d06a8214a696b9e308161276dafc2768b39e0730c913e3 SHA512 666d5ad642fce9cd2e64e1ba63c89dd85fb1a0c9969916bf93a1421f3c9691a5b90b36d2778c41177c1fab5a1f8957adb757ab2d0fe034b7d9244d22f05f161a +DIST trine2_complete_story_v2_01_build_425_humble_linux_full.zip 3243286878 BLAKE2B a9032d6043ac9623a254c1ebe69c30e5f173de91e3cc0552c4ff60275c11601c7708c37d2d7b9eb789290e24569967fc82b56f143110306642b28d5e21cb62ee SHA512 e59aaa6da7d4cae96d361f7f80d857e4102b23fe9584b88af9163407d4f1a34b9e0e79a9337c133e9d60e31ac8ead3a7f9b02b47f9797df05f998666c9219c15 +EBUILD trine2-2.01.425.ebuild 2620 BLAKE2B c0b4a6279a97ee29b926275439accad1ceb63adf32ea7f45842df1e7d2d2b8c9719012db9e1fa58ea948917a4826f15bb737d46286552f720ff8342b931bc357 SHA512 4e6382935cf268e89a85c7ca9fc4340d498cf83407bfdec2ba1fcd4d7b9da3905d440f7dbb172cea3a79cf15ebd55bc16dc895814d34a3a13f10ae8da3aedd14 +MISC metadata.xml 321 BLAKE2B 5aca052a154cd0d9a43b96774253a2999ad36aa01c956961ad0021fa7cc6cbc8b89b7f93c6318308f6310a877ac9cb2b70bf622f25b882cf0c13261a7fae9b9c SHA512 ab5d27c4f1f5760f902abe8829db8732a19206739001dd349ac170bc64e5edb9b10ec4d16ec3d8f52569a05bc90ac08af6724f11206fce2b3506d99555712747 diff --git a/games-action/trine2/metadata.xml b/games-action/trine2/metadata.xml index cc071fac0574..b26a6baa4124 100644 --- a/games-action/trine2/metadata.xml +++ b/games-action/trine2/metadata.xml @@ -6,7 +6,6 @@ Gentoo Games Project - Use bundled libraries. - Install gtk+ launcher + Install GTK+ launcher diff --git a/games-action/trine2/trine2-1.16-r1.ebuild b/games-action/trine2/trine2-1.16-r1.ebuild deleted file mode 100644 index 83ead951316e..000000000000 --- a/games-action/trine2/trine2-1.16-r1.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils unpacker gnome2-utils games - -MY_PN="Trine 2" -DESCRIPTION="A sidescrolling game of action, puzzles and platforming" -HOMEPAGE="http://www.trine2.com/" -SRC_URI="${PN}_linux_installer.run" - -LICENSE="all-rights-reserved" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="bundled-libs +launcher" -RESTRICT="fetch bindist splitdebug" - -QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${PN}* - ${GAMES_PREFIX_OPT}/${PN}/lib/*" - -# TODO: bundled-libs: no libsdl-1.3, no physx -RDEPEND=" - amd64? ( - >=dev-libs/glib-2.34.3:2[abi_x86_32(-)] - >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)] - >=virtual/glu-9.0-r1[abi_x86_32(-)] - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - >=media-libs/openal-1.15.1[abi_x86_32(-)] - >=media-libs/libogg-1.3.0[abi_x86_32(-)] - >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)] - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] - launcher? ( - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] - >=media-libs/libpng-1.5.18:1.5[abi_x86_32(-)] - >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)] - >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)] - >=x11-libs/libX11-1.6.2[abi_x86_32(-)] - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] - ) - !bundled-libs? ( - >=media-gfx/nvidia-cg-toolkit-3.1.0013-r3[abi_x86_32(-)] - ) - ) - x86? ( - dev-libs/glib:2 - media-libs/freetype - media-libs/libogg - media-libs/libvorbis - media-libs/openal - sys-libs/zlib - virtual/glu - virtual/opengl - launcher? ( - media-libs/fontconfig - media-libs/libpng:1.5 - x11-libs/gtk+:2 - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXinerama - x11-libs/libXxf86vm - ) - !bundled-libs? ( media-gfx/nvidia-cg-toolkit ) - )" - -S=${WORKDIR} - -pkg_nofetch() { - einfo - einfo "Please buy & download \"${SRC_URI}\" from:" - einfo " ${HOMEPAGE}" - einfo "and move/link it to \"${DISTDIR}\"" - einfo -} - -src_unpack() { - local offset="$(( $(grep -a -h -n -m 1 -F -e THIS_IS_THE_LAST_SCRIPT_LINE_ARCHIVE_DATA_FOLLOWS "${DISTDIR}"/${A} | cut -d':' -f1) + 1 ))" - unpack_makeself ${A} "${offset}" "tail" -} - -src_install() { - local dir=${GAMES_PREFIX_OPT}/${PN} - - insinto "${dir}" - doins -r data* - - exeinto "${dir}" - newexe "bin/trine2_linux_32bit" ${PN} - - exeinto "${dir}/lib" - use bundled-libs || { find lib/lib32 -type f -name "libCg*.so*" -delete || die ;} - doexe lib/lib32/* - - games_make_wrapper ${PN} "./${PN}" "${dir}" "${dir}/lib" - doicon -s 64 ${PN}.png - make_desktop_entry ${PN} "${MY_PN}" - - if use launcher ; then - exeinto "${dir}" - newexe bin/trine2_linux_launcher_32bit ${PN}-launcher - - games_make_wrapper ${PN}-launcher "./${PN}-launcher" "${dir}" "${dir}/lib" - make_desktop_entry ${PN}-launcher "${MY_PN} (launcher)" - - # launcher binary has hardcoded the script path - dodir "${dir}"/bin - dosym "${GAMES_BINDIR}"/trine2 "${dir}"/bin/trine2_bin_starter.sh - fi - - dodoc KNOWN_LINUX_ISSUES README - - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - games_pkg_postinst - - einfo - elog "${MY_PN} savegames and configurations are stored in:" - elog " \${HOME}/.frozenbyte/${MY_PN//\ /}" - einfo - - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/games-action/trine2/trine2-2.01.425.ebuild b/games-action/trine2/trine2-2.01.425.ebuild new file mode 100644 index 000000000000..1b49131fab0c --- /dev/null +++ b/games-action/trine2/trine2-2.01.425.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop eutils gnome2-utils + +MY_P="${PV//./_}" +MY_P="${PN}_complete_story_v${MY_P%_*}_build_${MY_P##*_}" +MY_PN="Trine 2" + +DESCRIPTION="Sidescrolling game of action, puzzles and platforming, Complete Story edition" +HOMEPAGE="http://www.trine2.com/" +SRC_URI="${MY_P}_humble_linux_full.zip" +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+launcher" +RESTRICT="bindist fetch splitdebug" + +QA_PREBUILT="opt/${PN}/${PN}* + opt/${PN}/lib/*" + +DEPEND="app-arch/unzip" + +RDEPEND=" + media-gfx/nvidia-cg-toolkit[abi_x86_32] + media-libs/alsa-lib[abi_x86_32] + media-libs/freetype:2[abi_x86_32] + media-libs/libogg[abi_x86_32] + >=media-libs/libvorbis-1.3[abi_x86_32] + >=media-libs/openal-1.15[abi_x86_32] + >=sys-devel/gcc-4.6[cxx] + >=sys-libs/glibc-2.15 + sys-libs/zlib[abi_x86_32] + virtual/glu[abi_x86_32] + virtual/opengl[abi_x86_32] + launcher? ( + dev-libs/expat[abi_x86_32] + dev-libs/glib:2[abi_x86_32] + media-libs/libpng:1.2[abi_x86_32] + sys-apps/dbus[abi_x86_32] + sys-apps/util-linux[abi_x86_32] + x11-libs/gdk-pixbuf:2[abi_x86_32,X] + x11-libs/gtk+:2[abi_x86_32] + x11-libs/libX11[abi_x86_32] + x11-libs/pango[abi_x86_32,X] + )" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.humblebundle.com/store/trine-2-complete-story" + einfo "and move it to your distfiles directory." +} + +src_prepare() { + default + + # SDL 1.3 is very special and crashes when fullscreen if + # /usr/bin/gnome-screensaver-command is missing. XD + sed -i 's:/usr/bin/gnome-screensaver-command:/bin/true\x0 :g' \ + lib/lib32/libSDL-1.3.so.0 || die +} + +src_install() { + local dir=/opt/${PN} + + insinto "${dir}" + doins -r *.fbq data + + exeinto "${dir}" + newexe bin/${PN}_linux_32bit ${PN} + + exeinto "${dir}"/lib + doexe lib/lib32/lib{{SDL-1.3,PhysXLoader}.so.*,PhysX{Cooking,Core}.so} # Avoid duplicates. + + make_wrapper ${PN} ./${PN} "${dir}" "${dir}"/lib + make_desktop_entry ${PN} "${MY_PN}" + + if use launcher ; then + exeinto "${dir}" + newexe bin/${PN}_linux_launcher_32bit ${PN}-launcher + + make_wrapper ${PN}-launcher ./${PN}-launcher "${dir}" "${dir}"/lib + make_desktop_entry ${PN}-launcher "${MY_PN} (launcher)" + + # Launcher binary has hardcoded the game path. + dosym ../${PN} "${dir}"/bin/${PN}_bin_starter.sh + fi + + doicon -s 64 ${PN}.png + dodoc readme_changelog.txt readme/{KNOWN_LINUX_ISSUES,README} +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; } -- cgit v1.2.3