summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-06-18 12:39:00 -0400
committerMichael Sterrett <mr_bones_@gentoo.org>2016-06-18 12:39:00 -0400
commitaf95483a593a753abe6829b2028e5f611d19895e (patch)
treeef9347a695bc9349e6da07c9c65a17f62cdee631 /games-strategy/s25rttr
parentgames-strategy/s25rttr: mark stable for x86 (bug #584130) (diff)
downloadgentoo-af95483a593a753abe6829b2028e5f611d19895e.tar.gz
gentoo-af95483a593a753abe6829b2028e5f611d19895e.tar.bz2
gentoo-af95483a593a753abe6829b2028e5f611d19895e.zip
games-strategy/s25rttr: clean old
Package-Manager: portage-2.2.28
Diffstat (limited to 'games-strategy/s25rttr')
-rw-r--r--games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild112
1 files changed, 0 insertions, 112 deletions
diff --git a/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild b/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild
deleted file mode 100644
index b8d00d7bf990..000000000000
--- a/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit eutils cmake-utils gnome2-utils games
-
-DESCRIPTION="Open Source remake of The Settlers II game (needs original game files)"
-HOMEPAGE="http://www.siedler25.org/"
-# no upstream source tarball yet
-# https://bugs.launchpad.net/s25rttr/+bug/1069546
-SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="debug glfw"
-
-RDEPEND="app-arch/bzip2
- media-libs/libsamplerate
- media-libs/libsdl[X,sound,opengl,video]
- media-libs/libsndfile
- media-libs/sdl-mixer[vorbis]
- net-libs/miniupnpc
- virtual/libiconv
- virtual/opengl
- glfw? ( <media-libs/glfw-3 )"
-DEPEND="${RDEPEND}
- sys-devel/gettext"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-cmake.patch \
- "${FILESDIR}"/${P}-soundconverter.patch \
- "${FILESDIR}"/${P}-fpic.patch \
- "${FILESDIR}"/${P}-format.patch \
- "${FILESDIR}"/${P}-miniupnpc-api-14.patch \
- "${FILESDIR}"/${P}-cmake-3.patch
-}
-
-src_configure() {
- local arch
- case ${ARCH} in
- amd64)
- arch="x86_64" ;;
- x86)
- arch="i386" ;;
- *) die "Architecture ${ARCH} not yet supported" ;;
- esac
-
- local mycmakeargs=(
- -DCOMPILEFOR="linux"
- -DCOMPILEARCH="${arch}"
- -DCMAKE_SKIP_RPATH=YES
- -DPREFIX="${GAMES_PREFIX}"
- -DBINDIR="${GAMES_BINDIR}"
- -DDATADIR="${GAMES_DATADIR}"
- -DLIBDIR="$(games_get_libdir)/${PN}"
- -DDRIVERDIR="$(games_get_libdir)/${PN}"
- -DGAMEDIR="~/.${PN}/S2"
- $(cmake-utils_use_build glfw GLFW_DRIVER)
- )
-
- cmake-utils_src_configure
-}
-
-src_compile() {
- # work around some relative paths (CMAKE_IN_SOURCE_BUILD not supported)
- ln -s "${CMAKE_USE_DIR}"/RTTR "${CMAKE_BUILD_DIR}"/RTTR || die
-
- cmake-utils_src_compile
-
- mv "${CMAKE_USE_DIR}"/RTTR/{sound-convert,s-c_resample} "${T}"/ || die
-}
-
-src_install() {
- cd "${CMAKE_BUILD_DIR}" || die
-
- exeinto "$(games_get_libdir)"/${PN}
- doexe "${T}"/{sound-convert,s-c_resample}
- exeinto "$(games_get_libdir)"/${PN}/video
- doexe driver/video/SDL/src/libvideoSDL.so
- use glfw && doexe driver/video/GLFW/src/libvideoGLFW.so
- exeinto "$(games_get_libdir)"/${PN}/audio
- doexe driver/audio/SDL/src/libaudioSDL.so
-
- insinto "${GAMES_DATADIR}"
- doins -r "${CMAKE_USE_DIR}"/RTTR
- dosym ./LSTS/splash.bmp "${GAMES_DATADIR}"/RTTR/splash.bmp
-
- doicon -s 64 "${CMAKE_USE_DIR}"/debian/${PN}.png
- dogamesbin src/s25client
- make_desktop_entry "s25client" "Settlers RTTR" "${PN}"
- dodoc RTTR/texte/{keyboardlayout.txt,readme.txt}
-
- prepgamesdirs
-}
-
-pkg_preinst() {
- games_pkg_preinst
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- games_pkg_postinst
- elog "Copy your Settlers2 game files into ~/.${PN}/S2"
-
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}