summaryrefslogtreecommitdiff
path: root/games-strategy/smac
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/smac
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/smac')
-rw-r--r--games-strategy/smac/Manifest6
-rw-r--r--games-strategy/smac/metadata.xml8
-rw-r--r--games-strategy/smac/smac-6.0a.ebuild102
3 files changed, 116 insertions, 0 deletions
diff --git a/games-strategy/smac/Manifest b/games-strategy/smac/Manifest
new file mode 100644
index 000000000000..e719af1d0c50
--- /dev/null
+++ b/games-strategy/smac/Manifest
@@ -0,0 +1,6 @@
+DIST smac-6.0a-x86.run 6801730 SHA256 69b845728f55caef038c6392f148beae47156933f5bff0ce7d9c49162f1d0ee7 SHA512 b71dd1ee46d37d66131cf6fc15c6a406719989021c8dbb6e74cded18c5520ee9ba4bbdfc5bdfc0ddfa67fa2e846365636be41d87a6440473e8ae5ebf542b7744 WHIRLPOOL 24ac3d1f79a38407b0d21287055a0ab37888ce06f424e95a4be98a78ddd003301b6a00d8ba967da802a78ae025a4f4f00ad7565745fc679997b88bca9b46aa8f
+DIST smac-install-ppc.run 18528928 SHA256 ad90f6fa4fa3bfe39f5474016ea6a0c738687fc038995bcd7675294c0438477c SHA512 99fc6edca2c9e64bfc0cab644cbd061c3842359c16e5e6537a2aa2df4cd2a1a6a39169a2b9540199b08f7aee28f4e2cfad814499fdd55b5edf7ab9b19c12d793 WHIRLPOOL df1068532845e5c7be68cf84122a7b90ba3fcd5e89442cff76143eccb35012861980a0cb4bc79948f73b0e2821aa3a8e0673cc2bde7065a2f4d4e895ba4a0ab1
+EBUILD smac-6.0a.ebuild 3069 SHA256 86d9cc0fa1ec28375f1e60f63c1f680f1c4cd588c3f99cb00b48eb02b17d5242 SHA512 031b661c3fc11be4c3474fc7c752ca15332b982e527f61560763c5a3592369262e5ce76157f61f00a635b22b0d0be489732183ae5ceb42a09fda004ecb5d315b WHIRLPOOL 01ae089f2dfd09980321cd3360e063bec4201f8d4cae5aceecf17034cacdf2173489239abb6839e02fae812bc6dea0416a44e9209c2381a3190db9ba649036a3
+MISC ChangeLog 2422 SHA256 4624d2dd1ad6762bb74511e57e9c230fdecd5401b41d45e437a396be90ebce7e SHA512 7fb9b488f3a667917682b11ea1a72d1614acd3ed8bd1395208f24ea0b4ed4ea718a86a4d9ffe35ebcc2753f36f4b24dc458fc72259c3d0f525b39b13f1896e5d WHIRLPOOL 08d5299e4dbe1a987a73984a7b1c4e49d6ca44d02a4c34c97c39b9e569c7745957269797199dfa56e6c05aa2eb211fbb99ea67156a2bb8543e0e7e816a1f7774
+MISC ChangeLog-2015 2892 SHA256 b0157985e2ff4e7fb2eafcdf11edffb4e2942bee03207296e89f42ae44b46a68 SHA512 af2a514660e105fcd6cf61b6647e3bdee13b81fcb91321d180832d826f20f8c17b3ef984d70815cdb2c85ee2f94b0174dd2aceda381536ef471821ea4f51b9de WHIRLPOOL 530e992a1ca7e55567da5a605a39e18936eb5add39c45ffcd3b6fd787d48843ab358101d392d2c5a77dffda8fe64a0cfe1ecdae2feae7fa8f684f96fce3ef463
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-strategy/smac/metadata.xml b/games-strategy/smac/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-strategy/smac/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/games-strategy/smac/smac-6.0a.ebuild b/games-strategy/smac/smac-6.0a.ebuild
new file mode 100644
index 000000000000..e6aff2ef3a12
--- /dev/null
+++ b/games-strategy/smac/smac-6.0a.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Linux port of the popular strategy game from Firaxis"
+HOMEPAGE="http://www.lokigames.com/products/smac/"
+SRC_URI="x86? ( mirror://lokigames/${PN}/${P}-x86.run )
+ amd64? ( mirror://lokigames/${PN}/${P}-x86.run )
+ ppc? ( http://mirrors.dotsrc.org/lokigames/installers/${PN}/${PN}-install-ppc.run )"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+videos"
+RESTRICT="strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ !ppc? ( sys-libs/lib-compat-loki )
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer
+ media-libs/smpeg
+ media-libs/freetype
+ sys-libs/zlib"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ cdrom_get_cds Alien_Crossfire_Manual.pdf
+ mkdir -p "${S}"/a
+ cd "${S}"/a
+ use x86 || use amd64 && unpack_makeself ${P}-x86.run
+ use ppc && unpack_makeself ${PN}-install-ppc.run
+}
+
+src_install() {
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/{smac,smacx,smacpack}
+
+ insinto "${dir}"
+ doins ${CDROM_ROOT}/{{Alien_Crossfire,Alpha_Centauri}_Manual.pdf,QuickStart.txt,README,icon.{bmp,xpm}}
+
+ cd "${Ddir}"
+ tar xzf "${CDROM_ROOT}"/data.tar.gz || die
+ insinto "${dir}"/data
+ doins "${CDROM_ROOT}"/data/*.{pcx,cvr,flc,gif}
+ doins -r "${CDROM_ROOT}"/data/{facs,fx,projs,techs,voices}
+
+ if use videos ; then
+ doins -r "${CDROM_ROOT}"/data/movies
+ fi
+
+ cd "${S}"/a
+ if use ppc ; then
+ cd ${P}-ppc
+ fi
+ loki_patch --verify patch.dat
+ loki_patch patch.dat "${Ddir}" >& /dev/null || die
+
+ # now, since these files are coming off a cd, the times/sizes/md5sums wont
+ # be different ... that means portage will try to unmerge some files (!)
+ # we run touch on ${D} so as to make sure portage doesnt do any such thing
+ find "${Ddir}" -exec touch '{}' +
+
+ newicon "${CDROM_ROOT}"/icon.xpm smac.xpm
+
+ games_make_wrapper ${PN}pack ./${PN}pack "${dir}" "${dir}"
+ games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
+ games_make_wrapper ${PN}x ./${PN}x "${dir}" "${dir}"
+ make_desktop_entry smacpack "Sid Meier's SMAC Planetary Pack" smacpack
+ make_desktop_entry smac "Sid Meier's Alpha Centauri" smac
+ make_desktop_entry smacx "Sid Meier's Alpha Centauri - Alien Crossfire" smac
+ prepgamesdirs
+
+ if use x86 || use amd64 ; then
+ einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'."
+ dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 && \
+ dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 && \
+ dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2
+ fi
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To start Sid Meyer's SMAC Planetary Pack run:"
+ elog " smac"
+ elog "To play Sid Meyer's Alpha Centauri run:"
+ elog " smac"
+ elog "To play Alien Crossfire run:"
+ elog " smacx"
+ elog "Be sure to enable CONFIG_UID16 in your kernel config or"
+ elog "the game will error." # bug 340303
+}