summaryrefslogtreecommitdiff
path: root/games-util/atlas
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-util/atlas
reinit the tree, so we can have metadata
Diffstat (limited to 'games-util/atlas')
-rw-r--r--games-util/atlas/Manifest6
-rw-r--r--games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild66
-rw-r--r--games-util/atlas/files/atlas-0.5.1_beta_pre20160907-simgear-compilation.patch273
-rw-r--r--games-util/atlas/metadata.xml15
4 files changed, 360 insertions, 0 deletions
diff --git a/games-util/atlas/Manifest b/games-util/atlas/Manifest
new file mode 100644
index 000000000000..57613182d77d
--- /dev/null
+++ b/games-util/atlas/Manifest
@@ -0,0 +1,6 @@
+AUX atlas-0.5.1_beta_pre20160907-simgear-compilation.patch 8125 SHA256 1799fc78c900d65dee5ee7b05e4a87c70cc4e5396a691f82675d86149cc16cfb SHA512 871e576cb95565b658379d76c285067c820f591f97bd1826a11f396742651aa7e783f85b9278039ab4bd2c8e6f9f0268323185a8219408c8f01fa67db65f856f WHIRLPOOL 65dab346ecc9600e3e53848d8b21f43258e71ca54676f0c264791674cc66fd8fa119bd97d4d49e6ce1c615b7b5c3bc187150c0b68c3ac127d0d32a7cb214d17d
+DIST atlas-hgcode-e183e3b3a0412b504edcb3664445b3e04fd484a2.zip 530005 SHA256 216661375ac69ec809da959e525cb6d88ed9bcdde0591e0beaead0a8e4d402e5 SHA512 5f4453c81b01451ce69f4f1340a7c34736be3a9ecf638aa340455d0bb0af7a5d1a7e05d0b51e8b75f5c3acef4787d208ace75d4c686e8be7eafb8f81c71df360 WHIRLPOOL 030f10cd5be4ef59020b7bd0b2078910ef5e9740c05ec9a7b200229c8a50474b40272fde3e004dd2f8af8269ef3aa0c67f8130fb1da69e75463b5c2fcddffeba
+EBUILD atlas-0.5.1_beta_pre20160907.ebuild 1395 SHA256 64f903483f5e3e74fb2aa15592abdb3601c7e1e226a68f7536f00a3ba84880e9 SHA512 c5393fad83170e30b70d7f5f1d37d54192dc1a539b7172c88fa5b472f90300b2dadc166fb642817db110bdee393a109c1dcf796cd3fda947a9c0a852c7e814fd WHIRLPOOL 18a5013fba1e136d361d151b7aeae9086dafe0b3b19d34dd53341938f329a849b45f02f07b0732924c729929cad29bb3d84bdd0e70089fb96c8d9720725aa320
+MISC ChangeLog 3405 SHA256 9b6a0b3c03ebcb971d276f1f04f6a55054991c51a37d0571e891630b624f6218 SHA512 92eb29bb20d5350151fb1656a5ba85b238dda709c4a08c14272110f358383a9cd7013eeda06333b938c6c9a41ab4a759d70d0d0745481ed06a8ed6ad026976ee WHIRLPOOL ede565142c442fdeb8126fad934570cec1ed79909d9aff865d60a0e313fa74ff2a70810927a292a3f67b19e1aa42a8acb9a1dac2a3ac81ee34fecd2b0acc8fc6
+MISC ChangeLog-2015 4504 SHA256 aa352c4954ba51453c1a44b4929191440b7ca5212fc9008c82639f1af225ef1f SHA512 297e18a6c2a58bea5c4e103eeedba48cc49e67a6d27a0bf10a536fd5786e48b24115cddd1809077177f3cd50b5998ec5842d3fa566a5740a40ecb3feb0f3e6bf WHIRLPOOL 94a5e87700c00cbcd959a5503c73e3e2ba4619cf41cb9f19e54939ad866ac088d30207dd775a99b5dcb08ac21fcfb18de200211fdce6949405f63376a080a2b8
+MISC metadata.xml 440 SHA256 c10917d8baaba4cf49f418ba08dfd029ed3570526536268bc0fae0a176a0d7a5 SHA512 761058431181d1ca1367ef68e464e7ee1a19a69576b46768a652be280ce7d161bcdf8f5d8b993a7d8a7ababe4a8e436f11ff3ee4ad1661b50e8a8c6edbf62158 WHIRLPOOL c89b4d0407828a0c61e3c921f752ce1fab89d2326637f8e43e677dc3b63d958da73aa5e8c79b0ff3cd30a25b5cc92f7c9da0a04685ef551b617cd3551d788527
diff --git a/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild b/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
new file mode 100644
index 000000000000..5d915b192896
--- /dev/null
+++ b/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_PN=atlas-hgcode
+MY_PV=e183e3b3a0412b504edcb3664445b3e04fd484a2
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Chart Program to use with Flightgear Flight Simulator"
+HOMEPAGE="http://atlas.sourceforge.net/"
+SRC_URI="https://dev.gentoo.org/~reavertm/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ media-libs/freeglut
+ media-libs/glew:0=
+ media-libs/libpng:0=
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-games/simgear-3.0.0
+ media-libs/plib
+"
+RDEPEND="${COMMON_DEPEND}
+ >=games-simulation/flightgear-3.0.0
+"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}/${P}-simgear-compilation.patch"
+)
+
+src_prepare() {
+ default
+
+ # -Wnarrowing failure, #612986
+ sed -i -e 's:0x:(char)0x:g' src/tiles.h || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --datadir="${EPREFIX}"/usr/share/flightgear \
+ --enable-simgear-shared \
+ --with-fgbase="${EPREFIX}"/usr/share/flightgear
+}
+
+pkg_postinst() {
+ elog "To run Atlas concurrently with FlightGear use the following:"
+ elog "Atlas --path=[path of map images] --udp=[port number]"
+ elog "and start fgfs with the following switch (or in .fgfsrc):"
+ elog "--nmea=socket,out,0.5,[host that you run Atlas on],[port number],udp"
+}
diff --git a/games-util/atlas/files/atlas-0.5.1_beta_pre20160907-simgear-compilation.patch b/games-util/atlas/files/atlas-0.5.1_beta_pre20160907-simgear-compilation.patch
new file mode 100644
index 000000000000..f6e4d58bf3b2
--- /dev/null
+++ b/games-util/atlas/files/atlas-0.5.1_beta_pre20160907-simgear-compilation.patch
@@ -0,0 +1,273 @@
+diff -r e183e3b3a041 configure.ac
+--- a/configure.ac Tue Sep 06 22:12:05 2016 -0700
++++ b/configure.ac Sat Mar 18 05:09:04 2017 +0100
+@@ -10,6 +10,8 @@
+ AC_PREREQ(2.52)
+ AM_INIT_AUTOMAKE
+
++CXXFLAGS="-std=c++11"
++
+ dnl Checks for programs.
+ AC_PROG_MAKE_SET
+ AC_PROG_CC
+diff -r e183e3b3a041 src/FlightTrack.cxx
+--- a/src/FlightTrack.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/FlightTrack.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -81,7 +81,7 @@
+ throw runtime_error("flight file open failure");
+ }
+
+- _file.set(filePath);
++ _file = SGPath(filePath);
+
+ _port = -1;
+ _device = "";
+@@ -101,7 +101,7 @@
+ _input_channel = new SGSocket("", portStr.str(), "udp");
+ _input_channel->open(SG_IO_IN);
+
+- _file.set("");
++ _file = SGPath();
+
+ _port = port;
+ _device = "";
+@@ -123,7 +123,7 @@
+ _input_channel = new SGSerial(device, baudStr.str());
+ _input_channel->open(SG_IO_IN);
+
+- _file.set("");
++ _file = SGPath();
+
+ _port = -1;
+ _device = device;
+@@ -399,11 +399,11 @@
+ return _name.str();
+ }
+
+-void FlightTrack::setFilePath(char *path)
++void FlightTrack::setFilePath(const char *path)
+ {
+ // EYE - check for existing name? overwriting?
+ // EYE - call this (and other accessors) from constructors?
+- _file.set(path);
++ _file = SGPath(path);
+ // We count this as a change.
+ _version++;
+ _versionAtLastSave = 0;
+diff -r e183e3b3a041 src/FlightTrack.hxx
+--- a/src/FlightTrack.hxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/FlightTrack.hxx Sat Mar 18 05:09:04 2017 +0100
+@@ -141,7 +141,7 @@
+ const char *fileName(); // File name
+ const char *filePath(); // Full path, including file
+ const char *niceName(); // Nicely formatted name
+- void setFilePath(char *path);
++ void setFilePath(const char *path);
+ void save();
+ bool modified();
+
+diff -r e183e3b3a041 src/Geographics.cxx
+--- a/src/Geographics.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/Geographics.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -25,6 +25,7 @@
+ #include "Geographics.hxx"
+
+ // C++ system files
++#include <cmath>
+ #include <stdexcept>
+
+ // Our project's include files
+@@ -431,11 +432,11 @@
+ bool AtlasCoord::_geodValid() const
+ {
+ // Note: this has to agree with the value set in invalidate()!
+- return !isnan(_geod.getLatitudeDeg());
++ return !std::isnan(_geod.getLatitudeDeg());
+ }
+
+ bool AtlasCoord::_cartValid() const
+ {
+ // Note: this has to agree with the value set in invalidate()!
+- return !isnan(_cart.x());
++ return !std::isnan(_cart.x());
+ }
+diff -r e183e3b3a041 src/Map.cxx
+--- a/src/Map.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/Map.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -168,13 +168,13 @@
+ bool parse_arg(char* arg)
+ {
+ if (strncmp(arg, "--fg-root=", 10) == 0) {
+- fg_root.set(arg + 10);
++ fg_root = SGPath(arg + 10);
+ } else if (strncmp(arg, "--fg-scenery=", 13) == 0) {
+- scenery.set(arg + 13);
++ scenery = SGPath(arg + 13);
+ } else if (strncmp(arg, "--atlas=", 8) == 0) {
+- atlas.set(arg + 8);
++ atlas = SGPath(arg + 8);
+ } else if (strncmp(arg, "--palette=", 10) == 0) {
+- palette.set(arg + 10);
++ palette = SGPath(arg + 10);
+ } else if (strcmp(arg, "--png") == 0) {
+ imageType = TileMapper::PNG;
+ } else if (strcmp(arg, "--jpeg") == 0) {
+@@ -272,23 +272,14 @@
+ // Read the FG_ROOT and FG_SCENERY environment variables before
+ // processing .atlasmaprc and command args, so that we can
+ // override them if necessary.
+- char *env = getenv("FG_ROOT");
+- if (env == NULL) {
+- // EYE - is it possible for this to not be defined?
+- fg_root.set(FGBASE_DIR);
+- } else {
+- fg_root.set(env);
+- }
+
+- env = getenv("FG_SCENERY");
+- if (env == NULL) {
+- fg_scenery.set(fg_root.str() + "/Scenery");
+- } else {
+- fg_scenery.set(env);
+- }
++ // EYE - is it possible for this to not be defined?
++ fg_root = SGPath::fromEnv("FG_ROOT", SGPath(FGBASE_DIR));
++
++ fg_scenery = SGPath::fromEnv("FG_SCENERY", fg_root.str() + "/Scenery");
+
+ // Set a default palette.
+- palette.set("default.ap");
++ palette = SGPath("default.ap");
+
+ // Process ~/.atlasmaprc.
+ char* homedir = getenv("HOME");
+@@ -332,10 +323,10 @@
+ // 'scenery'. We're done.
+ } else if (!fg_scenery.str().empty()) {
+ // From FG_SCENERY
+- scenery.set(fg_scenery.str());
++ scenery = SGPath(fg_scenery.str());
+ } else if (!fg_root.str().empty()) {
+ // Default: $FG_ROOT/Scenery
+- scenery.set(fg_root.str());
++ scenery = SGPath(fg_root.str());
+ scenery.append("Scenery");
+ } else {
+ fprintf(stderr, "%s: No scenery directory specified.", appName);
+@@ -356,7 +347,7 @@
+ } else if (!fg_root.str().empty()) {
+ // EYE - make default $HOME/Atlas?
+ // Default: $FG_ROOT/Atlas
+- atlas.set(fg_root.str());
++ atlas = SGPath(fg_root.str());
+ atlas.append("Atlas");
+ } else {
+ fprintf(stderr, "%s: No map directory specified.", appName);
+@@ -394,11 +385,11 @@
+ SGPath palettePath;
+ palettePath.append(palette.str());
+ if ((atlasPalette = loadPalette(palettePath.c_str())) == NULL) {
+- palettePath.set(atlas.str());
++ palettePath = SGPath(atlas.str());
+ palettePath.append("Palettes");
+ palettePath.append(palette.str());
+ if ((atlasPalette = loadPalette(palettePath.c_str())) == NULL) {
+- palettePath.set(fg_root.str());
++ palettePath = SGPath(fg_root.str());
+ palettePath.append("Atlas");
+ palettePath.append("Palettes");
+ palettePath.append(palette.str());
+diff -r e183e3b3a041 src/Preferences.cxx
+--- a/src/Preferences.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/Preferences.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -317,7 +317,7 @@
+ {
+ string buf;
+ is >> buf;
+- p.set(buf);
++ p = SGPath(buf);
+
+ return is;
+ }
+@@ -638,7 +638,7 @@
+ // EYE - just get()?
+ SGPath p(fg_root.get(Pref::FACTORY));
+ if (p.isNull()) {
+- p.set(FGBASE_DIR);
++ p = SGPath(FGBASE_DIR);
+ }
+ p.append("Atlas");
+ path.set(p, Pref::FACTORY);
+@@ -770,10 +770,10 @@
+ char* homedir = getenv("HOME");
+ SGPath rcpath;
+ if (homedir != NULL) {
+- rcpath.set(homedir);
++ rcpath = SGPath(homedir);
+ rcpath.append(atlasrc);
+ } else {
+- rcpath.set(atlasrc);
++ rcpath = SGPath(atlasrc);
+ }
+
+ ifstream rc(rcpath.c_str());
+@@ -946,7 +946,7 @@
+ }
+ SGPath p;
+ while (optind < argc) {
+- p.set(argv[optind++]);
++ p = SGPath(argv[optind++]);
+ flightFiles.push_back(p);
+ }
+
+diff -r e183e3b3a041 src/Scenery.cxx
+--- a/src/Scenery.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/Scenery.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -198,7 +198,7 @@
+ data = (GLubyte *)loadJPEG(f.c_str(), &width, &height, &depth,
+ maximumElevation);
+ if (!data) {
+- f.set(f.base());
++ f = SGPath(f.base());
+ f.concat(".png");
+ data = (GLubyte *)loadPNG(f.c_str(), &width, &height, &depth,
+ maximumElevation);
+diff -r e183e3b3a041 src/Subbucket.cxx
+--- a/src/Subbucket.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/Subbucket.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -346,10 +346,10 @@
+ // http://wiki.flightgear.org/index.php/BTG_File_Format
+
+ SGBinObject btg;
+- if (!btg.read_bin(_path.c_str())) {
+- // EYE - throw an error?
+- // EYE - will the cache continue to call load() then?
+- return false;
++ if (!btg.read_bin(SGPath(_path))) {
++ // EYE - throw an error?
++ // EYE - will the cache continue to call load() then?
++ return false;
+ }
+
+ //////////////////////////////////////////////////////////////////////
+diff -r e183e3b3a041 src/Tiles.cxx
+--- a/src/Tiles.cxx Tue Sep 06 22:12:05 2016 -0700
++++ b/src/Tiles.cxx Sat Mar 18 05:09:04 2017 +0100
+@@ -464,7 +464,7 @@
+ const SGPath& TileManager::mapPath(unsigned int level)
+ {
+ static SGPath result;
+- result.set(_maps.str());
++ result = SGPath(_maps.str());
+
+ char str[3];
+ snprintf(str, 3, "%d", level);
+@@ -821,7 +821,7 @@
+ const SGPath& Tile::sceneryDir()
+ {
+ if (_sceneryIndex == TileManager::NaPI) {
+- __sceneryPath = "";
++ __sceneryPath = SGPath();
+ } else {
+ __sceneryPath = _tm->sceneryPaths()[_sceneryIndex];
+ __sceneryPath.append(chunk()->name());
diff --git a/games-util/atlas/metadata.xml b/games-util/atlas/metadata.xml
new file mode 100644
index 000000000000..2b6588a24cac
--- /dev/null
+++ b/games-util/atlas/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>reavertm@gentoo.org</email>
+ <name>Maciej Mrozowski</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">atlas</remote-id>
+ </upstream>
+</pkgmetadata>