summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaarp <main.haarp@gmail.com>2017-09-08 20:14:57 +0200
committerhaarp <main.haarp@gmail.com>2017-09-08 20:14:57 +0200
commit27f814c694abab1ed3d2338e7b5d0cba7bac4e9d (patch)
treee04d1a1455c90b7f813fcb5aba2482627f824396 /games-fps/zandronum
parentUpgrade xed (diff)
downloadhaarp-27f814c694abab1ed3d2338e7b5d0cba7bac4e9d.tar.gz
haarp-27f814c694abab1ed3d2338e7b5d0cba7bac4e9d.tar.bz2
haarp-27f814c694abab1ed3d2338e7b5d0cba7bac4e9d.zip
Add Zandronum 3.0 (finally! :D)
Diffstat (limited to 'games-fps/zandronum')
-rw-r--r--games-fps/zandronum/Manifest3
-rw-r--r--games-fps/zandronum/zandronum-3.0.ebuild122
2 files changed, 125 insertions, 0 deletions
diff --git a/games-fps/zandronum/Manifest b/games-fps/zandronum/Manifest
index 945cc03..c1c3405 100644
--- a/games-fps/zandronum/Manifest
+++ b/games-fps/zandronum/Manifest
@@ -1,5 +1,8 @@
AUX zandronum-fix-new-fmod.patch 4581 SHA256 2b439416898d08ceb4415c9f9d425b280619b6ccbec6252a33f682ec7ff2e8c1 SHA512 781f7411c9b6338e559f242ecdb5071e12fa3a2c080771987456a5af0a00fc6679e352ce62a8f41450ba6b6a92d26288962efc04d1323f73d156d6613da23479 WHIRLPOOL 5a6356aee1a4e8dc0e25c7fb169a8b059226f20f8fde0ba6fa3d96f00780b83645cf93efb035f5e19fa2ce7a6e1e73c520838ec927f38c50c92efe1ffc55b73a
DIST zandronum-2.1.2.metadata 364 SHA256 af6cabce4adca0a5b9bec7bf4f449e8b23662e04085e6b5994c43b862259de5e SHA512 d410eedfae0e3643ec99c77dd27eb7b710650fd4ca818db50d856a3ea4d24d20bf6c760182858cd61fe47710f66b2cac4d3e88f777cc881ddfc3a77dfaf15108 WHIRLPOOL 484268e891a1fff8e8837d072836bdf3db1c97d5dba88d6869005aa3a7b9f22bc0ea049b1d1b146fa4e55352983e58840cb0486aafcffd26d9e24e56717bfc66
DIST zandronum-2.1.2.tar.bz2 5135007 SHA256 e47add83bd58b13571521ee4be68c45e34cb08f18cb1b23262870fa5fa6dd8e9 SHA512 7d48e5a24002c79585c128336d3797c69b9ffcff192b8a86e2404afe40a9d1b05aeb5e8b43390f0e7d556489da65efc553dfd5a017f3f54e648ffa60fb9dcbf8 WHIRLPOOL 3af2073a80227feeb675a96d983dffa321ec89d9a31de15068bc0441910f54f9e0211cb01fbdf4a2722c0cad621041579f5ff10ea9373fe56a004568ad99a603
+DIST zandronum-3.0.metadata 430 SHA256 95772c3000260003d349344c8485be5c4cb4d0afad3306bc36531d07c301c9ca SHA512 4e3c57d528fe9b39d02a2fc4a541bb01a47b349612234fed3cdad72ba9e001c7fde3e8885ddbb5c4f664e75a1b73928a71a9da28a9968a6b33bd77ddc37dae35 WHIRLPOOL 0e09947beee4ac412dfeb7dd5e4ce1a4cfcec3e24ca7fcdd61c746c2a58eebea5f2066e5b735b11b3f9faf3bb5608cd11b87dfea4e0a859f1d75c43fff96abbe
+DIST zandronum-3.0.tar.bz2 5494384 SHA256 869489c8129f20d25b363f1740bb2292b0f15a79bc8b9e8db75a9d62a92cc21c SHA512 28f522c20c005f59b8c04413fcc850f02b72c9b14a597eb3ffdbc3647f85426c62746204767d0c8ea9cdbf23a4ed81e663f5f7aa51477233e41b8960f871359e WHIRLPOOL 50a57fea19b066fe122b086b49d1192eb639a6e1be3f5e4f94c3877c6eba7836474f7419b8eb3713f4cf1aa111e6a88c45ff1927a4781f0660463738b3675f51
EBUILD zandronum-2.1.2-r4.ebuild 3323 SHA256 dadf65dd44a660041c9d79ecbc641dd6f810235028b140c46d8157a59c509bff SHA512 a231c390bedc11ad1ab1b6f3ee21f936fc8540c71ecadcfe8e79d621a2d0bcd938c36bcc8e7202eda272dccc7848441770b5f04eeee9432c7ee10ee3d2853aea WHIRLPOOL c0021073d7511a3a7622564c40ad0eaa42076fa08894039c650f3b00e4665aef5c1c9fa93d9db7932a66e31f9e2f9c437e091bf781bdcc1c39ab26a7dde6792f
+EBUILD zandronum-3.0.ebuild 3151 SHA256 e8e00a544fdcdfed3b3dfb77f41870ac697b6be9a9c2824475ff769bd3878046 SHA512 984195490b5fae21dc5ad2b1407cd958e7b3f59c169bc8793cd251968906ecad1e838f4396a283011a7f011669a058e4073b0c5f1e194dd4e66ee383e5e5e6f6 WHIRLPOOL ed0c5e08c30bef425a1c1943b3ed2804b571f2ca9d83fad98b48f59791d2d7d6394b0a22ed5871745c3168968c7fa46b9d534b2c8ba523856f9d82d1491ea06f
MISC metadata.xml 315 SHA256 1c09817b6c50962c0d62d6da1c0d0acdeea8fdabfeebf938d761bdc0e0801fcc SHA512 0e1da3132a25e09577a6861dea211f8ae941b6f4d1adbdc4b9a16c9b5bb1f9c8c96f6272a304d1b0b0a80c85965e72511203296e4f4622d1c0ba1d687f9854d2 WHIRLPOOL 7f565be4cff53383b64e5949596dd51a8a04bb55c315c5c162554d8b0a039feb707d3e2c148f2d452fd1e8fc32a2b68048e70e504fbd1ad538fe2b688e460e5a
diff --git a/games-fps/zandronum/zandronum-3.0.ebuild b/games-fps/zandronum/zandronum-3.0.ebuild
new file mode 100644
index 0000000..0781c49
--- /dev/null
+++ b/games-fps/zandronum/zandronum-3.0.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+OWNER="Torr_Samaho"
+MY_COMMIT="dd3c3b57023f"
+
+DESCRIPTION="OpenGL ZDoom port with Client/Server multiplayer"
+HOMEPAGE="http://zandronum.com/"
+SRC_URI="https://bitbucket.org/${OWNER}/${PN}/get/${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2
+ https://bitbucket.org/api/1.0/repositories/${OWNER}/${PN}/changesets/${MY_COMMIT}?format=yaml -> ${P}.metadata
+"
+
+LICENSE="Sleepycat"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cpu_flags_x86_mmx cpu_flags_x86_sse2 dedicated +gtk +opengl timidity"
+
+REQUIRED_USE="|| ( dedicated opengl )
+ gtk? ( opengl )
+ timidity? ( opengl )"
+
+RDEPEND="gtk? ( x11-libs/gtk+:2 )
+ timidity? ( media-sound/timidity++ )
+ opengl? ( media-libs/fmod:1
+ media-libs/libsdl
+ virtual/glu
+ virtual/jpeg:62
+ virtual/opengl
+ )
+ dev-db/sqlite
+ dev-libs/openssl:0"
+
+DEPEND="${RDEPEND}
+ cpu_flags_x86_mmx? ( || ( dev-lang/nasm dev-lang/yasm ) )"
+
+src_unpack() {
+ default
+ S="${WORKDIR}/${OWNER}-${PN}-${MY_COMMIT}"
+}
+
+src_prepare() {
+ # Normally Mercurial would generate gitinfo.h for NETGAMEVERSION
+ # let's do it without Mercurial
+ local timestamp=$(awk -F\' '/utctimestamp/{print $2}' "${DISTDIR}/${P}.metadata")
+ local unixtimestamp=$(date +%s -d "${timestamp}")
+ echo "#define HG_REVISION_NUMBER ${unixtimestamp}" > src/gitinfo.h
+ echo "#define HG_REVISION_HASH_STRING \"0\"" >> src/gitinfo.h
+ echo "#define HG_TIME \"\"" >> src/gitinfo.h
+
+ # Use system libs
+ sed -i -e "/add_subdirectory( sqlite )/d" CMakeLists.txt
+
+ # Use default data path
+ sed -i -e "s:/usr/local/share/:/usr/share/doom-data/:" src/sdl/i_system.h
+
+ # Fix building with gcc-5
+ sed -i -e 's/ restrict/ _restrict/g' dumb/include/dumb.h dumb/src/it/*.c
+
+ eapply_user
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DNO_ASM="$(usex cpu_flags_x86_mmx OFF ON)"
+ -DNO_GTK="$(usex gtk OFF ON)"
+ -DFMOD_INCLUDE_DIR=/opt/fmodex/api/inc/
+ -DFMOD_LIBRARY=/opt/fmodex/api/lib/libfmodex.so
+ )
+
+ # Can't build both client and server at once... so separate them
+ if use opengl; then
+ BUILD_DIR="${WORKDIR}/${P}_client"
+ cmake-utils_src_configure
+ fi
+ if use dedicated; then
+ BUILD_DIR="${WORKDIR}/${P}_server"
+ mycmakeargs+=(-DSERVERONLY=1)
+ cmake-utils_src_configure
+ fi
+}
+
+src_compile() {
+ if use opengl; then
+ BUILD_DIR="${WORKDIR}/${P}_client"
+ cmake-utils_src_make
+ fi
+ if use dedicated; then
+ BUILD_DIR="${WORKDIR}/${P}_server"
+ cmake-utils_src_make SERVERONLY=1
+ fi
+}
+
+src_install() {
+ dodoc docs/{commands,zandronum*}.txt docs/console.{css,html}
+
+ cd "${BUILD_DIR}"
+ insinto "/usr/share/doom-data"
+ doins *.pk3
+
+ if use opengl; then
+ dobin "${WORKDIR}/${P}_client/${PN}"
+ doicon "${S}/src/win32/zandronum.ico"
+ make_desktop_entry "${PN}" "Zandronum" "${PN}.ico" "Game;ActionGame;"
+ fi
+ if use dedicated; then
+ dobin "${WORKDIR}/${P}_server/${PN}-server"
+ fi
+}
+
+pkg_postinst() {
+ elog "Copy or link wad files into /usr/share/doom-data/"
+ elog "ATTENTION: The path has changed! It used to be /usr/share/games/doom-data/"
+ if use opengl; then
+ elog
+ elog "To play, install games-util/doomseeker or simply run:"
+ elog " zandronum"
+ fi
+}