From 75a7fc11e45ab0391c4f7099fcb4a3057ccd1712 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 8 May 2012 22:49:47 +0000 Subject: initial import wrt #348149 Package-Manager: portage-2.2.0_alpha101/cvs/Linux x86_64 --- games-action/openclonk/ChangeLog | 10 ++ games-action/openclonk/Manifest | 20 ++++ .../openclonk/files/openclonk-wrapper-script.sh | 9 ++ games-action/openclonk/metadata.xml | 26 +++++ games-action/openclonk/openclonk-5.2.2.ebuild | 108 +++++++++++++++++++++ 5 files changed, 173 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 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 +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..d66e5562285b --- /dev/null +++ b/games-action/openclonk/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 2206 RMD160 756c5190a2d7ea016346088867661f86b02c9986 SHA1 07426295889bc2502909a8f408ba419535e83b59 SHA256 ae799dc90aa8282f4c09bc78eae06a793cf7b4be17d15b3b2f5a89c8055579f6 +MISC ChangeLog 410 RMD160 e17275ace44c40c055f1f3a2e18cd344c6f2cf46 SHA1 0e0ea525181b922a5a7b2039c6eec7c6e7de8199 SHA256 753d25e49287f6958e3c4bb014438b47b3e93ec6a385aa1ab926fc58b5bc6c00 +MISC metadata.xml 1089 RMD160 fbe4e35db8e704d4d3197077488d69d2b3f5309b SHA1 5e96e27ecd28a6dbefa855c46b959eaa7c8aa597 SHA256 d1d9811cfc3649763d90d459c42c68b2c8bcf08c419e03de8b1616263628ab90 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBAgAGBQJPqaMBAAoJEFpvPKfnPDWzQoAIAKF4iGOJrznT+QYFiu40hkjK +tcLWtNlGVik9b3rjlRatFdjYcyuvz3wB7obXyTUNCGeqlP34cAav4bOllIfgnOuM +4HY9p8agBYLLD94S3tpwa5xV13pcxnw7EpF83giJleuhIvaSzerBcg30wt/hxROj +hT3fi3YNEgyt27nFy6SxR/MCouRpxO/Tce/iPh3NyNFvsS/GyZ+ERQ7CM5uTr/Dt +ufuAc7Y/2ew7F3XW4QKM6VUZPn6calTJLWio7Q8pUTQFTtWxcbi/5RHb2rgZg7pB +IQG/oa72xdufRGlZ1teNIl5uHJCLYr/ztt+8Je7Gbnbzt6f/TcRDpKLpP8feIEo= +=z/XE +-----END PGP SIGNATURE----- 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 @@ + + + + games + + hasufell@gentoo.org + Julian Ospald + Maintainer, assign bugs to him + + + http://hg.openclonk.org/openclonk/ + http://wiki.openclonk.org/w/C4Script_Documentation + http://bugs.openclonk.org/ + + + 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. + + + 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 +} -- cgit v1.2.3-65-gdbad