From d234c04b67dfed935e1183b5f0c0bc19d559a23d Mon Sep 17 00:00:00 2001 From: eroen Date: Thu, 13 Mar 2014 02:31:28 +0100 Subject: openmw-0.29.0 --- games-engines/openmw/Manifest | 1 + games-engines/openmw/openmw-0.29.0.ebuild | 98 +++++++++++++++++++++++++++++++ games-engines/openmw/openmw-9999.ebuild | 4 +- 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 games-engines/openmw/openmw-0.29.0.ebuild (limited to 'games-engines') diff --git a/games-engines/openmw/Manifest b/games-engines/openmw/Manifest index d4ec2ff..a82ab53 100644 --- a/games-engines/openmw/Manifest +++ b/games-engines/openmw/Manifest @@ -4,4 +4,5 @@ DIST openmw-0.24.0-source.tar.gz 2489635 SHA256 e932db80689991b1ac85be9c34de38c3 DIST openmw-0.26.0-source.tar.gz 2862885 SHA256 5675c2922fc06775a456a0ddaf302d41f84cb286af4d35141aeaaa1aec59397a SHA512 6d9d2502e07ae5dc024894c73aa5bdd2467b4099f152ae3894f97d66e947ca96d08ec264a24494b6c860e47d49b45ffe22d0517c1cc4c70ddf1c52fc34457f16 WHIRLPOOL 5557a1c84879b52c8491222c402a0f12afb25c82477e827d1fe73b90763cb0f0df4b4804ba3f81d690357ec91b74231e78ab5aede0d252344f705e469f3be85c DIST openmw-0.27.0-source.tar.gz 3533777 SHA256 2c71d6fe0b8036f739ee79c359267fdcf573679fb3459a7d56443ca705e84d7a SHA512 30b8a8f523cbf94494327f902f0938d0a021d03acfb01c415d7969a520988ed685e5950d739e06918937d5d09a48c41dee38f42ad73f8ad8367671df1510a40a WHIRLPOOL 353e9a72e41476cdec90cef4725802bdb889ccf5b631e1848f3011ba5ef5a7d81e01d300d2a6b29054c556f35f688d943284e99bc512c26de3bc00d223e5f0af DIST openmw-0.28.0-source.tar.gz 3605814 SHA256 6db333f5a950eb53427a7c827bcce2fb7f5bdd989f4993b0411c4c9816dd41f4 SHA512 06bca0bf3cba639658e92e340031d2e0256b60ddba012f3ca58477ce625c161843863121c3c18615cb0bc9a9df5fcd9ca34d197cc0b89a7599ae35fb3d7ba9f3 WHIRLPOOL 2a410eccb9c936dfccfb3fb99b0ac531d344bcd5cbdc3b4f30359776d7d1c90f0dcb22d5cbf6d4fc421a58bb3af2ccbbcb4b06527c16870b61a5e79534f37580 +DIST openmw-0.29.0.tar.gz 3192730 SHA256 cf284e1116ebec77f98c4e48e1e4379c984e2d52ff71770928ae8e8f9c2d1ce2 SHA512 6bafa30ff00aeb7fc6152f36ada07287b326092cb90a8a53b16d3ba29da8d29bbfb2c1d42654dfe953553854ad2468d22113540d4d60c305f2286a960098b663 WHIRLPOOL 6203245d2310ade5c93d79e90121588132e01fa98dbd977c39890bd2a148e23b223324fde7fb4c49f232997b3ef3db5d4bf4512745b8c23ef8b1b962755ed109 DIST openmw_0.20.0.orig.tar.bz2 1757358 SHA256 6fb88901920d6c28a974885065303639ee6227e9c21fd615334bcdc16d7909eb SHA512 e3180ed3efbc7fcb92339d88ea1dbc0987f81cc006f56926a7862ac1ee5ca4f2119cfa9baa286aa6c98f2d3a4ef0938ebdfecc842877f08e6a229ac66b913e2d WHIRLPOOL 2f5489f1108b8b3ce8aaa092f3c3effb382b859822e0ce2dd057e5552a2f5579ae304aa402a0dd798794a6ff7032b029bb993f37d76b5c32c30de2eb9eefc026 diff --git a/games-engines/openmw/openmw-0.29.0.ebuild b/games-engines/openmw/openmw-0.29.0.ebuild new file mode 100644 index 0000000..67bd94e --- /dev/null +++ b/games-engines/openmw/openmw-0.29.0.ebuild @@ -0,0 +1,98 @@ +# By Eroen, 2013 +# Distributed under the terms of the ISC license +# $Header: $ + +EAPI=5 + +inherit eutils flag-o-matic versionator games cmake-utils +[[ $(get_version_component_range $(get_version_component_count)) == *999? ]] && inherit git-r3 + +DESCRIPTION="Unofficial open source engine reimplementation of the game Morrowind" +HOMEPAGE="https://openmw.org/" +LICENSE="GPL-3 MIT BitstreamVera OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+launcher minimal +opencs profile test +tr1" + +if [[ $(get_version_component_range $(get_version_component_count)) == *999? ]]; then + EGIT_REPO_URI="git://github.com/zinnschlag/openmw.git" + if [[ $(get_version_component_count) -ge 4 ]]; then + EGIT_BRANCH=openmw$(get_version_component_range 2) + fi +else + SRC_URI="https://github.com/OpenMW/${PN}/archive/${P}.tar.gz" + S=${WORKDIR}/${PN}-${P} +fi + +OPENMW_LIBS="dev-games/mygui + dev-libs/tinyxml + media-libs/openal + virtual/ffmpeg + sci-physics/bullet" +LAUNCHER_LIBS="app-arch/unshield + dev-qt/qtcore + dev-qt/qtgui" +OPENCS_LIBS="dev-qt/qtcore + dev-qt/qtgui + dev-qt/qtxmlpatterns" + +HDEPEND="" +# boost[threads]: can't test https://bugs.gentoo.org/458404 +# libsdl2[-directfb]: https://bugs.gentoo.org/503130 +LIBDEPEND="${OPENMW_LIBS} + launcher? ( ${LAUNCHER_LIBS} ) + opencs? ( ${OPENCS_LIBS} ) + dev-games/ogre[boost,cg,freeimage,opengl,threads,zip] + dev-libs/boost:=[threads] + media-libs/libsdl2[-directfb]" +DEPEND="${LIBDEPEND} + test? ( dev-cpp/gmock[tr1=] + dev-cpp/gtest[tr1=] )" +[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}" +RDEPEND="${LIBDEPEND}" + +pkg_setup() { + if use test && ! use tr1; then + append-cflags -DGTEST_USE_OWN_TR1_TUPLE=1 + append-cxxflags -DGTEST_USE_OWN_TR1_TUPLE=1 + fi +} + +src_prepare() { + epatch_user +} + +src_configure() { + mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + -DDATAROOTDIR="${GAMES_DATADIR_BASE}" + -DDATADIR="${GAMES_DATADIR}/${PN}" + -DSYSCONFDIR="${GAMES_SYSCONFDIR}"/${PN} + $(cmake-utils_use_build launcher LAUNCHER) + $(cmake-utils_use_build opencs OPENCS) + $(cmake-utils_use_build !minimal BSATOOL) + $(cmake-utils_use_build !minimal ESMTOOL) + $(cmake-utils_use_build !minimal MWINIIMPORTER) + $(cmake-utils_use_with profile CODE_COVERAGE) + -DUSE_SYSTEM_TINYXML=ON + $(cmake-utils_use_build test UNITTESTS) + ) + cmake-utils_src_configure +} + +src_test() { + pushd "${BUILD_DIR}" > /dev/null + ./openmw_test_suite || die + popd > /dev/null +} + +src_install() { + cmake-utils_src_install + rm -r "${D}"/usr/share/licenses + sed -e "s:resources=resources:resources=${GAMES_DATADIR}/${PN}/resources:" \ + -i "${D}/${GAMES_SYSCONFDIR}"/${PN}/openmw.cfg || die + prepgamesdirs + # /etc/openmw/ is hardcoded, but we set SYSCONFDIR for games.eclass + mv -t "${D}"/etc "${D}/${GAMES_SYSCONFDIR}"/${PN} || die + rmdir "${D}/${GAMES_SYSCONFDIR}" || die +} diff --git a/games-engines/openmw/openmw-9999.ebuild b/games-engines/openmw/openmw-9999.ebuild index 7b6e19e..7395636 100644 --- a/games-engines/openmw/openmw-9999.ebuild +++ b/games-engines/openmw/openmw-9999.ebuild @@ -20,8 +20,8 @@ if [[ $(get_version_component_range $(get_version_component_count)) == *999? ]]; EGIT_BRANCH=openmw$(get_version_component_range 2) fi else - SRC_URI="https://${PN}.googlecode.com/files/${P}-source.tar.gz" - S="${WORKDIR}"/${PN}-${P} + SRC_URI="https://github.com/OpenMW/${PN}/archive/${P}.tar.gz" + S=${WORKDIR}/${PN}-${P} fi OPENMW_LIBS="dev-games/mygui -- cgit v1.2.3-65-gdbad