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-strategy/uqm |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/uqm')
-rw-r--r-- | games-strategy/uqm/Manifest | 14 | ||||
-rw-r--r-- | games-strategy/uqm/files/uqm-0.7.0-tempdir.patch | 14 | ||||
-rw-r--r-- | games-strategy/uqm/files/uqm-0.7.0-warning.patch | 29 | ||||
-rw-r--r-- | games-strategy/uqm/metadata.xml | 16 | ||||
-rw-r--r-- | games-strategy/uqm/uqm-0.7.0-r3.ebuild | 111 |
5 files changed, 184 insertions, 0 deletions
diff --git a/games-strategy/uqm/Manifest b/games-strategy/uqm/Manifest new file mode 100644 index 000000000000..fd46b603b24e --- /dev/null +++ b/games-strategy/uqm/Manifest @@ -0,0 +1,14 @@ +AUX uqm-0.7.0-tempdir.patch 510 SHA256 60f6aa3830e776738d760dd0aaa5df6c67e28a3bb1a9c30b480067b0546aa902 SHA512 07dc48c646e6e3642a1c917aa763996eaef8bae21e72470159b445e20e3e3315663009b4fd30c93a7f5b04ec78bf12de254434094f3c62ca523466148a2a9594 WHIRLPOOL 4b80d56389322b7d6cc0fc39cff62864f7dcc6cd6b1369ad5e9324bf680b5b4924d0f15190792e60ab85207314e5d94078338ab41b9d2efe0e520def05a7c7a7 +AUX uqm-0.7.0-warning.patch 862 SHA256 ca75bdc9f5bb1ae26971a89301c67aa66ea4449391863495baeaf6ca01d7c577 SHA512 d15b09a13b82a888a5c50c5e561213e755f104cb1f7b42bf3fdc7c39350bb517111c8d212218126c89136a2a4a7c47bcc4354e7c53a9df72795ce123a619a256 WHIRLPOOL f18514ca98486b61a89645a883db97a914bac96bfb84a65d22993aaeecd7414f27efe9f16208cb4fadeb9f87a238b418e890bfb097af7fd7e5b693d503f6596c +DIST uqm-0.7.0-3domusic.uqm 18980671 SHA256 c57085e64dad4bddf8a679a9aa2adf63f2156d5f6cbabe63af80519033dbcb82 SHA512 e7d723194685388813d72e1add9a710ecd3de9b33381dfe66acee6c31a31634ee9031ecc83c2003a5222b9381efe150a2f2a9289f8505d842182ca03b012183b WHIRLPOOL c975e37f7ade37891e9009c84b1219d57b17c354efec6d7d777623385c8e1ea8c82ac11a05d14391052a262645205d5f9f9c04f41e5b7590e6103c77a85f59cb +DIST uqm-0.7.0-content.uqm 11538533 SHA256 b8f6db8ba29f0628fb1d5c233830896b19f441aee3744bda671ea264b44da3bf SHA512 c80aa9f1158d07534abc1ef625662dfcd5021cb5e8091d46b3e9a2d96a0fffbe7e9e6cc88680b43d810c8e68a580f7a0d4b62c08e9f7b948ae7f017e4ad20dd2 WHIRLPOOL 328bbbd68701d560eb1bb3f838166afa0f958bb8bd7e6dcc5f7c223a1a5d79c57f08a48cda33612e99d7904d55a0e23b78eabe419f5c5a35ba009cd0b45d8104 +DIST uqm-0.7.0-source.tgz 1562003 SHA256 a3695c5f7f0be7ec9c0f80ec569907b382023a1fee6e635532bd53b7b53bb221 SHA512 443ac13da401d45743f913755647b3309834c57f371fb673c3ea2cacb81184bf30430db10af9001de854363520d1f792f47faffd690c8c2b2f3d12d63b217815 WHIRLPOOL 2e35a334ed575d13c3b48dd819298442cbe30554b00c34dd3cf687a30793c9b4d403339cf807331307d51dd609f253d063930b4dc9f2ce68ce9aff86480cce99 +DIST uqm-0.7.0-voice.uqm 115143439 SHA256 bcccf801b4ba37594ff6217b292744ea586ee2d447e927804842ccae8b73c979 SHA512 693a4869f8567637b112138f8a074b65919776175addbd353e3601085ee4e4bb4758daca64921c902463f5dc38baa6f7fda4ad32f3cf1786646ef48f15cdeb80 WHIRLPOOL 6c447e5d6e09e195390346e93b8052ce6a7b2f9a4ccad7e15b30fd1473029fdec41cb2bc743129de36fe6c136e4fface6f3cbedfcb9360b19a219e47207401ce +DIST uqm-remix-disc1.uqm 50188876 SHA256 b697694745d939311e8ebffdd5edf692e010c25d7966e1481074940a4d0487e8 SHA512 fed2a6e260ee96802898ad9b6c968acaac3613187fe38370fb557d6d220b499b922447ea04edd15763d0161f5c156ce03bc9d55a86ed3b4e2e0140a4fb17e99b WHIRLPOOL fee79171e43fb203dcc2b8cbca7d3e2edfa4c6334a1f0996fa8951dc67ef94e67f06edbe250810e1385f5887834a7a0755e1e40a9aa3cdae0cdfb937e238fe46 +DIST uqm-remix-disc2.uqm 60282662 SHA256 7fbb4744102e31273e4459b01a156da052ec537c128fe91793643e348bc1bade SHA512 3053693417facef6d01cdb366a15c1bd2a6272961df5870c4151a928845dd76e4ac5fc59f232da5034d56fd9476d3074840a2e9f16d63dba341aeffd92827c4e WHIRLPOOL e52f1eb1c8cd0007eb77d80719f8feeb044c61bb2d72c14fae92ba62ea8ad1225ffa427db39dadd864304818839c4df0e1e0fe9c0d8a2b265ceead14f70df56e +DIST uqm-remix-disc3.uqm 39924875 SHA256 e6d89f8f66cf1df1cb278fca1e92261b1776ee670dff26132e33f14dbd31e91d SHA512 2337752e3a2447ab048cc6782153bbb120d2d6b890c5bfae9cbef60a46d12abf716917863286b0196bf6f5e8ef301b5f84338237520880b10cbf75e450076951 WHIRLPOOL ba1ed49bb6761d9955fe9beced1987dd4458cd0203a9c8e712bb55034fd8d278f489c995969866cb7096bea75e88b330031f070b7aeb7e09f48fda0ece862e36 +DIST uqm-remix-disc4.uqm 86545760 SHA256 a4c8197712a5b72a81c7ef7a2a33ea7d3ac90ab063c929dd68e7328a559a86d0 SHA512 07f0fbe0b9889602eab43f376577c8e0a19c6db50bbb3f01f57836c7caab1eb18813e94d8d9f2d3098a6b6c9dc336290b7f5262c586f2fb41ffab0e2b0ba7f65 WHIRLPOOL 011859d9c7566c369c086925548fd4340e34d4f3657c6d4ff242451e7665acbac8c18ec2d6818856011e930a01406d947164ec0b8ed454b422424ec3fa78972c +EBUILD uqm-0.7.0-r3.ebuild 2945 SHA256 0e1c47e49dddce3d0a93cd1e4e1ba6b1c358dc970235557e488b657fb555f9df SHA512 84a3a2fce90051d8ed031169809efacd2cf3d8c7d463bbfecce5f18805637b6b2a942d41f68b2cb1576c7e5a3cb4758b4903dfd34e5efc4c357cf4a803607745 WHIRLPOOL c201ba15399c4ce2af9118d660e9e22ae84134eec87418703cfd333ae1eb1820fdce6e23ecc98f4bdafeab23470c4ae697edc935311dd0c1aa805d3ca70bad4e +MISC ChangeLog 3621 SHA256 9582199fbe80a60a85a9a827e08c334a6664b5117369d749c7a16a678d5f3d79 SHA512 1653eba6bcc7a8973575e58b52a28c1574664fc6f44e2fb21302d0b5b8e2d49afb5c2e72f6e36a4dc60dd7264a9b212fd9b0840b25d4bdf7b1037310e1ce8ebc WHIRLPOOL b11bd5e1c7c73440a4767edfb3c52fb7e6904599ab862911b7d58c5b7db684482873a3056245a65094820ea249fd1b9da7cf7acc84aba4484eabcd24ed95f54c +MISC ChangeLog-2015 5592 SHA256 0564f46cb79702e57bd5a030c5c5d09d8b9d0efbb2e0460be5c138468061c7e1 SHA512 ccd04c64fea498ef925e2d59b7c59161d47811202cc11b6e1e9d1c6b552a7b6a0d8aa56aaa80331bb4c3133bcf772a3bce753133ff358877a043d22388c835fd WHIRLPOOL 330760097fd0a9202e2f438e770187128d7c0557daafd0efb41fc9733d7d3d9861fa5c9295ab9fc9b335ca5477cbd60e3a3f79f586836706032ce2b644889b52 +MISC metadata.xml 572 SHA256 0ada807c4bc965c1568af1172560fd9fa19da0761c840ccdf654ad35df9f9aca SHA512 cd21d5260e39857374bcd1795f2cb2c158104ce865cd9c091202bab404f8133b547d0ba8e7a2580a0177ee1b97de31bdf1b0658f0b20860d70585ecb85bd49b1 WHIRLPOOL 8e9eacfb611178853c08966113d7874809cb1e89bc44b58e290db549ced46c6be0eba5ba9a1dcfb8b1d1482659e42d32db631006e365a8d73c6444d8e84e4a1b diff --git a/games-strategy/uqm/files/uqm-0.7.0-tempdir.patch b/games-strategy/uqm/files/uqm-0.7.0-tempdir.patch new file mode 100644 index 000000000000..dbb693c660a8 --- /dev/null +++ b/games-strategy/uqm/files/uqm-0.7.0-tempdir.patch @@ -0,0 +1,14 @@ +# leaves files lying around bug #576098 + +diff -ru uqm-0.7.0.orig/build/unix/config_functions uqm-0.7.0/build/unix/config_functions +--- uqm-0.7.0.orig/build/unix/config_functions 2011-05-20 15:25:22.000000000 -0400 ++++ uqm-0.7.0/build/unix/config_functions 2016-03-09 02:46:41.512465876 -0500 +@@ -16,7 +16,7 @@ + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + BUILDLOG=/dev/null +-TEMPFILE="/tmp/build.$$.tmp" ++TEMPFILE="${T:-/tmp}/build.$$.tmp" + #KEEPTEMPFILES=keeptempfiles + + diff --git a/games-strategy/uqm/files/uqm-0.7.0-warning.patch b/games-strategy/uqm/files/uqm-0.7.0-warning.patch new file mode 100644 index 000000000000..7f05ee5bd1eb --- /dev/null +++ b/games-strategy/uqm/files/uqm-0.7.0-warning.patch @@ -0,0 +1,29 @@ +--- ./src/libs/sound/decoders/aiffaud.c.orig 2011-05-20 15:24:44.000000000 -0400 ++++ ./src/libs/sound/decoders/aiffaud.c 2016-03-10 00:53:37.336198208 -0500 +@@ -307,7 +307,7 @@ + { + int bytes; + +- memset(fmt, sizeof(*fmt), 0); ++ memset(fmt, 0, sizeof(*fmt)); + if (size < AIFF_COMM_SIZE) + { + aifa->last_error = aifae_BadFile; +@@ -369,7 +369,7 @@ + aifa->max_pcm = 0; + aifa->data_ofs = 0; + memset(&aifa->fmtHdr, 0, sizeof(aifa->fmtHdr)); +- memset(aifa->prev_val, sizeof(aifa->prev_val), 0); ++ memset(aifa->prev_val, 0, sizeof(aifa->prev_val)); + + // read wave header + if (!aifa_readFileHeader (aifa, &fileHdr)) +@@ -635,7 +635,7 @@ + + // reset previous values for SDX2 on seek ops + // the delta will recover faster with reset +- memset(aifa->prev_val, sizeof(aifa->prev_val), 0); ++ memset(aifa->prev_val, 0, sizeof(aifa->prev_val)); + + return pcm_pos; + } diff --git a/games-strategy/uqm/metadata.xml b/games-strategy/uqm/metadata.xml new file mode 100644 index 000000000000..0a1a6fc92acb --- /dev/null +++ b/games-strategy/uqm/metadata.xml @@ -0,0 +1,16 @@ +<?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="music">download and install music files (large)</flag> + <flag name="remix">download and install music remix files (large)</flag> + <flag name="voice">download and install voice files (large)</flag> + </use> + <upstream> + <remote-id type="sourceforge">sc2</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/uqm/uqm-0.7.0-r3.ebuild b/games-strategy/uqm/uqm-0.7.0-r3.ebuild new file mode 100644 index 000000000000..eabe7f64c52a --- /dev/null +++ b/games-strategy/uqm/uqm-0.7.0-r3.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils multilib toolchain-funcs games + +DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2" +HOMEPAGE="http://sc2.sourceforge.net/" +SRC_URI="mirror://sourceforge/sc2/${P}-source.tgz + mirror://sourceforge/sc2/${P}-content.uqm + music? ( mirror://sourceforge/sc2/${P}-3domusic.uqm ) + voice? ( mirror://sourceforge/sc2/${P}-voice.uqm ) + remix? ( mirror://sourceforge/sc2/${PN}-remix-disc1.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc2.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc3.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc4.uqm )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" +IUSE="music opengl remix voice" + +RDEPEND="media-libs/libmikmod + media-libs/libogg + >=media-libs/libpng-1.4:0 + media-libs/libsdl[X,sound,joystick,video] + media-libs/libvorbis + media-libs/sdl-image[png] + sys-libs/zlib + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + local myopengl + + use opengl \ + && myopengl=opengl \ + || myopengl=pure + + epatch \ + "${FILESDIR}"/${P}-tempdir.patch \ + "${FILESDIR}"/${P}-warning.patch + + cat <<-EOF > config.state + CHOICE_debug_VALUE='nodebug' + CHOICE_graphics_VALUE='${myopengl}' + CHOICE_sound_VALUE='mixsdl' + CHOICE_accel_VALUE='plainc' + INPUT_install_prefix_VALUE='${GAMES_PREFIX}' + INPUT_install_bindir_VALUE='\$prefix/bin' + INPUT_install_libdir_VALUE='\$prefix/lib' + INPUT_install_sharedir_VALUE='${GAMES_DATADIR}/' + EOF + + # Take out the read so we can be non-interactive. + sed -i \ + -e '/read CHOICE/d' build/unix/menu_functions || die + + # respect CFLAGS + sed -i \ + -e "s/-O3//" build/unix/build.config || die + + sed -i \ + -e "s:@INSTALL_LIBDIR@:$(games_get_libdir)/:g" \ + build/unix/uqm-wrapper.in || die + + # respect CC + sed -i \ + -e "s/PROG_gcc_FILE=\"gcc\"/PROG_gcc_FILE=\"$(tc-getCC)\"/" \ + build/unix/config_proginfo_build || die +} + +src_compile() { + MAKE_VERBOSE=1 ./build.sh uqm || die +} + +src_install() { + # Using the included install scripts seems quite painful. + # This manual install is totally fragile but maybe they'll + # use a sane build system for the next release. + newgamesbin uqm-wrapper uqm + exeinto "$(games_get_libdir)"/${PN} + doexe uqm + + insinto "${GAMES_DATADIR}"/${PN}/content/packages + doins "${DISTDIR}"/${P}-content.uqm + echo ${P} > "${D}${GAMES_DATADIR}"/${PN}/content/version || die + + insinto "${GAMES_DATADIR}"/${PN}/content/addons + if use music; then + doins "${DISTDIR}"/${P}-3domusic.uqm + fi + + if use voice; then + doins "${DISTDIR}"/${P}-voice.uqm + fi + + if use remix; then + insinto "${GAMES_DATADIR}"/${PN}/content/addons + doins "${DISTDIR}"/${PN}-remix-disc{1,2,3,4}.uqm + fi + + dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt + docinto devel + dodoc doc/devel/[!n]* + docinto devel/netplay + dodoc doc/devel/netplay/* + make_desktop_entry uqm "The Ur-Quan Masters" + prepgamesdirs +} |