Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/s25rttr/
Date: Wed, 02 May 2018 19:28:47
Message-Id: 1525289294.33a77b0db02976317882fdde255474b81e0d4bb1.pacho@gentoo
1 commit: 33a77b0db02976317882fdde255474b81e0d4bb1
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 19:03:11 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:28:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33a77b0d
7
8 games-strategy/s25rttr: Drop old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild | 114 -------------------------
13 1 file changed, 114 deletions(-)
14
15 diff --git a/games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild b/games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild
16 deleted file mode 100644
17 index 52de4ccf0b7..00000000000
18 --- a/games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild
19 +++ /dev/null
20 @@ -1,114 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -inherit eutils cmake-utils gnome2-utils games
26 -
27 -DESCRIPTION="Open Source remake of The Settlers II game (needs original game files)"
28 -HOMEPAGE="http://www.siedler25.org/"
29 -# no upstream source tarball yet
30 -# https://bugs.launchpad.net/s25rttr/+bug/1069546
31 -SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
32 -
33 -LICENSE="GPL-3"
34 -SLOT="0"
35 -KEYWORDS="~amd64 ~x86"
36 -IUSE="debug"
37 -
38 -RDEPEND="app-arch/bzip2
39 - media-libs/libsamplerate
40 - media-libs/libsdl[X,sound,opengl,video]
41 - media-libs/libsndfile
42 - media-libs/sdl-mixer[vorbis]
43 - net-libs/miniupnpc
44 - virtual/libiconv
45 - virtual/opengl"
46 -DEPEND="${RDEPEND}
47 - sys-devel/gettext"
48 -
49 -PATCHES=(
50 - "${FILESDIR}"/${P}-cmake.patch
51 - "${FILESDIR}"/${P}-soundconverter.patch
52 - "${FILESDIR}"/${P}-fpic.patch
53 - "${FILESDIR}"/${P}-format.patch
54 - "${FILESDIR}"/${P}-miniupnpc-api-14.patch
55 - "${FILESDIR}"/${P}-cmake-3.patch
56 - "${FILESDIR}"/${P}-gcc6.patch
57 -)
58 -
59 -src_prepare() {
60 - cmake-utils_src_prepare
61 -}
62 -
63 -src_configure() {
64 - local arch
65 - case ${ARCH} in
66 - amd64)
67 - arch="x86_64" ;;
68 - x86)
69 - arch="i386" ;;
70 - *) die "Architecture ${ARCH} not yet supported" ;;
71 - esac
72 -
73 - local mycmakeargs=(
74 - -DCOMPILEFOR="linux"
75 - -DCOMPILEARCH="${arch}"
76 - -DCMAKE_SKIP_RPATH=YES
77 - -DPREFIX="${GAMES_PREFIX}"
78 - -DBINDIR="${GAMES_BINDIR}"
79 - -DDATADIR="${GAMES_DATADIR}"
80 - -DLIBDIR="$(games_get_libdir)/${PN}"
81 - -DDRIVERDIR="$(games_get_libdir)/${PN}"
82 - -DGAMEDIR="~/.${PN}/S2"
83 - -DBUILD_GLFW_DRIVER=OFF
84 - )
85 -
86 - cmake-utils_src_configure
87 -}
88 -
89 -src_compile() {
90 - # work around some relative paths (CMAKE_IN_SOURCE_BUILD not supported)
91 - ln -s "${CMAKE_USE_DIR}"/RTTR "${CMAKE_BUILD_DIR}"/RTTR || die
92 -
93 - cmake-utils_src_compile
94 -
95 - mv "${CMAKE_USE_DIR}"/RTTR/{sound-convert,s-c_resample} "${T}"/ || die
96 -}
97 -
98 -src_install() {
99 - cd "${CMAKE_BUILD_DIR}" || die
100 -
101 - exeinto "$(games_get_libdir)"/${PN}
102 - doexe "${T}"/{sound-convert,s-c_resample}
103 - exeinto "$(games_get_libdir)"/${PN}/video
104 - doexe driver/video/SDL/src/libvideoSDL.so
105 - exeinto "$(games_get_libdir)"/${PN}/audio
106 - doexe driver/audio/SDL/src/libaudioSDL.so
107 -
108 - insinto "${GAMES_DATADIR}"
109 - doins -r "${CMAKE_USE_DIR}"/RTTR
110 - dosym ./LSTS/splash.bmp "${GAMES_DATADIR}"/RTTR/splash.bmp
111 -
112 - doicon -s 64 "${CMAKE_USE_DIR}"/debian/${PN}.png
113 - dogamesbin src/s25client
114 - make_desktop_entry "s25client" "Settlers RTTR" "${PN}"
115 - dodoc RTTR/texte/{keyboardlayout.txt,readme.txt}
116 -
117 - prepgamesdirs
118 -}
119 -
120 -pkg_preinst() {
121 - games_pkg_preinst
122 - gnome2_icon_savelist
123 -}
124 -
125 -pkg_postinst() {
126 - games_pkg_postinst
127 - elog "Copy your Settlers2 game files into ~/.${PN}/S2"
128 -
129 - gnome2_icon_cache_update
130 -}
131 -
132 -pkg_postrm() {
133 - gnome2_icon_cache_update
134 -}