summaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2019-05-09 14:19:58 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2019-05-09 14:19:58 +0000
commitb50e202542a5f66b0a00ad4ab0740142be4136a8 (patch)
tree85513593df351b21eebb83771f24da6a1a4a74bc /astro
parent- Provide a patch to work with python 3.6 (diff)
- Update Gnuastro to version 0.9
- Debashize and degawkize one script Reported by: portscout
Notes
Notes: svn path=/head/; revision=501098
Diffstat (limited to 'astro')
-rw-r--r--astro/gnuastro/Makefile2
-rw-r--r--astro/gnuastro/distinfo6
-rw-r--r--astro/gnuastro/files/patch-bin_script_sort-by-night.in53
-rw-r--r--astro/gnuastro/pkg-plist7
4 files changed, 62 insertions, 6 deletions
diff --git a/astro/gnuastro/Makefile b/astro/gnuastro/Makefile
index 6bcc7b7bc7fc..f35f7e19eb79 100644
--- a/astro/gnuastro/Makefile
+++ b/astro/gnuastro/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gnuastro
-PORTVERSION= 0.8
+PORTVERSION= 0.9
CATEGORIES= astro
MASTER_SITES= GNU
diff --git a/astro/gnuastro/distinfo b/astro/gnuastro/distinfo
index 31717fd1db06..1cc2d74cf2ce 100644
--- a/astro/gnuastro/distinfo
+++ b/astro/gnuastro/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1553427026
-SHA256 (gnuastro-0.8.tar.gz) = 3a8070f9dd896a463f1d898be82b1fe5abcd39e6407be9162f4dbea7fe9caed4
-SIZE (gnuastro-0.8.tar.gz) = 5140848
+TIMESTAMP = 1555520218
+SHA256 (gnuastro-0.9.tar.gz) = c98dba97f022960d1792ffdba1f3bd411fb2945cd577902f79c73296799b6818
+SIZE (gnuastro-0.9.tar.gz) = 5312132
diff --git a/astro/gnuastro/files/patch-bin_script_sort-by-night.in b/astro/gnuastro/files/patch-bin_script_sort-by-night.in
new file mode 100644
index 000000000000..79f43a00097b
--- /dev/null
+++ b/astro/gnuastro/files/patch-bin_script_sort-by-night.in
@@ -0,0 +1,53 @@
+--- bin/script/sort-by-night.in.orig 2019-04-11 18:40:12 UTC
++++ bin/script/sort-by-night.in
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+
+ # Separate input datasets into multiple nights, run with `--help', or see
+ # description under `print_help' (below) for more.
+@@ -127,7 +127,7 @@ EOF
+
+
+ # Functions to check option values and complain if necessary.
+-function on_off_option_error() {
++on_off_option_error() {
+ if [ "x$2" = x ]; then
+ echo "$scriptname: '$1' doesn't take any values."
+ else
+@@ -136,7 +136,7 @@ function on_off_option_error() {
+ exit 1
+ }
+
+-function check_v() {
++check_v() {
+ if [ x"$2" = x ]; then
+ echo "$scriptname: option '$1' requires an argument."
+ echo "Try '$scriptname --help' for more information."
+@@ -172,7 +172,7 @@ function check_v() {
+ # if a value is appended to the short format it should crash. So in the
+ # second test for these (`-l*') will account for both the case where we
+ # have an equal sign and where we don't.
+-while [[ $# -gt 0 ]]
++while [ $# -gt 0 ]
+ do
+ case "$1" in
+ # Input parameters.
+@@ -242,8 +242,8 @@ fi
+ list=$(for f in $inputs; do
+ astfits $f --datetosec=$key --hdu=$hdu -q \
+ | awk -vh=$hour \
+- '{d=int($1/86400); print "'$f'", $1, \
+- int($1)%86400<(h*3600) ? d-1 : d }'
++ '{d=int($1/86400); print "'$f'", $1; \
++ if (int($1)%86400<(h*3600)) print d-1; else print d }'
+ done)
+
+
+@@ -302,5 +302,5 @@ echo "$unique" | while read l; do
+ done
+
+ # Increment the night-counter.
+- ((counter++))
++ counter=$((counter+1))
+ done
diff --git a/astro/gnuastro/pkg-plist b/astro/gnuastro/pkg-plist
index 940bad135a4d..41a5598acf90 100644
--- a/astro/gnuastro/pkg-plist
+++ b/astro/gnuastro/pkg-plist
@@ -10,6 +10,7 @@ bin/astmkcatalog
bin/astmknoise
bin/astmkprof
bin/astnoisechisel
+bin/astscript-sort-by-night
bin/astsegment
bin/aststatistics
bin/asttable
@@ -64,8 +65,8 @@ include/gnuastro/type.h
include/gnuastro/wcs.h
lib/libgnuastro.a
lib/libgnuastro.so
-lib/libgnuastro.so.6
-lib/libgnuastro.so.6.0.0
+lib/libgnuastro.so.7
+lib/libgnuastro.so.7.0.0
libdata/pkgconfig/gnuastro.pc
man/man1/astarithmetic.1.gz
man/man1/astbuildprog.1.gz
@@ -79,10 +80,12 @@ man/man1/astmkcatalog.1.gz
man/man1/astmknoise.1.gz
man/man1/astmkprof.1.gz
man/man1/astnoisechisel.1.gz
+man/man1/astscript-sort-by-night.1.gz
man/man1/astsegment.1.gz
man/man1/aststatistics.1.gz
man/man1/asttable.1.gz
man/man1/astwarp.1.gz
+share/info/gnuastro-figures/README
share/info/gnuastro-figures/epicycles.eps
share/info/gnuastro-figures/epicycles.png
share/info/gnuastro-figures/epicycles.txt