summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-08 22:49:47 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-08 22:49:47 +0000
commit74bd63754f0231dc1ddd4fff918003192c63c0dd (patch)
tree5427819a83a5c7988645b62c637cda095178c0dc /games-action/openclonk
parentversion bump (diff)
downloadgentoo-2-74bd63754f0231dc1ddd4fff918003192c63c0dd.tar.gz
gentoo-2-74bd63754f0231dc1ddd4fff918003192c63c0dd.tar.bz2
gentoo-2-74bd63754f0231dc1ddd4fff918003192c63c0dd.zip
initial import wrt #348149
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'games-action/openclonk')
-rw-r--r--games-action/openclonk/ChangeLog10
-rw-r--r--games-action/openclonk/Manifest6
-rw-r--r--games-action/openclonk/files/openclonk-wrapper-script.sh9
-rw-r--r--games-action/openclonk/metadata.xml26
-rw-r--r--games-action/openclonk/openclonk-5.2.2.ebuild108
5 files changed, 159 insertions, 0 deletions
diff --git a/games-action/openclonk/ChangeLog b/games-action/openclonk/ChangeLog
new file mode 100644
index 000000000000..1057c7a37d8b
--- /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: /var/cvsroot/gentoo-x86/games-action/openclonk/ChangeLog,v 1.1 2012/05/08 22:49:47 hasufell Exp $
+
+*openclonk-5.2.2 (08 May 2012)
+
+ 08 May 2012; Julian Ospald <hasufell@gentoo.org> +openclonk-5.2.2.ebuild,
+ +files/openclonk-wrapper-script.sh, +metadata.xml:
+ initial import wrt #348149
+
diff --git a/games-action/openclonk/Manifest b/games-action/openclonk/Manifest
new file mode 100644
index 000000000000..5386b7c99684
--- /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 2097 RMD160 27892ede628c78ca31fafa27b14f01de0445c5dc SHA1 4eb7b5db5b9171a5c420801a1869f8961e8e0ccc SHA256 c9f49b46a4a4f6e668899e8b427d3e682b76d96454283a43c5421165152ae0a3
+MISC ChangeLog 314 RMD160 a1f95844a7f3d0758070fdcfeaccdeb8e721b794 SHA1 b1100e756a4fa44cf53814d09f3d822938332c35 SHA256 a0b67e55b5dde9c7e415d798cd792179c5a1b4b09184ec7bb575f88ed93f9126
+MISC metadata.xml 1089 RMD160 fbe4e35db8e704d4d3197077488d69d2b3f5309b SHA1 5e96e27ecd28a6dbefa855c46b959eaa7c8aa597 SHA256 d1d9811cfc3649763d90d459c42c68b2c8bcf08c419e03de8b1616263628ab90
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 000000000000..9f7e64442887
--- /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 000000000000..e67d67075a47
--- /dev/null
+++ b/games-action/openclonk/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ <description>Maintainer, assign bugs to him</description>
+ </maintainer>
+ <upstream>
+ <changelog>http://hg.openclonk.org/openclonk/</changelog>
+ <doc lang="en">http://wiki.openclonk.org/w/C4Script_Documentation</doc>
+ <bugs-to>http://bugs.openclonk.org/</bugs-to>
+ </upstream>
+ <longdescription lang="en">
+ OpenClonk is the Open source successor of the Clonk gaming series.
+ OpenClonk is a project dedicated to the further development of the
+ Clonk game series. Our goal is to improve and make the real strengths
+ of Clonk more fun to play: Bustling mining, production lines and
+ economy, fast and fiddly melees. Another focus lies on the further
+ enchancement of the game engine and the extensibility/modability of
+ the game content with C4Script which has always been one of the most
+ important features of Clonk.
+ </longdescription>
+</pkgmetadata>
+
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 000000000000..ce4d8ff6fd78
--- /dev/null
+++ b/games-action/openclonk/openclonk-5.2.2.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/openclonk/openclonk-5.2.2.ebuild,v 1.1 2012/05/08 22:49:47 hasufell Exp $
+
+EAPI=3
+
+inherit autotools eutils flag-o-matic python 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="dedicated doc mp3 sound"
+
+RDEPEND="
+ media-libs/libpng:0
+ sys-libs/zlib
+ virtual/jpeg
+ !dedicated? (
+ media-libs/freetype:2
+ media-libs/glew
+ media-libs/libsdl[X,opengl,video]
+ virtual/opengl
+ virtual/glu
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3
+ x11-libs/libXpm
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libX11
+ sound? ( media-libs/libsdl[audio]
+ media-libs/sdl-mixer[mp3?,vorbis,wav] )
+ )
+ dedicated? ( sys-libs/readline:0 )"
+DEPEND="${RDEPEND}
+ >=dev-libs/boost-1.40
+ virtual/pkgconfig
+ doc? (
+ =dev-lang/python-2*
+ dev-libs/libxml2[python]
+ sys-devel/gettext
+ )
+ "
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ games_pkg_setup
+
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ # remove license files
+ sed \
+ -e '/dist_doc_DATA/s#planet/COPYING ##' \
+ -e '/dist_doc_DATA/s#licenses/LGPL.txt ##' \
+ -i Makefile.am || die
+
+ # verbose
+ sed \
+ -e "/AM_SILENT_RULES/d" \
+ -i configure.ac || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # QA
+ append-flags -fno-strict-aliasing
+
+ egamesconf \
+ $(use_enable dedicated console) \
+ $(use_enable sound) \
+ $(use_enable mp3) \
+ $(usex dedicated "--with-gtk=no" "--with-gtk=3.0") \
+ --without-openal \
+ --with-automatic-update=no
+}
+
+src_compile() {
+ emake || die
+
+ if use doc ; then
+ emake -C docs || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ if ! use dedicated; then
+ newgamesbin "${FILESDIR}"/${PN}-wrapper-script.sh ${PN} || die
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN}
+ fi
+ use doc && dohtml -r docs/online/*
+
+ prepgamesdirs
+}