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:
parent
361c2522a3
commit
7db1dd68fc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=515342
1
MOVED
1
MOVED
@ -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
|
||||
|
@ -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
|
||||
|
29
math/octave-forge-fits/Makefile
Normal file
29
math/octave-forge-fits/Makefile
Normal 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>
|
3
math/octave-forge-fits/distinfo
Normal file
3
math/octave-forge-fits/distinfo
Normal 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
|
11
math/octave-forge-fits/files/patch-read__fits__image.cc
Normal file
11
math/octave-forge-fits/files/patch-read__fits__image.cc
Normal 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;
|
11
math/octave-forge-fits/files/patch-save__fits__image.cc
Normal file
11
math/octave-forge-fits/files/patch-save__fits__image.cc
Normal 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;
|
@ -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;
|
12
math/octave-forge-fits/pkg-descr
Normal file
12
math/octave-forge-fits/pkg-descr
Normal 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/
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user