diff options
author | eroen <eroen@occam.eroen.eu> | 2014-05-29 15:17:42 +0200 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2014-05-29 15:17:42 +0200 |
commit | 9a0d3ad09fe79e36a3ebe8814995b9997c3b94f7 (patch) | |
tree | 8a10403731433fdfd9ef70ac534ec52150b4abae /games-engines/openmw/openmw-0.30.0.ebuild | |
parent | Drop e2fsprogs. (diff) | |
download | eroen-9a0d3ad09fe79e36a3ebe8814995b9997c3b94f7.tar.gz eroen-9a0d3ad09fe79e36a3ebe8814995b9997c3b94f7.tar.bz2 eroen-9a0d3ad09fe79e36a3ebe8814995b9997c3b94f7.zip |
openmw-0.30.0 - bump
Diffstat (limited to 'games-engines/openmw/openmw-0.30.0.ebuild')
-rw-r--r-- | games-engines/openmw/openmw-0.30.0.ebuild | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/games-engines/openmw/openmw-0.30.0.ebuild b/games-engines/openmw/openmw-0.30.0.ebuild new file mode 100644 index 0000000..c63b71b --- /dev/null +++ b/games-engines/openmw/openmw-0.30.0.ebuild @@ -0,0 +1,98 @@ +# By Eroen, 2013-2014 +# 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 [[ ${PV} == *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 || die + ./openmw_test_suite || die + popd > /dev/null || die +} + +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 +} |