diff options
-rw-r--r-- | games-strategy/hedgewars/Manifest | 1 | ||||
-rw-r--r-- | games-strategy/hedgewars/hedgewars-0.9.22.ebuild | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest index f5f120cc6101..82aeb8424157 100644 --- a/games-strategy/hedgewars/Manifest +++ b/games-strategy/hedgewars/Manifest @@ -1 +1,2 @@ DIST hedgewars-src-0.9.21.1.tar.bz2 160250791 SHA256 590a9458d2123c5550d5eb39edfed28d0663703d76e13c8987237c92ca41f3f8 SHA512 4b9a2ab79d9ddb064fddaa2a4dbc895a11c0cbc52ef9e5f56322a63821fdfa4a31d6e268510a9163bd57bd89dec20be30e0f5ef992b41dc473c4684bbb6a48be WHIRLPOOL 19242ff98d3994273c6b0c7e8cfbbb5f7338061c574b4bfe8a77ed085a44c618d1ce564b295e51b400ece6f51bcbc6e211c59278382fadb3f6a26e113c2dc4b4 +DIST hedgewars-src-0.9.22.tar.bz2 160103313 SHA256 b699c8971ff420c3edd6533527ae2e99040f1e79207c9140826945bcf0e62192 SHA512 753cccef09b725048d9e66988b03859a12e577a601656cc2b3dbb2755c59ed9ae4d4c88c9247238408fc76d881c921593a694a58a500b3d5b8c9a4c0cfb053ac WHIRLPOOL c8003da8d1435f4bece344a593bda9b214a24b35ee662310245e13cabc5f35820a38f9ac0883ba5543db413189491f6c3da37b7452034bfa9fb04e8936f52e27 diff --git a/games-strategy/hedgewars/hedgewars-0.9.22.ebuild b/games-strategy/hedgewars/hedgewars-0.9.22.ebuild new file mode 100644 index 000000000000..6f2c43b980eb --- /dev/null +++ b/games-strategy/hedgewars/hedgewars-0.9.22.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: when physfs-2.1.0 hits the tree, set +# -DPHYSFS_SYSTEM=ON + +EAPI=5 +CMAKE_BUILD_TYPE=Release +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake-utils eutils games + +MY_P=${PN}-src-${PV} +DESCRIPTION="A turn-based strategy, artillery, action and comedy game" +HOMEPAGE="http://hedgewars.org/" +SRC_URI="http://download.gna.org/hedgewars/${MY_P}.tar.bz2" + +LICENSE="GPL-2 Apache-2.0 FDL-1.3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +QA_FLAGS_IGNORED=${GAMES_BINDIR}/hwengine # pascal sucks +QA_PRESTRIPPED=${GAMES_BINDIR}/hwengine # pascal sucks + +RDEPEND=" + dev-lang/lua:0= + dev-qt/qtcore:4 + dev-qt/qtgui:4 + media-libs/freeglut + media-libs/libpng:0 + media-libs/libsdl[sound,opengl,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib + virtual/ffmpeg" +DEPEND="${RDEPEND} + >=dev-lang/fpc-2.4" +RDEPEND="${RDEPEND} + media-fonts/wqy-zenhei + >=media-fonts/dejavu-2.28" + +S=${WORKDIR}/${MY_P} + +src_configure() { + local mycmakeargs=( + -DMINIMAL_FLAGS=ON + -DCMAKE_INSTALL_PREFIX="/usr" + -DDATA_INSTALL_DIR="${GAMES_DATADIR}/${PN}" + -Dtarget_binary_install_dir="${GAMES_BINDIR}" + -Dtarget_library_install_dir="$(games_get_libdir)" + -DNOSERVER=TRUE + -DCMAKE_VERBOSE_MAKEFILE=TRUE + -DPHYSFS_SYSTEM=OFF + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="ChangeLog.txt README" cmake-utils_src_install + rm -f "${D}"/usr/share/games/hedgewars/Data/Fonts/{DejaVuSans-Bold.ttf,wqy-zenhei.ttc} + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \ + "${GAMES_DATADIR}"/hedgewars/Data/Fonts/DejaVuSans-Bold.ttf + dosym /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc \ + "${GAMES_DATADIR}"/hedgewars/Data/Fonts/wqy-zenhei.ttc + doicon misc/hedgewars.png + make_desktop_entry ${PN} Hedgewars + doman man/${PN}.6 + prepgamesdirs +} |