pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/xtide update XTide to 2.15.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa01e447bbff
branches:  trunk
changeset: 407828:fa01e447bbff
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Fri Jan 10 17:05:40 2020 +0000

description:
update XTide to 2.15.2

Changes are many, it has been 13 years of development. See

  https://flaterco.com/xtide/changelog.html

for more information

diffstat:

 time/xtide/Makefile                |  44 +++++++++++---------
 time/xtide/PLIST                   |  63 ++++++++++++++++++++++++++++++-
 time/xtide/distinfo                |  20 ++++----
 time/xtide/patches/patch-aa        |  18 --------
 time/xtide/patches/patch-ab        |  19 ---------
 time/xtide/patches/patch-ac        |  15 -------
 time/xtide/patches/patch-ad        |  29 --------------
 time/xtide/patches/patch-ae        |  15 -------
 time/xtide/patches/patch-configure |  78 ++++++++++++++++++++++++++++++++++++++
 9 files changed, 174 insertions(+), 127 deletions(-)

diffs (truncated from 378 to 300 lines):

diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/Makefile
--- a/time/xtide/Makefile       Fri Jan 10 17:00:38 2020 +0000
+++ b/time/xtide/Makefile       Fri Jan 10 17:05:40 2020 +0000
@@ -1,48 +1,52 @@
-# $NetBSD: Makefile,v 1.8 2019/11/02 16:28:42 rillig Exp $
+# $NetBSD: Makefile,v 1.9 2020/01/10 17:05:40 plunky Exp $
 
-DISTNAME=      xtide-2.8.3
-PKGREVISION=   5
-CATEGORIES=    misc x11
-MASTER_SITES=  ftp://ftp.flaterco.com/xtide/
-DISTFILES=     ${DISTNAME}.tar.bz2 ${HARMONICS_FILE}.bz2
+DISTNAME=      xtide-2.15.2
+CATEGORIES=    time misc x11
+MASTER_SITES=  https://flaterco.com/files/xtide/
+DISTFILES=     ${DISTNAME}.tar.bz2 ${HARMONICS_FILE}.bz2 wvs.tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://www.flaterco.com/
+HOMEPAGE=      http://flaterco.com/
 COMMENT=       X11 tide predictor
+LICENSE=       gnu-gpl-v3
 
 GNU_CONFIGURE= yes
-USE_LANGUAGES= c c++03
+USE_LANGUAGES= c c++
+USE_LIBTOOL=   yes
 
 PREV_PKGPATH=  misc/xtide
 
 HARMONICS_FILE=        harmonics-dwf-20060708.tcd
 
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q} X11BASE=${X11BASE:Q}
-EGDIR=                 ${PREFIX}/share/examples/xtide
-CONF_FILES=            ${EGDIR}/xtide.conf ${PKG_SYSCONFDIR}/xtide.conf
+EGDIR=         ${PREFIX}/share/examples/xtide
+CONF_FILES=    ${EGDIR}/xtide.conf ${PKG_SYSCONFDIR}/xtide.conf
 
 LDFLAGS.SunOS+=        -lsocket -lnsl
 
-SUBST_CLASSES+=        xt
-SUBST_STAGE.xt=        pre-configure
-SUBST_FILES.xt=        DOCUMENTATION/*
-SUBST_SED.xt=  -e 's|/usr/local|${PREFIX}|g'
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     libxtide/Global.cc tide.1 xtide.1 xttpd.8
+SUBST_SED.paths=       -e 's,/etc/xtide.conf,${PKG_SYSCONFDIR}/xtide.conf,'
+SUBST_SED.paths+=      -e 's,/usr/local,${PREFIX},'
 
-PLIST_SUBST+=  HARMONICS_FILE=${HARMONICS_FILE:Q}
+INSTALLATION_DIRS=     share/xtide share/xtide/wvs ${EGDIR}
 
-INSTALLATION_DIRS=     share/xtide ${EGDIR}
-INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX} \
-                       mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+PLIST_SUBST+=          HARMONICS_FILE=${HARMONICS_FILE:Q}
+
+DEPENDS+=      font-schumacher-misc>=1.1.2:../../fonts/font-schumacher-misc
 
 post-extract:
        ${ECHO} "${PREFIX}/share/xtide/${HARMONICS_FILE}" > ${WRKDIR}/xtide.conf
+       ${ECHO} "${PREFIX}/share/xtide/wvs" >> ${WRKDIR}/xtide.conf
 
 post-install:
        ${INSTALL_DATA} ${WRKDIR}/xtide.conf ${DESTDIR}${EGDIR}/xtide.conf
        ${INSTALL_DATA} ${WRKDIR}/${HARMONICS_FILE} ${DESTDIR}${PREFIX}/share/xtide
+       ${INSTALL_DATA} ${WRKDIR}/wvs*.dat ${DESTDIR}${PREFIX}/share/xtide/wvs
 
+.include "../../databases/libtcd/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../x11/libXaw/buildlink3.mk"
-.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXaw3d/buildlink3.mk"
 .include "../../x11/libXpm/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/PLIST
--- a/time/xtide/PLIST  Fri Jan 10 17:00:38 2020 +0000
+++ b/time/xtide/PLIST  Fri Jan 10 17:05:40 2020 +0000
@@ -1,9 +1,70 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/14 16:39:24 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/01/10 17:05:40 plunky Exp $
 bin/tide
 bin/xtide
+include/libxtide/Amplitude.hh
+include/libxtide/Angle.hh
+include/libxtide/Banner.hh
+include/libxtide/BetterMap.hh
+include/libxtide/Calendar.hh
+include/libxtide/CalendarFormC.hh
+include/libxtide/CalendarFormH.hh
+include/libxtide/CalendarFormL.hh
+include/libxtide/CalendarFormNotC.hh
+include/libxtide/CalendarFormT.hh
+include/libxtide/ClientSideFont.hh
+include/libxtide/Colors.hh
+include/libxtide/Configurable.hh
+include/libxtide/Constituent.hh
+include/libxtide/ConstituentSet.hh
+include/libxtide/Coordinates.hh
+include/libxtide/CurrentBearing.hh
+include/libxtide/Date.hh
+include/libxtide/Dstr.hh
+include/libxtide/Errors.hh
+include/libxtide/Global.hh
+include/libxtide/Graph.hh
+include/libxtide/HarmonicsFile.hh
+include/libxtide/HarmonicsPath.hh
+include/libxtide/Interval.hh
+include/libxtide/MetaField.hh
+include/libxtide/ModeFormat.hh
+include/libxtide/Nullable.hh
+include/libxtide/NullableInterval.hh
+include/libxtide/NullablePredictionValue.hh
+include/libxtide/Offsets.hh
+include/libxtide/PixelatedGraph.hh
+include/libxtide/PredictionValue.hh
+include/libxtide/RGBGraph.hh
+include/libxtide/SVGGraph.hh
+include/libxtide/SafeVector.hh
+include/libxtide/Settings.hh
+include/libxtide/Skycal.hh
+include/libxtide/Speed.hh
+include/libxtide/Station.hh
+include/libxtide/StationIndex.hh
+include/libxtide/StationRef.hh
+include/libxtide/SubordinateStation.hh
+include/libxtide/TTYGraph.hh
+include/libxtide/TideEvent.hh
+include/libxtide/TideEventsOrganizer.hh
+include/libxtide/Timestamp.hh
+include/libxtide/Units.hh
+include/libxtide/Year.hh
+include/libxtide/autoconf-defines.h
+include/libxtide/config.hh
+include/libxtide/libxtide.hh
+include/libxtide/rgb.hh
+include/libxtide/xmlparser.hh
+lib/libxtide.la
 man/man1/tide.1
 man/man1/xtide.1
 man/man8/xttpd.8
 sbin/xttpd
 share/examples/xtide/xtide.conf
 share/xtide/${HARMONICS_FILE}
+share/xtide/wvs/wvs1.dat
+share/xtide/wvs/wvs12.dat
+share/xtide/wvs/wvs250k.dat
+share/xtide/wvs/wvs3.dat
+share/xtide/wvs/wvs43.dat
+share/xtide/wvs/wvsfull.dat
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/distinfo
--- a/time/xtide/distinfo       Fri Jan 10 17:00:38 2020 +0000
+++ b/time/xtide/distinfo       Fri Jan 10 17:05:40 2020 +0000
@@ -1,15 +1,15 @@
-$NetBSD: distinfo,v 1.4 2015/11/02 23:31:47 agc Exp $
+$NetBSD: distinfo,v 1.5 2020/01/10 17:05:40 plunky Exp $
 
 SHA1 (harmonics-dwf-20060708.tcd.bz2) = 1f54ed856b064e485f7e386eb4a71965e83abfa4
 RMD160 (harmonics-dwf-20060708.tcd.bz2) = 754255ac5f2e36cf2dce587e7f9f7bd0561226d9
 SHA512 (harmonics-dwf-20060708.tcd.bz2) = 38988e5db30d734c6e937077a473a69eb1ef34ab9c5d493f4818f197734104223bdc0f069bd5a919d15c4d2685effc62aa85a439ae1803d7fa502a1a95d07fe5
 Size (harmonics-dwf-20060708.tcd.bz2) = 477682 bytes
-SHA1 (xtide-2.8.3.tar.bz2) = 0abfdf8a695facfeb239af0018e7b3c392592cb4
-RMD160 (xtide-2.8.3.tar.bz2) = 926d116d6d36b3e4ff5e4630e0df394a4f9a0a8b
-SHA512 (xtide-2.8.3.tar.bz2) = d1138890663756c0373f512e580fd09dc874ede96b17c32c1d08236b8ea16cf965e7a8fe7c4c1283c9e2db8e8127d4630a18790be7b1d13c63424a5fdf115e96
-Size (xtide-2.8.3.tar.bz2) = 463382 bytes
-SHA1 (patch-aa) = 8b9059e2870f6b8149e72ca33c452e75650f8230
-SHA1 (patch-ab) = 889c68bce0bd78cfc1b5f7410364e8c39182cfec
-SHA1 (patch-ac) = 5ba4062c3b0d2c05e3d758281bf6099a476d127a
-SHA1 (patch-ad) = cf18fb73096b3cef07fbf501fa1205fe126d1155
-SHA1 (patch-ae) = d93d25768341ac52a7379e4d4043c8f799072329
+SHA1 (wvs.tar.bz2) = 25149a2f8fbbd67e488c2ec3445443819b227925
+RMD160 (wvs.tar.bz2) = 0e83b847efc635f18bd96cc5a29149d5af41dc4d
+SHA512 (wvs.tar.bz2) = 780710449946a9a4118d7bcce4a9a62d253801744ec8d911f50b1e4a1530d1bb994fd92364fcd8fd9592d33053606e18c7b3d17acc22336d8f32bca887a88850
+Size (wvs.tar.bz2) = 37461520 bytes
+SHA1 (xtide-2.15.2.tar.bz2) = 0684d72df6e463822ac36016e248eaea07228340
+RMD160 (xtide-2.15.2.tar.bz2) = 70ce6fb263dcde492ccdf4d7541cf63c13a415cb
+SHA512 (xtide-2.15.2.tar.bz2) = adfcaeb0f87defb5918d80651b90de47f5afd5cf651fcf12fc1d02d970e8ac3fec613445b91464e72806037cfa9e576b880c8d361d3062f1bc3bc2df58da1ba6
+Size (xtide-2.15.2.tar.bz2) = 727048 bytes
+SHA1 (patch-configure) = 5b1ff8e08066e376da1817ad8d7a2358beb2a8a1
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/patches/patch-aa
--- a/time/xtide/patches/patch-aa       Fri Jan 10 17:00:38 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2010/03/14 16:39:24 wiz Exp $
-
---- errors.cc.orig     2004-11-17 17:27:18.000000000 +0100
-+++ errors.cc  2006-11-05 21:59:29.000000000 +0100
-@@ -121,10 +121,10 @@ If the harmonics file has been updated, 
-     break;
-   case NO_HFILE_PATH:
-     errout += "NO_HFILE_PATH\n\
--If /etc/xtide.conf is not provided, you must set the environment variable\n\
-+If "PKG_SYSCONFDIR"/xtide.conf is not provided, you must set the environment variable\n\
- HFILE_PATH to point to your harmonics files.  Example:\n\
--  export HFILE_PATH=/usr/local/share/xtide/harmonics.tcd\n\
--Please refer to the documentation for usage of /etc/xtide.conf.";
-+  export HFILE_PATH="PREFIX"/share/xtide/harmonics.tcd\n\
-+Please refer to the documentation for usage of "PKG_SYSCONFDIR"/xtide.conf.";
-     break;
-   case IMPOSSIBLE_CONVERSION:
-     errout += "IMPOSSIBLE_CONVERSION\n\
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/patches/patch-ab
--- a/time/xtide/patches/patch-ab       Fri Jan 10 17:00:38 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2010/03/14 16:39:24 wiz Exp $
-
---- TideContext.cc.orig        Fri Mar 23 21:52:40 2001
-+++ TideContext.cc     Thu May 31 13:48:53 2001
-@@ -42,12 +42,12 @@
-   colors = in_colors;
-   settings = in_settings;
- 
--  // Get HFILE_PATH from environment or /etc/xtide.conf and create
-+  // Get HFILE_PATH from environment or ${PKG_SYSCONFDIR}/xtide.conf and create
-   // persistent HarmonicsPath
-   Dstr hfile_path (getenv ("HFILE_PATH"));
-   if (hfile_path.isNull()) {
-     FILE *configfile;
--    if ((configfile = fopen ("/etc/xtide.conf", "r"))) {
-+    if ((configfile = fopen (PKG_SYSCONFDIR "/xtide.conf", "r"))) {
-       hfile_path.getline (configfile);
-       fclose (configfile);
-     }
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/patches/patch-ac
--- a/time/xtide/patches/patch-ac       Fri Jan 10 17:00:38 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2014/02/16 15:54:09 wiedi Exp $
-
---- Makefile.in.orig   2006-03-14 00:54:31.000000000 +0000
-+++ Makefile.in
-@@ -11,8 +11,8 @@ mandir=@mandir@
- # DEFS should include -Dacceptarg3_t=int (replace with the correct data type)
- CXX = @CXX@
- CC = @CC@
--CXXFLAGS = @extracxxflags@ @DEFS@ -I@includedir@ -Ilibtcd -I@xroot@/include @normalcxxflags@ -c
--LDFLAGS = @extraldflags@ -L@libdir@ -L@xlibdir@ @normalldflags@ -o
-+CXXFLAGS = @extracxxflags@ @DEFS@ -I@includedir@ -Ilibtcd -I@xroot@/include @normalcxxflags@ -DPREFIX='"${prefix}"' -DPKG_SYSCONFDIR='"@sysconfdir@"' -c
-+LDFLAGS += @extraldflags@ -L@libdir@ -Wl,-R@libdir@ -L@xlibdir@ -Wl,-R@xlibdir@ @normalldflags@ -o
- 
- # Extra switches and libs determined by configure.in
- extraswitches=@extraswitches@
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/patches/patch-ad
--- a/time/xtide/patches/patch-ad       Fri Jan 10 17:00:38 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2010/03/14 16:39:24 wiz Exp $
-
-Kill broken X11 check.
-
---- configure.orig     2006-03-14 01:54:31.000000000 +0100
-+++ configure
-@@ -2596,20 +2596,8 @@ fi
- 
- echo "$as_me:$LINENO: checking location of X11" >&5
- echo $ECHO_N "checking location of X11... $ECHO_C" >&6
--xroot="NOT FOUND"
--for dir in "/usr/X11R6" "/usr/openwin" "/usr/contrib/X11R6" "/usr"; do
--  if test -r "$dir/lib/libXaw.so" -o -r "$dir/lib/libXaw.a" -o -r "$dir/lib/libXaw.dll.a"; then
--    xroot="$dir"
--    xlibdir="$dir/lib"
--    break
--  else
--    if test -r "$dir/lib64/libXaw.so" -o -r "$dir/lib64/libXaw.a" -o -r "$dir/lib64/libXaw.dll.a"; then
--      xroot="$dir"
--      xlibdir="$dir/lib64"
--      break
--    fi
--  fi
--done
-+xroot="$X11BASE"
-+xlibdir="$xroot/lib"
- echo "$as_me:$LINENO: result: $xroot" >&5
- echo "${ECHO_T}$xroot" >&6
- if test "$xroot" = "NOT FOUND"; then
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/patches/patch-ae
--- a/time/xtide/patches/patch-ae       Fri Jan 10 17:00:38 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2011/01/31 20:23:10 wiz Exp $
-
-Fix build with png-1.5.
-
---- RGBGraph.cc.orig   2006-03-14 01:59:34.000000000 +0000
-+++ RGBGraph.cc
-@@ -118,7 +118,7 @@ RGBGraph::writeAsPNG (png_rw_ptr write_d
-    /* Set error handling.  REQUIRED if you aren't supplying your own
-     * error hadnling functions in the png_create_write_struct() call.
-     */
--   if (setjmp(png_ptr->jmpbuf))
-+   if (setjmp(png_jmpbuf(png_ptr)))
-      barf (PNG_WRITE_FAILURE);
- 
-    /* set up the output control if you are using standard C streams */
diff -r 7b08a66ec4a8 -r fa01e447bbff time/xtide/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/xtide/patches/patch-configure        Fri Jan 10 17:05:40 2020 +0000
@@ -0,0 +1,78 @@



Home | Main Index | Thread Index | Old Index