aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-07-30 21:04:40 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-07-30 21:04:40 +0000
commit89fe78592d5743c7d4c271d43041a9e3f4b6acd3 (patch)
tree2d90c8541d1ab3f72d30cc362b3ac7cab8c36634
parent1fcf67dd06f41c35036b1b6a8a6acf1895602205 (diff)
downloadports-89fe78592d5743c7d4c271d43041a9e3f4b6acd3.tar.gz
ports-89fe78592d5743c7d4c271d43041a9e3f4b6acd3.zip
Notes
-rw-r--r--astro/libnova/Makefile2
-rw-r--r--astro/libnova/distinfo2
-rw-r--r--astro/libnova/files/patch-src::julian_day.c18
-rw-r--r--astro/libnova/pkg-plist5
4 files changed, 22 insertions, 5 deletions
diff --git a/astro/libnova/Makefile b/astro/libnova/Makefile
index 87e135b84224..37979c53e6bb 100644
--- a/astro/libnova/Makefile
+++ b/astro/libnova/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= libnova
-PORTVERSION= 0.7.0
+PORTVERSION= 0.8.0
CATEGORIES= astro
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/astro/libnova/distinfo b/astro/libnova/distinfo
index 513b7ece1336..b48aefb97c8a 100644
--- a/astro/libnova/distinfo
+++ b/astro/libnova/distinfo
@@ -1 +1 @@
-MD5 (libnova-0.7.0.tar.gz) = 0b09fe41c5c60852568f72ec31b44b4c
+MD5 (libnova-0.8.0.tar.gz) = 3ec01ca9251533639aa6e18da22e6a90
diff --git a/astro/libnova/files/patch-src::julian_day.c b/astro/libnova/files/patch-src::julian_day.c
new file mode 100644
index 000000000000..f3eb5a483a29
--- /dev/null
+++ b/astro/libnova/files/patch-src::julian_day.c
@@ -0,0 +1,18 @@
+--- src/julian_day.c.orig Wed Jul 30 22:53:43 2003
++++ src/julian_day.c Wed Jul 30 22:54:56 2003
+@@ -317,8 +317,14 @@
+ */
+ void get_local_date (double JD, struct ln_date * date)
+ {
++ time_t curtime;
++ struct tm * loctime;
++
++ curtime = time (NULL);
++ loctime = localtime(&curtime);
++
+ /* add timezone to JD */
+- JD += (double)timezone / (24 * 60 * 60);
++ JD += ((double)loctime->tm_gmtoff) / (24.0 * 60.0 * 60.0);
+
+ get_date (JD, date);
+ }
diff --git a/astro/libnova/pkg-plist b/astro/libnova/pkg-plist
index cd4c3518d771..3c2f53bada6d 100644
--- a/astro/libnova/pkg-plist
+++ b/astro/libnova/pkg-plist
@@ -1,7 +1,6 @@
-@comment $FreeBSD$
bin/libnovaconfig
include/libnova.h
-lib/libnova-0.7.so.0
-lib/libnova.so
+lib/libnova-0.8.so.0
lib/libnova.a
+lib/libnova.so
share/aclocal/libnova-check.m4