diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-05-16 18:42:50 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-05-16 18:42:50 +0000 |
commit | 5b681c57af46884079b4b9da51c12c978f14c640 (patch) | |
tree | 75cacadf87abb2883cc276aa5feaf295f0f90698 /games-arcade | |
parent | Update HOMEPAGE per bug #416155. Thanks to df <demmamussabebonk@gmail.com> (diff) | |
download | gentoo-2-5b681c57af46884079b4b9da51c12c978f14c640.tar.gz gentoo-2-5b681c57af46884079b4b9da51c12c978f14c640.tar.bz2 gentoo-2-5b681c57af46884079b4b9da51c12c978f14c640.zip |
initial commit wrt #413907
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/opensonic/ChangeLog | 10 | ||||
-rw-r--r-- | games-arcade/opensonic/Manifest | 5 | ||||
-rw-r--r-- | games-arcade/opensonic/files/opensonic-0.1.4-cmake.patch | 101 | ||||
-rw-r--r-- | games-arcade/opensonic/metadata.xml | 11 | ||||
-rw-r--r-- | games-arcade/opensonic/opensonic-0.1.4.ebuild | 47 |
5 files changed, 174 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..64bcc2d838ca --- /dev/null +++ b/games-arcade/opensonic/Manifest @@ -0,0 +1,5 @@ +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 926 RMD160 30ad40790e862089cbd5d85b9b066514a3baa294 SHA1 e070048a3528a693efa0cef8e3ae811f511973c5 SHA256 23312a6c497abf2bdce8e7983c7684aaf850aa9a41e8cdbaf14f9c2dc960d15a +MISC ChangeLog 314 RMD160 7b3bc475d9fb8de03ff02f23357a66068b2bfd25 SHA1 26401214ecebc1562c846f6ed41fd1f5a27b8007 SHA256 9ede2644f3c5b587f0fae842c4cbf8c3ec81801b49430cc83f540de27eb25f16 +MISC metadata.xml 303 RMD160 18a2923accf1bc9742b71cfd6c0d55139df57c6f SHA1 bfe58ab7c9b3ef9146784ab42ef3923b2edea61d SHA256 5911ff9b1fe7902561c2a7df152aadfad612e131810cbbf8c74e63b047114591 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 +} |