1 |
commit: 5a523ff90c15898ff2ed1778701414a86e2fbd14 |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 00:02:27 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 00:02:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a523ff9 |
7 |
|
8 |
games-simulation/crrcsim: Version bump (bug 601238, thanks Grant Edwards). |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
games-simulation/crrcsim/Manifest | 1 + |
13 |
games-simulation/crrcsim/crrcsim-0.9.13.ebuild | 60 +++++++++++++++++++++ |
14 |
.../crrcsim/files/crrcsim-0.9.13-buildsystem.patch | 62 ++++++++++++++++++++++ |
15 |
3 files changed, 123 insertions(+) |
16 |
|
17 |
diff --git a/games-simulation/crrcsim/Manifest b/games-simulation/crrcsim/Manifest |
18 |
index 0a90e22..d55ace0 100644 |
19 |
--- a/games-simulation/crrcsim/Manifest |
20 |
+++ b/games-simulation/crrcsim/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST crrcsim-0.9.12.tar.gz 7355827 SHA256 2d166aec9ff4394a0252368d4cfcac5ba4ab8a29f58f99cd1649721a8f65a3fb SHA512 53c4a530922d58ca0211a5a3171d927c9c9161139c63e73d8dbc602e0aa1c259ef0f3ba712b30a71dc357889bbf59fa76888315bdcd264e0d29307e66b70b00a WHIRLPOOL 3f177ae208e0f70b0ebdc9aa4e1e200ff73bdf656fecb67c6ffe7a8e303bae4ce8caab4c4e01e52371c42ae389574e9c821dcb5c4afb4dc32b94661add18b7ee |
23 |
+DIST crrcsim-0.9.13.tar.gz 8337392 SHA256 abe59b35ebb4322f3c48e6aca57dbf27074282d4928d66c0caa40d7a97391698 SHA512 b687837e07abc07606404d920288984abe7e304afb69158fd840d83bcfe1e9acc4afd8462c0c759df67d50a15ca3753eaf48c4526b201e64a2d641fa3aa8c1ab WHIRLPOOL 2af5b8aa79f8e1edead4ff982392314d659e6f5fbb31f0a4438ecc986898c6026e05d9dc417c6ff88a7a3bba9d10b122e3bf09b8bb274354fe4e531bd86f7b2f |
24 |
|
25 |
diff --git a/games-simulation/crrcsim/crrcsim-0.9.13.ebuild b/games-simulation/crrcsim/crrcsim-0.9.13.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..579b6a8 |
28 |
--- /dev/null |
29 |
+++ b/games-simulation/crrcsim/crrcsim-0.9.13.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+WANT_AUTOMAKE="1.10" |
37 |
+inherit autotools eutils gnome2-utils |
38 |
+ |
39 |
+DESCRIPTION="model-airplane flight simulation program" |
40 |
+HOMEPAGE="https://sourceforge.net/projects/crrcsim/" |
41 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="portaudio" |
47 |
+ |
48 |
+RDEPEND="media-libs/libsdl[X,sound,joystick,opengl,video] |
49 |
+ media-libs/plib |
50 |
+ sci-mathematics/cgal |
51 |
+ portaudio? ( media-libs/portaudio )" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+ |
54 |
+PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch ) |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ if has_version "sci-mathematics/cgal[gmp(+)]" ; then |
60 |
+ eapply "${FILESDIR}"/${PN}-cgal_gmp.patch |
61 |
+ fi |
62 |
+ eautoreconf |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ econf \ |
67 |
+ --datadir="/usr/share" \ |
68 |
+ --datarootdir="${EPREFIX%/}/usr/share" \ |
69 |
+ --docdir="${EPREFIX%/}/usr/share/doc/${PF}" \ |
70 |
+ $(use_with portaudio) |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ emake DESTDIR="${D}" install |
75 |
+ dodoc AUTHORS HISTORY NEWS README |
76 |
+ doicon -s 32 packages/icons/${PN}.png |
77 |
+ make_desktop_entry ${PN} |
78 |
+} |
79 |
+ |
80 |
+pkg_preinst() { |
81 |
+ gnome2_icon_savelist |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ gnome2_icon_cache_update |
86 |
+} |
87 |
+ |
88 |
+pkg_postrm() { |
89 |
+ gnome2_icon_cache_update |
90 |
+} |
91 |
|
92 |
diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch |
93 |
new file mode 100644 |
94 |
index 00000000..396fd57 |
95 |
--- /dev/null |
96 |
+++ b/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch |
97 |
@@ -0,0 +1,62 @@ |
98 |
+--- crrcsim-0.9.11/configure.ac |
99 |
++++ crrcsim-0.9.11/configure.ac |
100 |
+@@ -79,8 +79,12 @@ |
101 |
+ dnl Default is: no portaudio present |
102 |
+ portaudio=0 |
103 |
+ |
104 |
++AC_ARG_WITH([portaudio], AS_HELP_STRING([--without-portaudio], [Build without portaudio library (default: test)])) |
105 |
++ |
106 |
++AS_IF([test "x$with_portaudio" != "xno"], [ |
107 |
+ dnl Check for the Portaudio header file |
108 |
+ AC_CHECK_HEADER([portaudio.h]) |
109 |
++]) |
110 |
+ |
111 |
+ if (test "x$ac_cv_header_portaudio_h" = "xyes"); then |
112 |
+ dnl Check for Portaudio 18 |
113 |
+--- crrcsim-0.9.13/src/mod_misc/filesystools.cpp |
114 |
++++ crrcsim-0.9.13/src/mod_misc/filesystools.cpp |
115 |
+@@ -113,8 +113,8 @@ |
116 |
+ // $USERPROFILE/.crrcsim (WIN32) |
117 |
+ // $HOME/.crrcsim (LINUX) |
118 |
+ // CRRC_DATA_PATH (LINUX) |
119 |
+- // /usr/local/share/games/crrcsim (LINUX) |
120 |
+- // /usr/share/games/crrcsim (LINUX) |
121 |
++ // /usr/local/share/crrcsim (LINUX) |
122 |
++ // /usr/share/crrcsim (LINUX) |
123 |
+ |
124 |
+ // cwd |
125 |
+ if (dirname != "") |
126 |
+@@ -154,13 +154,13 @@ |
127 |
+ s.append(dirname); |
128 |
+ pathlist.push_back(s); |
129 |
+ #endif |
130 |
+- s = "/usr/local/share/games/" + appname + "/"; |
131 |
++ s = "/usr/local/share/" + appname + "/"; |
132 |
+ if (s != data_path) // avoid adding this path twice |
133 |
+ { |
134 |
+ s.append(dirname); |
135 |
+ pathlist.push_back(s); |
136 |
+ } |
137 |
+- s = "/usr/share/games/" + appname + "/"; |
138 |
++ s = "/usr/share/" + appname + "/"; |
139 |
+ if (s != data_path) // avoid adding this path twice |
140 |
+ { |
141 |
+ s.append(dirname); |
142 |
+@@ -172,13 +172,13 @@ |
143 |
+ #ifdef CRRC_DATA_PATH |
144 |
+ pathlist.push_back(data_path); |
145 |
+ #endif |
146 |
+- if (data_path != "/usr/local/share/games/" + appname) // avoid adding this path twice |
147 |
++ if (data_path != "/usr/local/share/" + appname) // avoid adding this path twice |
148 |
+ { |
149 |
+- pathlist.push_back("/usr/local/share/games/" + appname); |
150 |
++ pathlist.push_back("/usr/local/share/" + appname); |
151 |
+ } |
152 |
+- if (data_path != "/usr/share/games/" + appname) // avoid adding this path twice |
153 |
++ if (data_path != "/usr/share/" + appname) // avoid adding this path twice |
154 |
+ { |
155 |
+- pathlist.push_back("/usr/share/games/" + appname); |
156 |
++ pathlist.push_back("/usr/share/" + appname); |
157 |
+ } |
158 |
+ } |
159 |
+ #endif |