summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-geosciences/xtide
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-geosciences/xtide')
-rw-r--r--sci-geosciences/xtide/Manifest2
-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/metadata.xml11
-rw-r--r--sci-geosciences/xtide/xtide-2.13.1.ebuild62
-rw-r--r--sci-geosciences/xtide/xtide-2.13.ebuild49
6 files changed, 233 insertions, 0 deletions
diff --git a/sci-geosciences/xtide/Manifest b/sci-geosciences/xtide/Manifest
new file mode 100644
index 000000000000..00e93bb9a915
--- /dev/null
+++ b/sci-geosciences/xtide/Manifest
@@ -0,0 +1,2 @@
+DIST xtide-2.13.1.tar.bz2 476238 SHA256 f537377223ebc073998bbf2c7c475e57374ee60a638e29d029f84ba01fb6f365 SHA512 90ad5f50c0f234a8993e8fca99865587617996ac422941c3450826a998556b0429ff1c16a9f8ab7a1b4255b938a7e928258fd090094ad3c8556f94a64eb8e54d WHIRLPOOL aed1390712895b866d96923c46281517ee7157e2460defb9049ec484c51e9828af8306b5a42e10d130de83186e4d36b7d9fac0c3e74635958e2245e6c52f6ece
+DIST xtide-2.13.tar.bz2 465679 SHA256 a73c530c83a9346bf85fe9545551eef3fbedfb24adf18f63c9e7dba0388e0d0a SHA512 2324d3f5150a46ea1fd6c2af3379c8ea4f147034f153ac4b0393ef3aaa2178bfdafc01499f27db643b5ec78b4825c99b20957f5e47f6174fe1612480dc79dcd1 WHIRLPOOL af9fe8377fec84a449e06cfac542b2d792ebe1df904e036775b3e5b659e874d5193e0416b061dddcffc2419610d48864207bba27d557fe05fdcd7560c20afb53
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/metadata.xml b/sci-geosciences/xtide/metadata.xml
new file mode 100644
index 000000000000..208d7793f20a
--- /dev/null
+++ b/sci-geosciences/xtide/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='gps'>Use <pkg>sci-geosciences/gpsd</pkg></flag>
+ </use>
+</pkgmetadata>
+
diff --git a/sci-geosciences/xtide/xtide-2.13.1.ebuild b/sci-geosciences/xtide/xtide-2.13.1.ebuild
new file mode 100644
index 000000000000..81f0efb89256
--- /dev/null
+++ b/sci-geosciences/xtide/xtide-2.13.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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}"/${P}-{Werror,gps-switch}.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
+}
diff --git a/sci-geosciences/xtide/xtide-2.13.ebuild b/sci-geosciences/xtide/xtide-2.13.ebuild
new file mode 100644
index 000000000000..da64c47266bb
--- /dev/null
+++ b/sci-geosciences/xtide/xtide-2.13.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit 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=""
+
+DEPEND="media-fonts/font-schumacher-misc
+ media-libs/libpng:0
+ >=sci-geosciences/libtcd-2.2.5_p2
+ x11-libs/libX11
+ >=x11-libs/libXaw-1.0.3
+ >=x11-libs/libXpm-3.5.6
+ x11-libs/libXt"
+RDEPEND="${DEPEND}"
+
+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
+}