Gentoo Archives: gentoo-commits

From: Thomas Kahle <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/freeorion/
Date: Tue, 29 Sep 2015 12:16:30
Message-Id: 1443528965.d0ee075d632fcf7c9657c639ca579841f61b1b12.tomka@gentoo
1 commit: d0ee075d632fcf7c9657c639ca579841f61b1b12
2 Author: Thomas Kahle <tomka <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 29 12:05:06 2015 +0000
4 Commit: Thomas Kahle <tomka <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 29 12:16:05 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0ee075d
7
8 games-strategy/freeorion: Bump to 0.4.5
9
10 Package-Manager: portage-2.2.20.1
11
12 games-strategy/freeorion/Manifest | 1 +
13 games-strategy/freeorion/freeorion-0.4.5.ebuild | 99 +++++++++++++++++++++++++
14 2 files changed, 100 insertions(+)
15
16 diff --git a/games-strategy/freeorion/Manifest b/games-strategy/freeorion/Manifest
17 index 4fb80bb..afb73ba 100644
18 --- a/games-strategy/freeorion/Manifest
19 +++ b/games-strategy/freeorion/Manifest
20 @@ -1 +1,2 @@
21 +DIST freeorion-0.4.5.tar.gz 133309719 SHA256 3b99b92eeac72bd059566dbabfab54368989ba83f72e769bc94eb8dd4fe414c0 SHA512 4107b3019a19f970e7a7df595940a95ad411cbe9572c88b9561de0a2612e107bb654eb3e87a53062f6d969383f4363d7710556d6ba0ae4943c92931be9b650c1 WHIRLPOOL e7488f8d336f36df2d2bf51ab32cd3b2e62eb1c2b1e80596100806f8da1e9064556ccbfa196b77b594f58565e3466a40b7347f3962df4ebe62a1f2c8f9e429fe
22 DIST freeorion-0.4.5_pre.tar.bz2 141068240 SHA256 a3d326a1fa05327cf23b14ef08672c0199fc08df15bb3679f579575115172b4a SHA512 33dc4a89264ccf8f146021d8b9dabc51f11e7869a5323effb7a783800db77f37ed27880c60c483dd83ea62bc9ea84872f53c25b4571ccdf13dc594bcb368b903 WHIRLPOOL 1229aefdc22b95c38e71a94f493026230e750948c37544f636d1a43030b96d487307a7a1885bb32d4ae697bc64f431b97323cb647eca516d3363898120528d0d
23
24 diff --git a/games-strategy/freeorion/freeorion-0.4.5.ebuild b/games-strategy/freeorion/freeorion-0.4.5.ebuild
25 new file mode 100644
26 index 0000000..2c49439
27 --- /dev/null
28 +++ b/games-strategy/freeorion/freeorion-0.4.5.ebuild
29 @@ -0,0 +1,99 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +PYTHON_COMPAT=( python2_7 )
37 +inherit cmake-utils python-any-r1 games
38 +
39 +DESCRIPTION="A free turn-based space empire and galactic conquest game"
40 +HOMEPAGE="http://www.freeorion.org"
41 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/FreeOrion_v0.4.5_2015-09-01.f203162_Source.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +IUSE="cg"
47 +
48 +# Needs it's own version of GG(dev-games/gigi) which it ships.
49 +# The split version dev-games/gigi is not used anymore as of 0.4.3
50 +RDEPEND="
51 + !dev-games/gigi
52 + media-libs/libsdl2
53 + >=dev-libs/boost-1.47[python]
54 + media-libs/freealut
55 + media-libs/glew
56 + media-libs/libogg
57 + media-libs/libsdl[X,opengl,video]
58 + media-libs/libvorbis
59 + media-libs/openal
60 + sci-physics/bullet
61 + sys-libs/zlib
62 + virtual/opengl"
63 +DEPEND="${RDEPEND}
64 + ${PYTHON_DEPS}
65 + virtual/pkgconfig"
66 +
67 +CMAKE_USE_DIR="${S}"
68 +CMAKE_VERBOSE="1"
69 +
70 +pkg_setup() {
71 + # build system is using FindPythonLibs.cmake which needs python:2
72 + python-any-r1_pkg_setup
73 + games_pkg_setup
74 +}
75 +
76 +src_unpack() {
77 + default
78 + mv src-tarball "${P}" || die
79 + }
80 +
81 +src_prepare() {
82 + # parse subdir sets -O3
83 + sed -e "s:-O3::" -i parse/CMakeLists.txt
84 +
85 + # For snapshots, the following can be used to the set revision
86 + # for display in game -- update on bump!
87 + # sed -i -e 's/???/8051/' CMakeLists.txt
88 +}
89 +
90 +src_configure() {
91 + local mycmakeargs=(
92 + -DRELEASE_COMPILE_FLAGS=""
93 + -DCMAKE_SKIP_RPATH=ON
94 + )
95 +
96 + cmake-utils_src_configure
97 +}
98 +
99 +src_compile() {
100 + cmake-utils_src_compile
101 +}
102 +
103 +src_install() {
104 + # data files
105 + rm "${CMAKE_USE_DIR}"/default/COPYING || die
106 + insinto "${GAMES_DATADIR}"/${PN}
107 + doins -r "${CMAKE_USE_DIR}"/default || die
108 +
109 + # bin
110 + dogamesbin "${CMAKE_BUILD_DIR}"/${PN}{ca,d} || die
111 + newgamesbin "${CMAKE_BUILD_DIR}"/${PN} ${PN}.bin || die
112 + games_make_wrapper ${PN} \
113 + "${GAMES_BINDIR}/${PN}.bin --resource-dir ${GAMES_DATADIR}/${PN}/default" \
114 + "${GAMES_DATADIR}/${PN}"
115 +
116 + # lib
117 + dogameslib "${CMAKE_BUILD_DIR}"/libfreeorion{common,parse}.so || die
118 + dogameslib "${CMAKE_BUILD_DIR}"/libGiGi*.so || die
119 +
120 + # other
121 + dodoc "${CMAKE_USE_DIR}"/changelog.txt || die
122 + newicon "${CMAKE_USE_DIR}"/default/data/art/icons/FO_Icon_32x32.png \
123 + ${PN}.png || die
124 + make_desktop_entry ${PN} ${PN} ${PN}
125 +
126 + # permissions
127 + prepgamesdirs
128 +}