* [gentoo-commits] proj/gamerlay:master commit in: games-engines/stratagus/
@ 2012-05-20 9:42 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2012-05-20 9:42 UTC (permalink / raw
To: gentoo-commits
commit: 646afa3d9a4aa641135cfc62a80d88825f51355b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 20 08:40:10 2012 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 20 08:40:10 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=646afa3d
games-engines/stratagus: New stratagus version, based on ebuild from gx86 and notes from Rafał Mużyło.
(Portage version: 2.2.0_alpha107_p2/git/Linux x86_64, signed Manifest commit with key 42B9401D)
---
games-engines/stratagus/metadata.xml | 5 ++
games-engines/stratagus/stratagus-2.2.6.ebuild | 72 ++++++++++++++++++++++++
2 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/games-engines/stratagus/metadata.xml b/games-engines/stratagus/metadata.xml
new file mode 100644
index 0000000..d3c2cc9
--- /dev/null
+++ b/games-engines/stratagus/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-engines/stratagus/stratagus-2.2.6.ebuild b/games-engines/stratagus/stratagus-2.2.6.ebuild
new file mode 100644
index 0000000..5ab0dc1
--- /dev/null
+++ b/games-engines/stratagus/stratagus-2.2.6.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit cmake-utils eutils games
+
+DESCRIPTION="A realtime strategy game engine"
+HOMEPAGE="http://stratagus.sourceforge.net/"
+SRC_URI="http://launchpad.net/stratagus/trunk/${PV}/+download/stratagus_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 debug doc mikmod mng theora vorbis"
+
+RDEPEND="x11-libs/libX11
+ virtual/opengl
+ dev-db/sqlite:3
+ >=dev-lang/lua-5
+ dev-lua/toluapp
+ media-libs/libpng
+ media-libs/libsdl[audio,opengl,video]
+ bzip2? ( app-arch/bzip2 )
+ mikmod? ( media-libs/libmikmod )
+ mng? ( media-libs/libmng )
+ theora? ( media-libs/libtheora media-libs/libvorbis )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${PN}_${PV}.orig"
+
+src_prepare() {
+ sed -i \
+ -e '/DESTINATION/s:games\|s\?bin:games/bin:' \
+ -e '/DESTINATION/s:share/doc/stratagus:/tmp/doc:' \
+ CMakeLists.txt || die 'fixing install paths failed'
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with bzip2)
+ $(cmake-utils_use_with debug)
+ $(cmake-utils_use_enable doc)
+ $(cmake-utils_use_with mikmod)
+ $(cmake-utils_use_with mng)
+ $(cmake-utils_use_with theora)
+ $(cmake-utils_use_with vorbis oggvorbis)
+
+ # install header files
+ -DENABLE_DEV=ON
+
+ # XXX: make sqlite (metaserver) optional
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # thanks to games.eclass we're stuck with EAPI 2
+ dodoc "${D}"/tmp/doc/*.txt || die
+ rm -f "${D}"/tmp/doc/*.txt || die
+ dohtml -r "${D}"/tmp/doc/* || die
+ rm -rf "${D}"/tmp || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/gamerlay:master commit in: games-engines/stratagus/
@ 2012-05-20 9:52 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2012-05-20 9:52 UTC (permalink / raw
To: gentoo-commits
commit: ccc27f12ae2f5484e49deb47bdf088d73f142c78
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 20 09:53:17 2012 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 20 09:53:17 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=ccc27f12
games-engines/stratagus: Fix installing with USE=-doc.
(Portage version: 2.2.0_alpha107_p2/git/Linux x86_64, signed Manifest commit with key 42B9401D)
---
games-engines/stratagus/stratagus-2.2.6.ebuild | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/games-engines/stratagus/stratagus-2.2.6.ebuild b/games-engines/stratagus/stratagus-2.2.6.ebuild
index 5ab0dc1..05991bb 100644
--- a/games-engines/stratagus/stratagus-2.2.6.ebuild
+++ b/games-engines/stratagus/stratagus-2.2.6.ebuild
@@ -64,9 +64,11 @@ src_compile() {
src_install() {
cmake-utils_src_install
- # thanks to games.eclass we're stuck with EAPI 2
- dodoc "${D}"/tmp/doc/*.txt || die
- rm -f "${D}"/tmp/doc/*.txt || die
- dohtml -r "${D}"/tmp/doc/* || die
- rm -rf "${D}"/tmp || die
+ if use doc; then
+ # thanks to games.eclass we're stuck with EAPI 2
+ dodoc "${D}"/tmp/doc/*.txt || die
+ rm -f "${D}"/tmp/doc/*.txt || die
+ dohtml -r "${D}"/tmp/doc/* || die
+ rm -rf "${D}"/tmp || die
+ fi
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-20 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-20 9:52 [gentoo-commits] proj/gamerlay:master commit in: games-engines/stratagus/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2012-05-20 9:42 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox