summaryrefslogtreecommitdiff
path: root/sci-geosciences/xtide
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 /sci-geosciences/xtide
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-geosciences/xtide')
-rw-r--r--sci-geosciences/xtide/Manifest8
-rw-r--r--sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch21
-rw-r--r--sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch88
-rw-r--r--sci-geosciences/xtide/files/xtide-2.13.2-clang.patch33
-rw-r--r--sci-geosciences/xtide/metadata.xml8
-rw-r--r--sci-geosciences/xtide/xtide-2.13.2.ebuild62
6 files changed, 220 insertions, 0 deletions
diff --git a/sci-geosciences/xtide/Manifest b/sci-geosciences/xtide/Manifest
new file mode 100644
index 000000000000..931ec7409019
--- /dev/null
+++ b/sci-geosciences/xtide/Manifest
@@ -0,0 +1,8 @@
+AUX xtide-2.13.1-Werror.patch 611 SHA256 f881186e23447f1b526fc289b9c0eea9e3a16270b86946a8eefefc33d3ba8d93 SHA512 3ce9ea4a32afe30d926be8f3c472745a84d146170e929925855583de2fa7ee10e867a6f6e6ac339bb4e2a66f6ec6a517d75959bac2a2f4d009c305933a513607 WHIRLPOOL 07aabbd8c464f92ae5ed1a586c662979a9ace4aae67a1c15f17a54085fd9957055f5adee9e8176bb90bb2e47f8335d998b168b0b7d8552a167819d0936343099
+AUX xtide-2.13.1-gps-switch.patch 2413 SHA256 4708502dbc80c65b176df76b0aa44d21bdc28e4ca7dd276af7b31d766ae2f2f1 SHA512 0f6dc8399962c76853d75dc00e4929ca7fa9c0f004c47902936b586e231ba8772b333330ae0ec909bb45c13ff393dcf212fabba3b7e52ddaa50e93920a9852f5 WHIRLPOOL c1786937e2f29a814fa8655b9e72de7db0eee5ebdabf551205e0b5cda0082b2a8cb328ef9ee384b66cb6ab1f6377162a0bddae11b2c640e6cb0af411917cb07b
+AUX xtide-2.13.2-clang.patch 913 SHA256 3c1ca79f384c8a8f323901ec4ccecdecc2a659023c670ce867f240b247a5ae99 SHA512 5f9d5ea48706cb42a6fe8be8615b54eb67b7304a933f6e7a577ac3ea162a374221cb325766263664dc74c6bb5d1340f9f3417032a663ae446892c17d5561b88b WHIRLPOOL 730305f40ab408f05be468f87c7915c6109729c6546109f38bf343afc10001a694943788dd702dbfd0e7e9f3d09fbe190aef62660f086a6c055cd2877e4f3e9a
+DIST xtide-2.13.2.tar.bz2 481183 SHA256 fabf6b3097bb345598649ea55d1f2db269cbb651cddd73c60a9768088173d542 SHA512 31b35190932413bf5021c82c640ec3f03424807ffd5295abd8ab9554febbe495896bc0d08f901e70e11b04d92c0d1991b8214dcdd5e95e04173f3e7bbf5faec0 WHIRLPOOL 7c7858918288fa19a8742c7b5876c83f1dea1c2e85c250084061b1e1aead9929bf3b0c8162b6cd26ac4bcbf548e14ab6774edb2bc4762b809374c18e4cd550c3
+EBUILD xtide-2.13.2.ebuild 1190 SHA256 a83ef1e4a7d49ed82d50c1dab1c586ac91f690758e76f9ab33abf2eebf44cc00 SHA512 32e5948a9e7d20633209c3079d13a0fa5bb979f92580b888dc3a5da4cd7104e5d60442b05162273ca4487c910d7f4a84ea422913b80c4385e65f2a077b5eb610 WHIRLPOOL 27d2bde2a36d599bc872c9cfac16b74c0f65458759bbf83731c085ed3a63c78f462394cb4499301bf2f4c053c1f3212fd489215c4258502a73eb960f601df4bc
+MISC ChangeLog 3201 SHA256 261a67756ac9673bd565222299e64897ef3ebdaabda06f2f5fb8015c3024e089 SHA512 056ecc2041bea4bbd3b059876eee1b2d38fa4d9252c0e51d8a6c4fba7a7ef31973b9417fdac6028926f1df9e7f91a432b0c7f16a637aba671d13feecd6b7bdf5 WHIRLPOOL 2d0f1578d2de68028036cc0c5d99de5495ab9dcade363c98c1d8d340422aeeab7d73e1938ab1bf9e10a0ac687e1359f31a15f2ff300bcafdba49910833d5b7c3
+MISC ChangeLog-2015 1060 SHA256 534265334a65e49ee6fadb2afa5a8779c2f58539f002133bf02a96c478214be2 SHA512 2ed5f1f0908ce5b6455c13f9daf71f3218029b67a2012b76062638f7d1a0395fe146f245760be7ebad35bedec202f72895c062aaf899b42fcb9648aaf62caf7c WHIRLPOOL 99a34216f95dc86e0489e68548b52ae28030415512c2c1841db7426357006989e3f7dbf095ab6715ab8b9106c97f8306c159a7aac964829e8bf3ba3336314a71
+MISC metadata.xml 244 SHA256 5b7c4e8c77253436d6bb1866954bc1677beee19afe4f70e233ad7eda21ca972b SHA512 2cf646d59cd730a1d957a67d2a5735dc205f9270342b86b4a201213e3c9455d8a73a640cac5248a4655f93ac2258f8092a3907553818783da3d864e8fe74323a WHIRLPOOL 5ff06d90e618fd2080051de4d9b385e8c6d86143295e13dca5cd8a01441b24b13e5c243177c5afc6451a34bd03292e5994704f0d455c5087176ebcb5d648c855
diff --git a/sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch b/sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch
new file mode 100644
index 000000000000..fcfd147e51bb
--- /dev/null
+++ b/sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch
@@ -0,0 +1,21 @@
+commit 9cf2369051fa887bd5f13bf7df80c51bcf040306
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Jul 13 13:25:42 2013 +0200
+
+ BUILD: remove -Werror
+
+ It's discouraged to add non-specific Werror flags.
+
+diff --git a/configure.ac b/configure.ac
+index b366337..86c7569 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -11,7 +11,7 @@ m4_if(2.65, AC_AUTOCONF_VERSION, [m4_fatal([autoconf version 2.65 is broken and
+ # FIXME: Update version info on each release
+ AC_INIT([XTide], [2.13.1], [dave@flaterco.com])
+
+-AM_INIT_AUTOMAKE([-Wall -Werror])
++AM_INIT_AUTOMAKE([-Wall])
+
+ AC_LANG([C++])
+ AC_PROG_CXX
diff --git a/sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch b/sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch
new file mode 100644
index 000000000000..54c6546fe298
--- /dev/null
+++ b/sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch
@@ -0,0 +1,88 @@
+commit 755677baae16fd8772efd523a25b787ea3fc0772
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Jul 13 13:26:24 2013 +0200
+
+ BUILD: add --with-gps switch
+
+ We don't want automagic gps detection, but give control
+ to the user.
+
+diff --git a/configure.ac b/configure.ac
+index 86c7569..307def4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -156,6 +156,12 @@ if test -z "${SKIP_COMPLICATED}"; then
+ fi
+ CXXFLAGS="${SAVED_CXXFLAGS}"
+
++AC_ARG_WITH([gps],
++ [AS_HELP_STRING([--with-gps],
++ [use libgpsd (default: no)])],
++ [gps=$withval],
++ [gps=no])
++
+ # xttpd configs
+ AC_ARG_WITH([xttpd-user],
+ [AS_HELP_STRING([--with-xttpd-user=user],
+@@ -381,32 +387,35 @@ AC_CHECK_HEADER([Dstr], [AC_CHECK_LIB([dstr], [DstrCompat20070215Check])])
+ AM_CONDITIONAL(NO_LIBDSTR, test "$ac_cv_lib_dstr_DstrCompat20070215Check" != "yes")
+
+ # libgps is optional; use it if you have a compatible version.
+-AC_CHECK_HEADER([gps.h], [AC_CHECK_LIB([gps], [timestamp], [
+- AC_MSG_CHECKING([if libgps is 3.x or newer, compatible version])
+- AC_COMPILE_IFELSE(
+- [AC_LANG_SOURCE([[
+-#include <gps.h>
+-#if (GPSD_API_MAJOR_VERSION < 5)
+-#FAIL
+-#endif
+-int main (int argc, char **argv) {
+- struct gps_data_t gpsdata;
+- gps_open ("127.0.0.1", "2947", &gpsdata);
+- gps_stream (&gpsdata, WATCH_ENABLE|WATCH_NEWSTYLE, NULL);
+- gps_read (&gpsdata);
+- return (gpsdata.fix.mode >= MODE_2D);
+-}
+- ]])],
+- [
+- AC_MSG_RESULT(yes)
+- AC_DEFINE([GPS_GOOD])
+- AC_SUBST([GPSD_LIBS], ["-lgps"])
+- ],
+- [
+- AC_MSG_RESULT(no)
+- ]
+- )
+-])])
++
++AS_IF([test "x$gps" = "xyes"], [
++ AC_CHECK_HEADER([gps.h], [AC_CHECK_LIB([gps], [timestamp], [
++ AC_MSG_CHECKING([if libgps is 3.x or newer, compatible version])
++ AC_COMPILE_IFELSE(
++ [AC_LANG_SOURCE([[
++ #include <gps.h>
++ #if (GPSD_API_MAJOR_VERSION < 5)
++ #FAIL
++ #endif
++ int main (int argc, char **argv) {
++ struct gps_data_t gpsdata;
++ gps_open ("127.0.0.1", "2947", &gpsdata);
++ gps_stream (&gpsdata, WATCH_ENABLE|WATCH_NEWSTYLE, NULL);
++ gps_read (&gpsdata);
++ return (gpsdata.fix.mode >= MODE_2D);
++ }
++ ]])],
++ [
++ AC_MSG_RESULT(yes)
++ AC_DEFINE([GPS_GOOD])
++ AC_SUBST([GPSD_LIBS], ["-lgps"])
++ ],
++ [
++ AC_MSG_RESULT(no)
++ ]
++ )
++ ], [AC_MSG_ERROR([cannot find libgps])])], [AC_MSG_ERROR([cannot find gps.h])])
++ ])
+
+ AC_TYPE_INT8_T
+ AC_TYPE_INT16_T
diff --git a/sci-geosciences/xtide/files/xtide-2.13.2-clang.patch b/sci-geosciences/xtide/files/xtide-2.13.2-clang.patch
new file mode 100644
index 000000000000..090aa6c4f7ab
--- /dev/null
+++ b/sci-geosciences/xtide/files/xtide-2.13.2-clang.patch
@@ -0,0 +1,33 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Mon Aug 17 20:15:03 UTC 2015
+Subject: fix build with clang
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,26 +22,6 @@
+ AC_SUBST([ADDED_CPPFLAGS])
+ AC_SUBST([ADDED_CXXFLAGS])
+
+-# Extended initializer lists were added in 4.4.
+-AC_MSG_CHECKING([if using a version of GCC older than 4.4])
+-AC_PREPROC_IFELSE(
+- [AC_LANG_SOURCE([[
+-#ifdef __GNUC__
+-#if (__GNUC__ * 100 + __GNUC_MINOR__) < 404
+-#FAIL
+-#endif
+-#endif
+- ]])],
+- [
+- AC_MSG_RESULT(no)
+- ],
+- [
+- AC_MSG_RESULT(yes)
+- AC_MSG_NOTICE([if using GCC, version 4.4 or later is required])
+- AC_MSG_ERROR([GCC too old])
+- ]
+-)
+-
+ # /tmp/ccB6kF2d.s: Assembler messages:
+ # /tmp/ccB6kF2d.s:1325: Error: symbol `_ZZN10SafeVectorIdEixEPdS1_jE19__PRETTY_FUNCTION__' is already defined
+ # /tmp/ccB6kF2d.s:1330: Error: symbol `_ZZN10SafeVectorI5AngleEixEPS0_S2_jE19__PRETTY_FUNCTION__' is already defined
diff --git a/sci-geosciences/xtide/metadata.xml b/sci-geosciences/xtide/metadata.xml
new file mode 100644
index 000000000000..e723c4be1d88
--- /dev/null
+++ b/sci-geosciences/xtide/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="gps">Use <pkg>sci-geosciences/gpsd</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/xtide/xtide-2.13.2.ebuild b/sci-geosciences/xtide/xtide-2.13.2.ebuild
new file mode 100644
index 000000000000..16379601e784
--- /dev/null
+++ b/sci-geosciences/xtide/xtide-2.13.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils gnome2-utils
+
+DESCRIPTION="XTide provides tide and current predictions in a wide variety of formats"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gps"
+
+DEPEND="
+ media-libs/libpng:0
+ >=sci-geosciences/libtcd-2.2.5_p2
+ x11-libs/libX11
+ x11-libs/libXaw3d
+ x11-libs/libXpm
+ x11-libs/libXt
+ gps? ( sci-geosciences/gpsd )"
+RDEPEND="${DEPEND}
+ media-fonts/font-schumacher-misc"
+DEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.13.1-{Werror,gps-switch}.patch \
+ "${FILESDIR}"/${P}-clang.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with gps)
+}
+
+src_install() {
+ dobin xtide tide xttpd
+ doman *.[18]
+
+ echo 'HFILE_PATH=/usr/share/harmonics' > 50xtide_harm
+ doenvd 50xtide_harm
+
+ newicon -s 48 iconsrc/icon_48x48_orig.png ${PN}.png
+
+ make_desktop_entry ${PN} 'Tide prediction' ${PN} 'Science'
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}