summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2012-03-27 16:36:21 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2012-03-27 16:36:21 +0000
commit3f5221cf6e16bda7a72d9e5369d0daa55fab0085 (patch)
tree1344d5abd11c585713be2d87b123fda3a599384c
parentVersion bump to new snapshot. Trying to solve bug#386481. (diff)
downloadhistorical-3f5221cf6e16bda7a72d9e5369d0daa55fab0085.tar.gz
historical-3f5221cf6e16bda7a72d9e5369d0daa55fab0085.tar.bz2
historical-3f5221cf6e16bda7a72d9e5369d0daa55fab0085.zip
Initial commit; ebuild submission and patch from hasufell and barul (bug #408811)
Package-Manager: portage-2.1.10.49/cvs/Linux x86_64
-rw-r--r--games-puzzle/meandmyshadow/ChangeLog12
-rw-r--r--games-puzzle/meandmyshadow/Manifest5
-rw-r--r--games-puzzle/meandmyshadow/files/meandmyshadow-0.3-cmake.patch47
-rw-r--r--games-puzzle/meandmyshadow/meandmyshadow-0.3.ebuild56
-rw-r--r--games-puzzle/meandmyshadow/metadata.xml5
5 files changed, 125 insertions, 0 deletions
diff --git a/games-puzzle/meandmyshadow/ChangeLog b/games-puzzle/meandmyshadow/ChangeLog
new file mode 100644
index 000000000000..1d181cef9d2b
--- /dev/null
+++ b/games-puzzle/meandmyshadow/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for games-puzzle/meandmyshadow
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/meandmyshadow/ChangeLog,v 1.1 2012/03/27 16:36:20 mr_bones_ Exp $
+
+*meandmyshadow-0.3 (27 Mar 2012)
+
+ 27 Mar 2012; Michael Sterrett <mr_bones_@gentoo.org>
+ +meandmyshadow-0.3.ebuild, +files/meandmyshadow-0.3-cmake.patch,
+ +metadata.xml:
+ Initial commit; ebuild submission and patch from hasufell and barul (bug
+ #408811)
+
diff --git a/games-puzzle/meandmyshadow/Manifest b/games-puzzle/meandmyshadow/Manifest
new file mode 100644
index 000000000000..7d9ea0373575
--- /dev/null
+++ b/games-puzzle/meandmyshadow/Manifest
@@ -0,0 +1,5 @@
+AUX meandmyshadow-0.3-cmake.patch 2229 RMD160 95eb72e38cb15dd73b780c6439f2ca351be71099 SHA1 6d5c6934b95b227697bef2643ed45fcf23297adc SHA256 9d1fff4ff67931cef74a7ce4e5724abb04f883d2227ec16bde979475efb7edd4
+DIST meandmyshadow-0.3-src.tar.gz 5322285 RMD160 a697ccfcfb831a5e8fede37d7726705cc5c1fa49 SHA1 a460084f75aa54105907811633200a8f57fc3492 SHA256 e00bbfcd22a02477b2eb99be361a9aa683980dc307b16d5205f5c652ea65270d
+EBUILD meandmyshadow-0.3.ebuild 1373 RMD160 5ff48adaa470e363e1d5b39d9626b7befc590742 SHA1 ee864013a196e949a673628e4e9c24daf4adcf1f SHA256 8e09b9727f5f69800965b93de57c56838f9817b51f66278512d8e2ac41bc32ea
+MISC ChangeLog 488 RMD160 363930459c8f3f6532e293f8fea2478b017cd188 SHA1 33dba99b6cd7016451b0131052a4ad441978a436 SHA256 2abf9c853a506cbcb5a63f15a6f4a463fdb09883f12e4a982ec78c090eef73b8
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-puzzle/meandmyshadow/files/meandmyshadow-0.3-cmake.patch b/games-puzzle/meandmyshadow/files/meandmyshadow-0.3-cmake.patch
new file mode 100644
index 000000000000..6900e7a6843b
--- /dev/null
+++ b/games-puzzle/meandmyshadow/files/meandmyshadow-0.3-cmake.patch
@@ -0,0 +1,47 @@
+Creator: hasufell <julian.ospald@googlemail.com>
+Date: Tue Mar 27 18:07:46 CEST 2012
+
+add Path options to build system
+see https://bugs.gentoo.org/show_bug.cgi?id=408811
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -85,12 +85,20 @@
+ ${CRYPTO_LIBRARY}
+ )
+
+-install(DIRECTORY ${PROJECT_SOURCE_DIR}/data DESTINATION share/meandmyshadow/)
+-install(TARGETS meandmyshadow RUNTIME DESTINATION bin)
++# Path options
++set(BINDIR "bin" CACHE STRING "Where to install binaries")
++set(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE STRING "Sets the root of data directories to a non-default location")
++set(ICONDIR "${DATAROOTDIR}/icons" CACHE STRING "Sets the icon directory for desktop entry to a non-default location.")
++set(DESKTOPDIR "${DATAROOTDIR}/applications" CACHE STRING "Sets the desktop file directory for desktop entry to a non-default location.")
++
++# install locations
++install(DIRECTORY ${PROJECT_SOURCE_DIR}/data DESTINATION ${DATAROOTDIR}/meandmyshadow/)
++install(TARGETS meandmyshadow RUNTIME DESTINATION ${BINDIR})
++
+ if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
+- install(FILES meandmyshadow.desktop DESTINATION share/applications/)
+- install(FILES icons/16x16/meandmyshadow.png DESTINATION share/icons/hicolor/16x16/apps/)
+- install(FILES icons/32x32/meandmyshadow.png DESTINATION share/icons/hicolor/32x32/apps/)
+- install(FILES icons/48x48/meandmyshadow.png DESTINATION share/icons/hicolor/48x48/apps/)
+- install(FILES icons/64x64/meandmyshadow.png DESTINATION share/icons/hicolor/64x64/apps/)
++ install(FILES meandmyshadow.desktop DESTINATION ${DESKTOPDIR})
++ install(FILES icons/16x16/meandmyshadow.png DESTINATION ${ICONDIR}/hicolor/16x16/apps/)
++ install(FILES icons/32x32/meandmyshadow.png DESTINATION ${ICONDIR}/hicolor/32x32/apps/)
++ install(FILES icons/48x48/meandmyshadow.png DESTINATION ${ICONDIR}/hicolor/48x48/apps/)
++ install(FILES icons/64x64/meandmyshadow.png DESTINATION ${ICONDIR}/hicolor/64x64/apps/)
+ endif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
+--- src/config.h.in
++++ src/config.h.in
+@@ -4,7 +4,7 @@
+ #if defined(WIN32)
+ //#define DATA_PATH
+ #else
+-#define DATA_PATH "@CMAKE_INSTALL_PREFIX@/share/meandmyshadow/data/"
++#define DATA_PATH "@DATAROOTDIR@/meandmyshadow/data/"
+ #endif
+
+ #endif
diff --git a/games-puzzle/meandmyshadow/meandmyshadow-0.3.ebuild b/games-puzzle/meandmyshadow/meandmyshadow-0.3.ebuild
new file mode 100644
index 000000000000..9b05eeadf64f
--- /dev/null
+++ b/games-puzzle/meandmyshadow/meandmyshadow-0.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/meandmyshadow/meandmyshadow-0.3.ebuild,v 1.1 2012/03/27 16:36:20 mr_bones_ Exp $
+
+EAPI=3
+inherit eutils cmake-utils games
+
+DESCRIPTION="A puzzle/plateform game with a player and its shadow"
+HOMEPAGE="http://meandmyshadow.sourceforge.net/"
+SRC_URI="mirror://sourceforge/meandmyshadow/${PV}/${P}-src.tar.gz"
+
+LICENSE="GPL-3 OFL-1.1 CCPL-Attribution-ShareAlike-2.5"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[audio,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png]
+ dev-libs/openssl
+ net-misc/curl
+ app-arch/libarchive"
+
+src_prepare() {
+ edos2unix CMakeLists.txt src/config.h.in
+ sed -i \
+ -e '/Version/s/0.3/1.0/' \
+ -e 's/Game;//' \
+ meandmyshadow.desktop || die
+ epatch "${FILESDIR}"/${P}-cmake.patch
+}
+
+src_configure()
+{
+ mycmakeargs=(
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE
+ -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
+ -DBINDIR="${GAMES_BINDIR}"
+ -DDATAROOTDIR="${GAMES_DATADIR}"
+ -DICONDIR=/usr/share/icons
+ -DDESKTOPDIR=/usr/share/applications
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS="Controls.txt" cmake-utils_src_install
+ doicon icons/64x64/meandmyshadow.png
+ prepgamesdirs
+}
diff --git a/games-puzzle/meandmyshadow/metadata.xml b/games-puzzle/meandmyshadow/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-puzzle/meandmyshadow/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>