summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-16 18:42:50 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-16 18:42:50 +0000
commit16f1ba41c28adcdb1ace3d379d9162a41f79efa7 (patch)
treeb4838ab96c68bc62dd22cbcf0f214d8e8e9e2eb3
parentUpdate HOMEPAGE per bug #416155. Thanks to df <demmamussabebonk@gmail.com> (diff)
downloadhistorical-16f1ba41c28adcdb1ace3d379d9162a41f79efa7.tar.gz
historical-16f1ba41c28adcdb1ace3d379d9162a41f79efa7.tar.bz2
historical-16f1ba41c28adcdb1ace3d379d9162a41f79efa7.zip
initial commit wrt #413907
Package-Manager: portage-2.2.0_alpha104/cvs/Linux x86_64
-rw-r--r--games-arcade/opensonic/ChangeLog10
-rw-r--r--games-arcade/opensonic/Manifest19
-rw-r--r--games-arcade/opensonic/files/opensonic-0.1.4-cmake.patch101
-rw-r--r--games-arcade/opensonic/metadata.xml11
-rw-r--r--games-arcade/opensonic/opensonic-0.1.4.ebuild47
5 files changed, 188 insertions, 0 deletions
diff --git a/games-arcade/opensonic/ChangeLog b/games-arcade/opensonic/ChangeLog
new file mode 100644
index 000000000000..c749f6b59c1b
--- /dev/null
+++ b/games-arcade/opensonic/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-arcade/opensonic
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/opensonic/ChangeLog,v 1.1 2012/05/16 18:42:50 hasufell Exp $
+
+*opensonic-0.1.4 (16 May 2012)
+
+ 16 May 2012; Julian Ospald <hasufell@gentoo.org> +opensonic-0.1.4.ebuild,
+ +files/opensonic-0.1.4-cmake.patch, +metadata.xml:
+ initial commit wrt #413907
+
diff --git a/games-arcade/opensonic/Manifest b/games-arcade/opensonic/Manifest
new file mode 100644
index 000000000000..19a236b3517c
--- /dev/null
+++ b/games-arcade/opensonic/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX opensonic-0.1.4-cmake.patch 4226 RMD160 f2f689d9d27d5202946d5cdd5c6529647a463f95 SHA1 921a17a737cb672acff7361790846a9c9906cdea SHA256 ac94400a49ffcecb9a4cf93be782f5ac5752d5c050d670c33100d382bb69eec3
+DIST opensnc-src-0.1.4.tar.gz 10525059 RMD160 4cbcdfa3ef4ed054ea113b1e2456c46c678fd017 SHA1 7c8bda81d22640e2eddeba74aa425783317e17d3 SHA256 3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
+EBUILD opensonic-0.1.4.ebuild 1035 RMD160 88ecef6ba93969bef5905c1a4da3d2862e929ef6 SHA1 b856549affbaa77135aa15550acbd49f3bc4a27d SHA256 d5f84256abe508940cbb794504734a512549530c6241bfe6baeba3d472ce4632
+MISC ChangeLog 410 RMD160 1585ce38286b45ce3ac8c95cd773c2c05495afcf SHA1 1c8bd95faa060ad75ae1c00b33d5ff0e6bea1929 SHA256 6751cc79a0c697818947bb6e1b340f78579ab99a33208706805497ff5875730e
+MISC metadata.xml 303 RMD160 18a2923accf1bc9742b71cfd6c0d55139df57c6f SHA1 bfe58ab7c9b3ef9146784ab42ef3923b2edea61d SHA256 5911ff9b1fe7902561c2a7df152aadfad612e131810cbbf8c74e63b047114591
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBAgAGBQJPs/SpAAoJEFpvPKfnPDWzUdAH/0W9iOG/O/hbklOq92Dihrjt
+kBBSFiTqBNvgUOveJFaRMwtRNhVqdbrvcmCfo28h5CUZbzNqS+KlKs3aXKRKjrx7
+qkG3riJn0FAt0iLgmVSUX6pYqpsyQwdK1GNBH21RLWE00zM2/uqfB8JTF/oDj6ax
+pTPxHxlpIUfY4KOoXKDjQrAXOvo+OX2Ey/C2gEuvkdJhEWCCfm36j7AUYp3y2eB0
+eUhvAp1mmDfF7kNo/RHzfwYNKTXtemDbtmznUZHIW48l+yOZETI3jn9S1n8fGlW9
+yf2X7rBTfbYaTbZk/VNmmllfCMPnHr15cr1XlKPtyH/tvWpg4av+iC9kn1DlrCQ=
+=xjKe
+-----END PGP SIGNATURE-----
diff --git a/games-arcade/opensonic/files/opensonic-0.1.4-cmake.patch b/games-arcade/opensonic/files/opensonic-0.1.4-cmake.patch
new file mode 100644
index 000000000000..f7ca95f3e358
--- /dev/null
+++ b/games-arcade/opensonic/files/opensonic-0.1.4-cmake.patch
@@ -0,0 +1,101 @@
+From: hasufell <julian.ospald@googlemail.com>
+Date: Sat Apr 28 16:38:56 UTC 2012
+Subject: build system
+
+use allegro-config
+remove "-O2" from pre-defined CFLAGS
+make paths modifiable
+add rules for icon, desktop-file and game-wrapper
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -35,16 +35,14 @@
+ MESSAGE("Using CFLAGS='${CFLAGS}'")
+
+ IF(UNIX)
+- SET(ALLEGRO_UNIX_LIBS "$ENV{_ALLEGRO_LIBS}")
++ exec_program(allegro-config ARGS --libs OUTPUT_VARIABLE ALLEGRO_LIBRARY)
++ SET(ALLEGRO_UNIX_LIBS "${ALLEGRO_LIBRARY}")
+ IF(NOT ALLEGRO_UNIX_LIBS)
+- MESSAGE(FATAL_ERROR "Please do not invoke CMake directly. Run ./configure instead.")
++ MESSAGE(FATAL_ERROR "Allegro libs not found!")
+ ENDIF(NOT ALLEGRO_UNIX_LIBS)
+ ENDIF(UNIX)
+
+
+-
+-
+-
+ # Finding the required libraries:
+
+ # Allegro: liballeg
+@@ -53,7 +51,8 @@
+ MESSAGE(FATAL_ERROR "Fatal error: couldn't find the Allegro game programming library (liballeg)! ${RTFM}")
+ ELSE(NOT LALLEG)
+ IF(UNIX)
+- SET(ALLEGRO_UNIX_VERSION "$ENV{_ALLEGRO_VERSION}")
++ exec_program(allegro-config ARGS --version OUTPUT_VARIABLE ALLEGRO_VERSION)
++ SET(ALLEGRO_UNIX_VERSION "${ALLEGRO_VERSION}")
+ IF(NOT ALLEGRO_UNIX_VERSION STREQUAL ALLEGRO_RECOMMENDED_VERSION)
+ MESSAGE("\nWARNING: your Allegro version is ${ALLEGRO_UNIX_VERSION}. The recommended version is ${ALLEGRO_RECOMMENDED_VERSION}.\n ${GAME_NAME} may not compile properly!.\n")
+ ENDIF(NOT ALLEGRO_UNIX_VERSION STREQUAL ALLEGRO_RECOMMENDED_VERSION)
+@@ -251,7 +250,7 @@
+ ADD_EXECUTABLE(${GAME_UNIXNAME} ${GAME_SRCS})
+ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES LINK_FLAGS ${ALLEGRO_UNIX_LIBS})
+ TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m logg vorbisfile vorbis ogg jpgalleg z png loadpng)
+- SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall -O2 ${CFLAGS} ${CFLAGS_EXTRA}")
++ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall")
+ ENDIF(UNIX)
+
+
+@@ -407,19 +406,42 @@
+ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES PROJECT_NAME "${GAME_NAME}")
+
+
+-
+ # Installing on *nix
+ IF(UNIX)
+- SET(GAME_INSTALL_DIR "/usr/share/${GAME_UNIXNAME}")
+- SET(GAME_FINAL_DIR "/usr/bin")
++ SET(GAME_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/${GAME_UNIXNAME}" CACHE PATH "")
++ SET(GAME_FINAL_DIR "bin" CACHE PATH "")
++ SET(GAME_DOCDIR "share/doc/${GAME_UNIXNAME}-${GAME_VERSION}" CACHE PATH "")
++ SET(GAME_HTMLDIR "share/doc/${GAME_UNIXNAME}-${GAME_VERSION}/html" CACHE PATH "")
++ SET(GAME_ICONDIR "share/pixmaps" CACHE PATH "")
++ SET(GAME_DESKTOPDIR "share/applications" CACHE PATH "")
++
++ FILE(WRITE ${GAME_UNIXNAME}.sh
++"#!/bin/sh
++cd ${GAME_INSTALL_DIR}
++exec ./${GAME_UNIXNAME} \"$@\"
++"
++)
++
++ FILE(WRITE ${GAME_UNIXNAME}.desktop
++"[Desktop Entry]
++Name=${GAME_NAME}
++Type=Application
++Comment=A free open-source clone of the Sonic the Hedgehog universe
++Exec=${GAME_UNIXNAME}
++TryExec=${GAME_UNIXNAME}
++Icon=${GAME_UNIXNAME}
++Categories=Game;ArcadeGame;
++"
++)
+
+ INSTALL(CODE "MESSAGE(\"Installing ${GAME_NAME} ${GAME_VERSION}... Make sure you have root privileges.\")")
+ INSTALL(TARGETS ${GAME_UNIXNAME} RUNTIME DESTINATION ${GAME_INSTALL_DIR})
+- INSTALL(FILES license.txt readme.html DESTINATION ${GAME_INSTALL_DIR})
+- INSTALL(DIRECTORY objects sprites config images levels licenses musics quests samples screenshots themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE)
+-
+- INSTALL(CODE "MESSAGE(\"Creating files at ${GAME_FINAL_DIR}...\")")
+- INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${GAME_INSTALL_DIR}/${GAME_UNIXNAME}\" \"${GAME_FINAL_DIR}/${GAME_UNIXNAME}\")")
++# INSTALL(FILES license.txt DESTINATION ${GAME_DOCDIR})
++ INSTALL(FILES readme.html DESTINATION ${GAME_HTMLDIR})
++ INSTALL(FILES icon.png DESTINATION ${GAME_ICONDIR} RENAME ${GAME_UNIXNAME}.png)
++ INSTALL(FILES ${GAME_UNIXNAME}.desktop DESTINATION ${GAME_DESKTOPDIR})
++ INSTALL(DIRECTORY objects sprites config images levels musics quests samples themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE)
++ INSTALL(PROGRAMS ${GAME_UNIXNAME}.sh DESTINATION ${GAME_FINAL_DIR} RENAME ${GAME_UNIXNAME})
+
+ INSTALL(CODE "MESSAGE(\"Done! Please run ${GAME_UNIXNAME} to start ${GAME_NAME}.\")")
+ ENDIF(UNIX)
diff --git a/games-arcade/opensonic/metadata.xml b/games-arcade/opensonic/metadata.xml
new file mode 100644
index 000000000000..281895bf432d
--- /dev/null
+++ b/games-arcade/opensonic/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/games-arcade/opensonic/opensonic-0.1.4.ebuild b/games-arcade/opensonic/opensonic-0.1.4.ebuild
new file mode 100644
index 000000000000..5003516b9654
--- /dev/null
+++ b/games-arcade/opensonic/opensonic-0.1.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/opensonic/opensonic-0.1.4.ebuild,v 1.1 2012/05/16 18:42:50 hasufell Exp $
+
+EAPI=3
+
+inherit cmake-utils eutils games
+
+MY_PN=opensnc
+MY_P=${MY_PN}-src-${PV}
+
+DESCRIPTION="A free open-source game based on the Sonic the Hedgehog universe"
+HOMEPAGE="http://opensnc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror" # unsure about legality of graphics
+
+DEPEND="media-libs/allegro:0[X,jpeg,png,vorbis]
+ media-libs/libogg
+ media-libs/libpng:0
+ media-libs/libvorbis
+ sys-libs/zlib
+ virtual/jpeg"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cmake.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DGAME_INSTALL_DIR="${GAMES_DATADIR}"/${PN}
+ -DGAME_FINAL_DIR="${GAMES_BINDIR}"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}