1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

- Resurrect math/octave-forge-fits. Add patches so it builds. Bump portrevision.

- Default option FITS to on in math/octave-forge.  Bump portrevision.
This commit is contained in:
Stephen Montgomery-Smith 2019-10-24 14:44:48 +00:00
parent 361c2522a3
commit 7db1dd68fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=515342
9 changed files with 80 additions and 3 deletions

1
MOVED
View File

@ -12921,7 +12921,6 @@ irc/irssi-otr||2019-09-05|Has expired: Broken for more than 6 months
mail/p5-Mail-ClamAV||2019-09-05|Has expired: Broken for more than 6 months
mail/qmail-ldap||2019-09-05|Has expired: Broken for more than 6 months
math/fityk||2019-09-05|Has expired: Broken for more than 6 months
math/octave-forge-fits||2019-09-05|Has expired: Broken for more than 6 months
math/octave-forge-linear-algebra||2019-09-05|Has expired: Broken for more than 6 months
math/octave-forge-mechanics||2019-09-05|Has expired: Broken for more than 6 months
math/octave-forge-parallel||2019-09-05|Has expired: Broken for more than 6 months

View File

@ -410,6 +410,7 @@
SUBDIR += octave-forge-econometrics
SUBDIR += octave-forge-fenv
SUBDIR += octave-forge-financial
SUBDIR += octave-forge-fits
SUBDIR += octave-forge-fpl
SUBDIR += octave-forge-fuzzy-logic-toolkit
SUBDIR += octave-forge-ga

View File

@ -0,0 +1,29 @@
# Created by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
# $FreeBSD$
PORTNAME= octave-forge-fits
PORTVERSION= 1.0.7
PORTREVISION= 12
CATEGORIES= math
MAINTAINER= stephen@FreeBSD.org
COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
LICENSE= GPLv3
LICENSE_FILE= ${WRKDIR}/${OCTSRC}/COPYING
# OCTSRC is the name of the directory of the package.
# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
OCTSRC= ${DISTNAME}
WRKSRC= ${WRKDIR}/${OCTSRC}/src
LIB_DEPENDS+= libcfitsio.so:astro/cfitsio
.include "${.CURDIR}/../../Mk/bsd.octave.mk"
post-build:
${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1498101621
SHA256 (octave-forge/fits-1.0.7.tar.gz) = 95124173f852498cb71acc97712af104027669f60c4f972bbcd8c59b2b2f4b49
SIZE (octave-forge/fits-1.0.7.tar.gz) = 16759

View File

@ -0,0 +1,11 @@
--- read_fits_image.cc.orig 2015-06-11 11:19:38 UTC
+++ read_fits_image.cc
@@ -194,7 +194,7 @@ static bool any_bad_argument( const octave_value_list&
return true;
}
double val = args(1).double_value();
- if( (D_NINT( val ) != val) || (val < 0) )
+ if( (round( val ) != val) || (val < 0) )
{
error( "read_fits_image: second argument must be a non-negative scalar integer value" );
return true;

View File

@ -0,0 +1,11 @@
--- save_fits_image.cc.orig 2015-06-11 11:19:38 UTC
+++ save_fits_image.cc
@@ -81,7 +81,7 @@ DEFUN_DLD( save_fits_image, args, nargout,
else if( args(2).is_scalar_type() )
{
double val = args(2).double_value();
- if( (D_NINT( val ) == val) )
+ if( (round( val ) == val) )
{
if( BYTE_IMG == val )
bitperpixel = BYTE_IMG;

View File

@ -0,0 +1,11 @@
--- save_fits_image_multi_ext.cc.orig 2015-06-11 11:19:38 UTC
+++ save_fits_image_multi_ext.cc
@@ -78,7 +78,7 @@ DEFUN_DLD( save_fits_image_multi_ext, args, nargout,
else if( args(2).is_scalar_type() )
{
double val = args(2).double_value();
- if( (D_NINT( val ) == val) )
+ if( (round( val ) == val) )
{
if( BYTE_IMG == val )
bitperpixel = BYTE_IMG;

View File

@ -0,0 +1,12 @@
The octave-forge package is the result of The GNU Octave Repositry project,
which is intended to be a central location for custom scripts, functions and
extensions for GNU Octave. contains the source for all the functions plus
build and install scripts.
This is fits.
The Octave-FITS package provides functions for reading, and writing FITS
(Flexible Image Transport System) files. The package supports uses the
libcfitsio library.
WWW: http://octave.sourceforge.net/

View File

@ -3,7 +3,7 @@
PORTNAME= octave-forge
PORTVERSION= 20180409
PORTREVISION= 21
PORTREVISION= 22
CATEGORIES= math
MAINTAINER= stephen@FreeBSD.org
@ -28,7 +28,7 @@ OPTIONS_DEFINE= ACTUARIAL BENCHMARK BIM BIOINFO BSLTL CGI \
STRUCT SYMBAND SYMBOLIC TCL_OCTAVE TISEAN TSA VIDEO \
ZENITY ZEROMQ
OPTIONS_DEFAULT= ${OPTIONS_DEFINE:NDATA_SMOOTHING:NFITS:NLINEAR_ALGEBRA:NMECHANICS:NPARALLEL:NSTRINGS:NTISEAN:NVIDEO}
OPTIONS_DEFAULT= ${OPTIONS_DEFINE:NDATA_SMOOTHING:NLINEAR_ALGEBRA:NMECHANICS:NPARALLEL:NSTRINGS:NTISEAN:NVIDEO}
TARBALLS_DIR= ${LOCALBASE}/share/octave/tarballs