summaryrefslogtreecommitdiff
path: root/games-simulation/crrcsim
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-simulation/crrcsim
reinit the tree, so we can have metadata
Diffstat (limited to 'games-simulation/crrcsim')
-rw-r--r--games-simulation/crrcsim/Manifest8
-rw-r--r--games-simulation/crrcsim/crrcsim-0.9.13.ebuild62
-rw-r--r--games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch62
-rw-r--r--games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch14
-rw-r--r--games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch11
-rw-r--r--games-simulation/crrcsim/metadata.xml15
6 files changed, 172 insertions, 0 deletions
diff --git a/games-simulation/crrcsim/Manifest b/games-simulation/crrcsim/Manifest
new file mode 100644
index 000000000000..a04e64fb4f90
--- /dev/null
+++ b/games-simulation/crrcsim/Manifest
@@ -0,0 +1,8 @@
+AUX crrcsim-0.9.13-buildsystem.patch 2183 SHA256 78fe600bec7d2fcf55a1e21dc44c4a68f3e283a6e8c7559b386ec21c59ff6887 SHA512 9b28fe63ea4bd3d21559306bd110eaa2c518dc933a572a93dc21182464ee4f95bf7d8bc3f21ebe78addbcc2e432fcd2992587925f97d633270ce9d47ff2e228b WHIRLPOOL 472d1295bd33c3dbc12781f2191e43c52a4fb3aa263aab5971413470d27acf1d83a2e27dbaeff665bba51ee3622e27d2cc0a3543d5f5e061530aaac9634b44f6
+AUX crrcsim-0.9.13-gcc6.patch 461 SHA256 2e155453369674543cd8106ba544f83c20f808453e6a1e0e3bcdf792634d5140 SHA512 34bda65c0791622adb8436d08b60e6a877c2a3bbb12f93379686c39c2c572364c0fa265011bbc788229fa2ddaa3bfa3be8397d2ff98ea967f423fa3cd48465e9 WHIRLPOOL 6dfe1465b2d7329259d471fb71b48e110cc365dad0999b50a9e14943b4d006129d3e484ff48e83f1c959acb5f956a54ffc02786ec3f9831c3cd80075038240f1
+AUX crrcsim-cgal_gmp.patch 352 SHA256 f79c80467c5bd704a5ddb3d7de185037569d939a06d745211b1c6ea99afc899a SHA512 1b8302f71e220df54b73819988f866a7e35ec6b11d271a6a57ad886372fba4eb1a02367ab9942030baf04fbeb5fa093d23e38de2614c39c2c75e76795ec69274 WHIRLPOOL 6b28070c1cf67e1714271b960464b1ec6a40aacddacb64604cf6a1d1a5e44f97e5599e62826c05abae5d35da454af48db957a0f4dd5434212df66ea8f6599074
+DIST crrcsim-0.9.13.tar.gz 8337392 SHA256 abe59b35ebb4322f3c48e6aca57dbf27074282d4928d66c0caa40d7a97391698 SHA512 b687837e07abc07606404d920288984abe7e304afb69158fd840d83bcfe1e9acc4afd8462c0c759df67d50a15ca3753eaf48c4526b201e64a2d641fa3aa8c1ab WHIRLPOOL 2af5b8aa79f8e1edead4ff982392314d659e6f5fbb31f0a4438ecc986898c6026e05d9dc417c6ff88a7a3bba9d10b122e3bf09b8bb274354fe4e531bd86f7b2f
+EBUILD crrcsim-0.9.13.ebuild 1232 SHA256 cae2a1a5d0bedc84de5079a4ff56bb29e148fcc737321b4e5b601018cf7dd2ee SHA512 ab16d675e3135e65b649ab7cc9a912c84e4d90881042531b89a06e9ce25cfa44fd5e23f525a6b41396c2b907c25db867e7329e96f0f015bc8c0b1c85098c5adb WHIRLPOOL 9bcf51df2b2d414be5e5c761386c73f006d6a5b4f4b406176e87e3798442798b3a99ed1a07f3554134fc4a5745f917886d274770fbf2f4bd15b9019ca0a5f157
+MISC ChangeLog 2882 SHA256 ab1ef5b53dadc9268b789c70f3137023d3bf4856a314cb58bf8975fd103f2281 SHA512 242f810db3530ceb1f5dbf2b9f3ef922e74d67447c49a42bef73144036a1cfe68757ae21922a7903cea2816b1cc03e5fe38f965f340ee6c3b85f315d9abd82d9 WHIRLPOOL df66776c9d8aa26d7b5fe2e7189c53c160b9020bc15d6790d7c58560537a0d76fbd7ee19f44649a203729818266a3125262320a93b8e74f2a2c5903d926dd767
+MISC ChangeLog-2015 1802 SHA256 e405fd330ff127273d0eb54fa8b315157315e40d2ac56f2a093ec7f68ecafd58 SHA512 5e6f571c1cdee4e6e310d5dbfd7f43187ad45ab88715d46aeedc220f58eb421b264e90388e676eef5a4290347dcd46e31b46835c95da1d3cf2576ba9de1371fb WHIRLPOOL 6b357a20d84bce1143627bfc5decd09009bd61ef24264de8f0e3d3a4cb5d70d7841fbe5cd151cee42924898f343939f7ba37ea976a60516100e843e0df8848fe
+MISC metadata.xml 434 SHA256 6134745f367329fcd8f23085b8ca0b8a24d540fd24e8b9a0eb1e427b3ac79acd SHA512 bb752783e5e310b3a0f321dda5ffb813df1b54c9dbd4b062f3a42ab41466751d4029f02bd56eb70d025b6087487782eee4e2b0aedd683d13e99336b512b2cbec WHIRLPOOL 47c1a851c2f85ef149d8b100d5274b8787ec698c7d6f2a1d46f67d6ea6c6d50db007914822fb5affbb240c6e4f8a80cf102454a33bf7858226a65211d355eb0d
diff --git a/games-simulation/crrcsim/crrcsim-0.9.13.ebuild b/games-simulation/crrcsim/crrcsim-0.9.13.ebuild
new file mode 100644
index 000000000000..ef5b5ce752df
--- /dev/null
+++ b/games-simulation/crrcsim/crrcsim-0.9.13.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOMAKE="1.10"
+inherit autotools eutils gnome2-utils
+
+DESCRIPTION="model-airplane flight simulation program"
+HOMEPAGE="https://sourceforge.net/projects/crrcsim/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="portaudio"
+
+RDEPEND="media-libs/libsdl[X,sound,joystick,opengl,video]
+ media-libs/plib
+ sci-mathematics/cgal
+ portaudio? ( media-libs/portaudio )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-buildsystem.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+ default
+
+ if has_version "sci-mathematics/cgal[gmp(+)]" ; then
+ eapply "${FILESDIR}"/${PN}-cgal_gmp.patch
+ fi
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --datadir="/usr/share" \
+ --datarootdir="${EPREFIX%/}/usr/share" \
+ --docdir="${EPREFIX%/}/usr/share/doc/${PF}" \
+ $(use_with portaudio)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS HISTORY NEWS README
+ doicon -s 32 packages/icons/${PN}.png
+ make_desktop_entry ${PN}
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch
new file mode 100644
index 000000000000..396fd573ec90
--- /dev/null
+++ b/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch
@@ -0,0 +1,62 @@
+--- crrcsim-0.9.11/configure.ac
++++ crrcsim-0.9.11/configure.ac
+@@ -79,8 +79,12 @@
+ dnl Default is: no portaudio present
+ portaudio=0
+
++AC_ARG_WITH([portaudio], AS_HELP_STRING([--without-portaudio], [Build without portaudio library (default: test)]))
++
++AS_IF([test "x$with_portaudio" != "xno"], [
+ dnl Check for the Portaudio header file
+ AC_CHECK_HEADER([portaudio.h])
++])
+
+ if (test "x$ac_cv_header_portaudio_h" = "xyes"); then
+ dnl Check for Portaudio 18
+--- crrcsim-0.9.13/src/mod_misc/filesystools.cpp
++++ crrcsim-0.9.13/src/mod_misc/filesystools.cpp
+@@ -113,8 +113,8 @@
+ // $USERPROFILE/.crrcsim (WIN32)
+ // $HOME/.crrcsim (LINUX)
+ // CRRC_DATA_PATH (LINUX)
+- // /usr/local/share/games/crrcsim (LINUX)
+- // /usr/share/games/crrcsim (LINUX)
++ // /usr/local/share/crrcsim (LINUX)
++ // /usr/share/crrcsim (LINUX)
+
+ // cwd
+ if (dirname != "")
+@@ -154,13 +154,13 @@
+ s.append(dirname);
+ pathlist.push_back(s);
+ #endif
+- s = "/usr/local/share/games/" + appname + "/";
++ s = "/usr/local/share/" + appname + "/";
+ if (s != data_path) // avoid adding this path twice
+ {
+ s.append(dirname);
+ pathlist.push_back(s);
+ }
+- s = "/usr/share/games/" + appname + "/";
++ s = "/usr/share/" + appname + "/";
+ if (s != data_path) // avoid adding this path twice
+ {
+ s.append(dirname);
+@@ -172,13 +172,13 @@
+ #ifdef CRRC_DATA_PATH
+ pathlist.push_back(data_path);
+ #endif
+- if (data_path != "/usr/local/share/games/" + appname) // avoid adding this path twice
++ if (data_path != "/usr/local/share/" + appname) // avoid adding this path twice
+ {
+- pathlist.push_back("/usr/local/share/games/" + appname);
++ pathlist.push_back("/usr/local/share/" + appname);
+ }
+- if (data_path != "/usr/share/games/" + appname) // avoid adding this path twice
++ if (data_path != "/usr/share/" + appname) // avoid adding this path twice
+ {
+- pathlist.push_back("/usr/share/games/" + appname);
++ pathlist.push_back("/usr/share/" + appname);
+ }
+ }
+ #endif
diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch
new file mode 100644
index 000000000000..b11550f3dff6
--- /dev/null
+++ b/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/610560
+Upstream commit: https://sourceforge.net/p/crrcsim/code/ci/28ed9ba57011371cab8b637550acc716b973c47d
+
+--- a/src/mod_video/crrc_animation.cpp
++++ b/src/mod_video/crrc_animation.cpp
+@@ -84,7 +84,7 @@
+ else
+ {
+ std::cerr << "createAnimation: unknown animation type \'"
+- << type << "\'" << std::cerr;
++ << type << "\'" << std::endl;
+ }
+
+ if (anim != NULL)
diff --git a/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch b/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch
new file mode 100644
index 000000000000..10d6bff6b769
--- /dev/null
+++ b/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch
@@ -0,0 +1,11 @@
+--- crrcsim-0.9.11/configure.ac
++++ crrcsim-0.9.11/configure.ac
+@@ -229,7 +229,7 @@
+ has_CGAL="yes (found CGAL v3)"
+ fi
+ CGAL_CFLAGS=-frounding-math
+- CGAL_LIBS=-lCGAL
++ CGAL_LIBS="-lCGAL -lgmp"
+ AC_DEFINE([WINDDATA3D], [1], [Import code for wind data, needs CGAL, 0 to disable])
+ else
+ has_CGAL="no (CGAL not found)"
diff --git a/games-simulation/crrcsim/metadata.xml b/games-simulation/crrcsim/metadata.xml
new file mode 100644
index 000000000000..9bc28cff4765
--- /dev/null
+++ b/games-simulation/crrcsim/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">crrcsim</remote-id>
+ </upstream>
+</pkgmetadata>