diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/trine2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/trine2')
-rw-r--r-- | games-action/trine2/Manifest | 5 | ||||
-rw-r--r-- | games-action/trine2/metadata.xml | 12 | ||||
-rw-r--r-- | games-action/trine2/trine2-1.16-r1.ebuild | 133 |
3 files changed, 150 insertions, 0 deletions
diff --git a/games-action/trine2/Manifest b/games-action/trine2/Manifest new file mode 100644 index 000000000000..f869ecd33dc3 --- /dev/null +++ b/games-action/trine2/Manifest @@ -0,0 +1,5 @@ +DIST trine2_linux_installer.run 1631149097 SHA256 39edf004fb4001360bb4b432cd365ab4b14350612e5632df789d568d682177e7 SHA512 d0c402f4f73f45290784c9414a5b59f89513b14bd09ade815d4456a77ae95909082e0a6a1afad198f6f58707a5d10eedbacd30d6cc5d063eabb702b03a7dc56e WHIRLPOOL 888073296772659c87d9955c14ac116c93bcf5da6ec2715e6a74b10520f2dcd94c5e50a794d0833f3242e3c47689f3f0042883b6673c6f8e0563fea829e06ad0 +EBUILD trine2-1.16-r1.ebuild 3228 SHA256 92fe09aaa17b9cfda2aff608622516c147ff612b8e1077296880e3ca50e508bf SHA512 cc0df4e8fd6d0ba5cca3146f31c497562ed4178f1ae07df341cbab04d9d787253f279a436f6f393aaed7713588cfccb6f89a75b48aad6869f7a8c3119276036c WHIRLPOOL dfe57dd85339a39231eaf6ad3182ca14a0f1df9d1319c59cd630552ad38e82411ef90fb908a93f635ea683be59ad6716f834e559a55dcdd3026fb07b6afaebdf +MISC ChangeLog 3041 SHA256 ac3db9e42ee2a8b0e302f69a2220624d1a9baeb3013bb8628acdeb00566ff8de SHA512 e60b0e253ea5eb5e291a32d8017a678930d5a82c6d546b29ef18bc565f1083ce5c4c5f850bc8a7c9d3ffd73aacfdef3829eafd68066070362e04ba298e68dec6 WHIRLPOOL 5cd9c7cd14f28cef3894f3e4ba73caa1e5c2295d3a839d1e89eb8c19ca82081d9994b513a49f2439fead56fba989539a80c55d6718f1094bc68bf3e17b736be3 +MISC ChangeLog-2015 1505 SHA256 28b2607474e5dbdd230ab1943bce1890a15faf65b4b7ce2bd6bf503d5e99fc95 SHA512 71056061aa8ee5ea09a02ee70de0d2d0eca3297f5eeb8b4f674f06d250341759746f8ff43673e892fcbc19561570c37254b3e329d4956ab24745595a78d7109e WHIRLPOOL 3d058ae3217a8d38cb13fe405bcca7674685d1f704ba65f74950f07b95a06c7303beb381b85cb925c9a983f021607e88e43cae682ade07fd8faf67072df9393b +MISC metadata.xml 379 SHA256 30182f8e0acd413d548effd18316a03cd4bee68b6483db9cf42fbe70f4a47c58 SHA512 666d5ad642fce9cd2e64e1ba63c89dd85fb1a0c9969916bf93a1421f3c9691a5b90b36d2778c41177c1fab5a1f8957adb757ab2d0fe034b7d9244d22f05f161a WHIRLPOOL 6fc1b3fe9760f4afd5c8b661fbf3aba2f2f140e794b4da1383dcd88d9f79c5cbdf75ee50a7e469bcbe9f25f128b1844c150d421391d168d1848b32c93e3c5357 diff --git a/games-action/trine2/metadata.xml b/games-action/trine2/metadata.xml new file mode 100644 index 000000000000..cc071fac0574 --- /dev/null +++ b/games-action/trine2/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="bundled-libs">Use bundled libraries.</flag> + <flag name="launcher">Install gtk+ launcher</flag> + </use> +</pkgmetadata> diff --git a/games-action/trine2/trine2-1.16-r1.ebuild b/games-action/trine2/trine2-1.16-r1.ebuild new file mode 100644 index 000000000000..e80cc561e163 --- /dev/null +++ b/games-action/trine2/trine2-1.16-r1.ebuild @@ -0,0 +1,133 @@ +# 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 +} |