ports/64849: Update port: astro/xtide to 2.6.4
KATO Tsuguru
tkato at prontomail.com
Sun Mar 28 16:10:18 UTC 2004
>Number: 64849
>Category: ports
>Synopsis: Update port: astro/xtide to 2.6.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 28 08:10:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.9-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Update to version 2.6.4
Remove file:
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/astro/xtide/Makefile astro/xtide/Makefile
--- /usr/ports/astro/xtide/Makefile Sat May 3 07:49:57 2003
+++ astro/xtide/Makefile Sun Mar 28 02:21:14 2004
@@ -6,10 +6,10 @@
#
PORTNAME= xtide
-PORTVERSION= 2.5
+PORTVERSION= 2.6.4
CATEGORIES= astro
MASTER_SITES= ftp://bel-marduk.unh.edu/xtide/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} harmonics.txt.gz
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} harmonics-2004-02-08.tcd.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports at FreeBSD.org
@@ -17,8 +17,6 @@
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
-IGNOREFILES= harmonics.txt.gz
-
USE_X_PREFIX= yes
USE_XPM= yes
USE_REINPLACE= yes
@@ -27,13 +25,17 @@
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-MAN1= xtide.1 tide.1
+MAN1= tide.1 xtide.1
+PLIST_FILES= bin/tide bin/xtide %%DATADIR%%/harmonics.tcd
+PLIST_DIRS= %%DATADIR%%
post-extract:
- @${GZCAT} ${DISTDIR}/harmonics.txt.gz > ${WRKSRC}/harmonics
+ @${GZCAT} ${DISTDIR}/harmonics-2004-02-08.tcd.gz \
+ > ${WRKSRC}/harmonics.tcd
post-patch:
@${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/TideContext.cc
+ @${REINPLACE_CMD} -e "s:#include <malloc\.h>::g" ${WRKSRC}/libtcd/tcd.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
@@ -41,6 +43,6 @@
${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/xtide.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/tide.1 ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/harmonics ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/harmonics.tcd ${DATADIR}
.include <bsd.port.mk>
diff -urN /usr/ports/astro/xtide/distinfo astro/xtide/distinfo
--- /usr/ports/astro/xtide/distinfo Wed Jan 28 18:42:28 2004
+++ astro/xtide/distinfo Sun Mar 28 02:03:52 2004
@@ -1,3 +1,4 @@
-MD5 (xtide-2.5.tar.gz) = 8b98e5fb62610ac91d79ab4eb3ec7659
-SIZE (xtide-2.5.tar.gz) = 459985
-MD5 (harmonics.txt.gz) = IGNORE
+MD5 (xtide-2.6.4.tar.gz) = 6b0d5f99586a6356dbfa498629d8f793
+SIZE (xtide-2.6.4.tar.gz) = 519254
+MD5 (harmonics-2004-02-08.tcd.gz) = 0217f409a98c88a70220ac8d9c091ac7
+SIZE (harmonics-2004-02-08.tcd.gz) = 839579
diff -urN /usr/ports/astro/xtide/files/patch-aa astro/xtide/files/patch-aa
--- /usr/ports/astro/xtide/files/patch-aa Mon Jun 26 22:53:05 2000
+++ astro/xtide/files/patch-aa Sun Mar 28 02:09:17 2004
@@ -1,19 +1,31 @@
-*** TideContext.cc.orig Sun Dec 5 15:12:17 1999
---- TideContext.cc Mon Jun 19 22:51:03 2000
+*** TideContext.cc.orig Wed Feb 5 00:53:46 2003
+--- TideContext.cc Sun Mar 28 02:09:06 2004
***************
-*** 53,59 ****
+*** 47,59 ****
+ Dstr hfile_path (getenv ("HFILE_PATH"));
+ if (hfile_path.isNull()) {
+ FILE *configfile;
+! if ((configfile = fopen ("/etc/xtide.conf", "r"))) {
+ hfile_path.getline (configfile);
+ fclose (configfile);
}
}
if (hfile_path.isNull())
-! hfile_path = "harmonics";
+! hfile_path = "harmonics.tcd";
harmonicsPath = new HarmonicsPath (hfile_path);
homedir = getenv ("HOME");
---- 53,59 ----
+--- 47,59 ----
+ Dstr hfile_path (getenv ("HFILE_PATH"));
+ if (hfile_path.isNull()) {
+ FILE *configfile;
+! if ((configfile = fopen ("%%PREFIX%%/etc/xtide.conf", "r"))) {
+ hfile_path.getline (configfile);
+ fclose (configfile);
}
}
if (hfile_path.isNull())
-! hfile_path = "%%PREFIX%%/share/xtide/harmonics";
+! hfile_path = "%%PREFIX%%/share/xtide/harmonics.tcd";
harmonicsPath = new HarmonicsPath (hfile_path);
homedir = getenv ("HOME");
diff -urN /usr/ports/astro/xtide/files/patch-makefile astro/xtide/files/patch-makefile
--- /usr/ports/astro/xtide/files/patch-makefile Sat May 3 07:49:57 2003
+++ astro/xtide/files/patch-makefile Sun Mar 28 02:14:00 2004
@@ -1,13 +1,15 @@
---- Makefile.in.orig Tue Apr 30 00:10:21 2002
-+++ Makefile.in Thu May 1 23:26:55 2003
-@@ -13,8 +13,8 @@
- # Compiler and flags
+--- Makefile.in.orig Thu Nov 21 02:43:25 2002
++++ Makefile.in Sun Mar 28 02:13:53 2004
+@@ -14,9 +14,9 @@
# DEFS should include -Dacceptarg3_t=int (replace with the correct data type)
+ CC = @CC@
CXX = @CXX@
--CXXFLAGS = @extracxxflags@ @DEFS@ -O2 -I at includedir@ -I$(XROOT)/include -I/usr/local/include -I/usr/contrib/include -c
+-CFLAGS = @extracflags@ @DEFS@ -O2 -I at includedir@ -Ilibtcd -c
+-CXXFLAGS = @extracxxflags@ @DEFS@ -O2 -I at includedir@ -Ilibtcd -I$(XROOT)/include -I/usr/local/include -I/usr/contrib/include -c
-LDFLAGS = @extraldflags@ -L at libdir@ -L$(XROOT)/lib -L/usr/local/lib -L/usr/contrib/lib -o
-+CXXFLAGS = @CXXFLAGS@ @extracxxflags@ @DEFS@ -I$(XROOT)/include @CPPFLAGS@ -c
-+LDFLAGS = @LDFLAGS@ @extraldflags@ -L$(XROOT)/lib -o
++CFLAGS = @CFLAGS@ @extracflags@ @DEFS@ -I at includedir@ -Ilibtcd @CPPFLAGS@ -c
++CXXFLAGS = @CXXFLAGS@ @extracxxflags@ @DEFS@ -I at includedir@ -Ilibtcd -I$(XROOT)/include @CPPFLAGS@ -c
++LDFLAGS = @LDFLAGS@ @extraldflags@ -L at libdir@ -L$(XROOT)/lib -o
# Extra switches and libs determined by configure.in
extraswitches=@extraswitches@
diff -urN /usr/ports/astro/xtide/pkg-plist astro/xtide/pkg-plist
--- /usr/ports/astro/xtide/pkg-plist Mon Jun 12 04:26:01 2000
+++ astro/xtide/pkg-plist Thu Jan 1 09:00:00 1970
@@ -1,4 +0,0 @@
-bin/xtide
-bin/tide
-share/xtide/harmonics
- at dirrm share/xtide
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list