From 2b6b239475b3dabb01b04299cd5efe7b66a68e69 Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 9 Apr 2012 17:18:35 +0200 Subject: games-action/openclonk: New Ebuild for bug 348149 thanks to ssuominen and mgorny --- games-action/openclonk/ChangeLog | 10 ++ games-action/openclonk/Manifest | 6 ++ .../openclonk/files/openclonk-wrapper-script.sh | 9 ++ games-action/openclonk/metadata.xml | 11 ++ games-action/openclonk/openclonk-5.2.2.ebuild | 111 +++++++++++++++++++++ 5 files changed, 147 insertions(+) create mode 100644 games-action/openclonk/ChangeLog create mode 100644 games-action/openclonk/Manifest create mode 100644 games-action/openclonk/files/openclonk-wrapper-script.sh create mode 100644 games-action/openclonk/metadata.xml create mode 100644 games-action/openclonk/openclonk-5.2.2.ebuild (limited to 'games-action') diff --git a/games-action/openclonk/ChangeLog b/games-action/openclonk/ChangeLog new file mode 100644 index 000000000..b561f663e --- /dev/null +++ b/games-action/openclonk/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-action/openclonk +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*openclonk-5.2.2 (09 Apr 2012) + + 09 Apr 2012; hasufell +openclonk-5.2.2.ebuild, + +files/openclonk-wrapper-script.sh, +metadata.xml: + New Ebuild for bug 348149 thanks to ssuominen and mgorny + diff --git a/games-action/openclonk/Manifest b/games-action/openclonk/Manifest new file mode 100644 index 000000000..2810bc35b --- /dev/null +++ b/games-action/openclonk/Manifest @@ -0,0 +1,6 @@ +AUX openclonk-wrapper-script.sh 229 RMD160 23afdae0b113745b9da02a3afb05c33e6407959f SHA1 c35a1782726a4551a7dd6ad307f3c0c09608d289 SHA256 96fbef61769c0b4950dfde6d35648f9f5b2d9261c4b99687cfc02c24635ed939 +DIST openclonk-release-5.2.2-src.tar.gz 43078356 RMD160 ab6aa6fd108470e94115cb3a1d1b5a637eb6ed67 SHA1 e1cf9347bc6246647358a62241c31e7f06781eef SHA256 87bf6c4836ed5c15e8ae66f7f2b0eec097e0d641a36bf1b328568be8d8fe39a9 +DIST openclonk.png 8487 RMD160 8b80ccfae62794ed37f05ddaa87d6f470f93b5ce SHA1 36bc26a08fecbe6dd75bcc541c879a69ff31fd95 SHA256 93ff9f479e166f30f1c1042c32624b7e54b4d917813a4f46cce57e39a1f30233 +EBUILD openclonk-5.2.2.ebuild 2130 RMD160 b9603297bdc9049fff31dce4a58de2fbc979d8c9 SHA1 81560f6a078a23e3157918b27da62149116162a8 SHA256 9e1df4ada3837dd272415870ae5509c78ac0e548f255b042ad4a2acbe96547fc +MISC ChangeLog 348 RMD160 fb79b5b5891e771701ef0f1027bbcf977c087f91 SHA1 f024ff32ccc52e84311cb37168f3a42c09c3262d SHA256 0f01dd0fdb9db9abdef769e4ab9134627ef265692397bea4c13b9a42c34a03fb +MISC metadata.xml 271 RMD160 a1b89721a129f1a6e5dc7086009fcc2be0984ba2 SHA1 9e311ca6aa636ad517ec78b45010d21c36c75c43 SHA256 55643a9612d8502750b93de9a5f6f26df18757883615e3d805b9ab052b2f8943 diff --git a/games-action/openclonk/files/openclonk-wrapper-script.sh b/games-action/openclonk/files/openclonk-wrapper-script.sh new file mode 100644 index 000000000..9f7e64442 --- /dev/null +++ b/games-action/openclonk/files/openclonk-wrapper-script.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# wrapper prevents the game to look for .ocp files in the current dir +# which can lead to weird behavior and game freeze + +[ -d ~/.clonk/openclonk ] || mkdir -p ~/.clonk/openclonk + +cd ~/.clonk/openclonk + +exec clonk "$@" diff --git a/games-action/openclonk/metadata.xml b/games-action/openclonk/metadata.xml new file mode 100644 index 000000000..9d873d76a --- /dev/null +++ b/games-action/openclonk/metadata.xml @@ -0,0 +1,11 @@ + + + + + maintainer-wanted@gentoo.org + + + Audio output + + + diff --git a/games-action/openclonk/openclonk-5.2.2.ebuild b/games-action/openclonk/openclonk-5.2.2.ebuild new file mode 100644 index 000000000..ddf9539c9 --- /dev/null +++ b/games-action/openclonk/openclonk-5.2.2.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit autotools eutils flag-o-matic games + +MY_P=${PN}-release-${PV}-src + +DESCRIPTION="A free multiplayer action game where you control clonks" +HOMEPAGE="http://openclonk.org/" +SRC_URI="http://hg.${PN}.org/${PN}/archive/${MY_P}.tar.gz + http://${PN}.org/homepage/icon.png -> ${PN}.png" + +LICENSE="BSD CLONK-source CLONK-trademark LGPL-2.1 POSTGRESQL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+audio doc mp3 openal" + +RDEPEND=" + media-libs/freetype:2 + media-libs/glew + media-libs/libpng:0 + media-libs/libsdl[X,audio?,opengl,video] + sys-libs/zlib + virtual/jpeg + virtual/opengl + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libXpm + x11-libs/libXrandr + x11-libs/libXxf86vm + x11-libs/libX11 + audio? ( + media-libs/sdl-mixer[mp3?] + openal? ( + media-libs/libvorbis + media-libs/openal + ) + )" +DEPEND="${RDEPEND} + >=dev-libs/boost-1.40 + dev-util/pkgconfig + doc? ( + =dev-lang/python-2* + dev-libs/libxml2[python] + sys-devel/gettext + )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # remove license files + sed \ + -e '/dist_doc_DATA/s#planet/COPYING ##;s:licenses/LGPL.txt ::' \ + -i Makefile.am || die + + # force python2 for doc-generation + if use doc ; then + sed \ + -e 's/python/python2/g' \ + -i docs/Makefile || die + fi + + eautoreconf +} + +src_configure() { + # QA + append-flags -fno-strict-aliasing + + local myconf + if use audio ; then + myconf="$(use_enable audio sound)" + use mp3 && myconf="${myconf} $(use_enable mp3)" + use openal && myconf="${myconf} $(use_with openal)" + fi + + egamesconf \ + --with-automatic-update=no \ + --with-gtk=3.0 \ + ${myconf} +} + +src_compile() { + emake || die + + if use doc ; then + emake -C docs || die + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + doicon "${DISTDIR}"/${PN}.png + newgamesbin "${FILESDIR}"/${PN}-wrapper-script.sh ${PN} || die + make_desktop_entry ${PN} ${PN} + + if use doc ; then + dohtml -r docs/online/* + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + einfo "Run the game via the wrapper \"${GAMES_BINDIR}/${PN}\"." +} -- cgit v1.2.3-65-gdbad