diff options
author | krion <krion@FreeBSD.org> | 2003-07-31 05:04:40 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-07-31 05:04:40 +0800 |
commit | a39faf5be2aad89bd40ed0d5de71f1f00390dca2 (patch) | |
tree | ad251b81567a2823326e9eec195e839e131a862c /astro/libnova | |
parent | 042d908e8093f7fc54ce33c3540b8f27a9bba57a (diff) | |
download | freebsd-ports-graphics-a39faf5be2aad89bd40ed0d5de71f1f00390dca2.tar.gz freebsd-ports-graphics-a39faf5be2aad89bd40ed0d5de71f1f00390dca2.tar.zst freebsd-ports-graphics-a39faf5be2aad89bd40ed0d5de71f1f00390dca2.zip |
Update to 0.8.0
Approved by: fjoe (mentor) (implicit)
Diffstat (limited to 'astro/libnova')
-rw-r--r-- | astro/libnova/Makefile | 2 | ||||
-rw-r--r-- | astro/libnova/distinfo | 2 | ||||
-rw-r--r-- | astro/libnova/files/patch-src::julian_day.c | 18 | ||||
-rw-r--r-- | astro/libnova/pkg-plist | 5 |
4 files changed, 22 insertions, 5 deletions
diff --git a/astro/libnova/Makefile b/astro/libnova/Makefile index 87e135b8422..37979c53e6b 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 513b7ece133..b48aefb97c8 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 00000000000..f3eb5a483a2 --- /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 cd4c3518d77..3c2f53bada6 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 |