pkgsrc/math/p5-Math-Pari/Makefile

37 lines
968 B
Makefile
Raw Normal View History

2016-06-08 21:22:13 +02:00
# $NetBSD: Makefile,v 1.51 2016/06/08 19:24:02 wiz Exp $
DISTNAME= Math-Pari-2.01080900
PKGNAME= p5-${DISTNAME:S/900/9.00/}
2016-06-08 21:22:13 +02:00
PKGREVISION= 1
CATEGORIES+= perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
Update p5-Math-Pari to 2.010808: 2.01080606a cygwin's tar generated 0-permissions for the distribution (no auto-workaround...). Document workarounds for isprime() with version 2.1.7 (in the BUGS section). 2.01080607 Correct the documention about fraction of witnesses from >=0.25 to >=0.75. Define HAS_STAT and HAS_OPENDIR basing on $Config{i_sysstat} and $Config{i_dirent}. Correct spelling errors in POD and comments in Pari.pm (thanks to dsteinbrunner!). On AIX, do merge_822 separately in subdirectories (exceeds command line length otherwise). On >=2.3.0, reset had-newline-on-output to 1 at startup. (Saves one spurious NL) New patch: diff_2.3.5_stderr_clobber New test: 01_no_extra_newlines.t Allow download not only via FTP, but also through HTTP. In presence of PERL5_CPAN_IS_RUNNING, assume that NO ANSWER on prompt is agreement. (It looks like cygwin and MSWin32 automated-testing environment do not have AUTOMATED_TESTING and PERL_MM_USE_DEFAULT set...) Do not auto-download on 64-bit builds of MSWin32. 2.010807 Too long version name was a misprint. Pay attention to PERL_EXTUTILS_AUTOINSTALL when interpreting empty answers to prompt (probably an overkill). (disable this abomination by PERL_MATHPARI_TRUST_MANUAL) (to see why this may be needed: http://www.cpantesters.org/cpan/report/a5d65ec6-6bf3-1014-87a8-67ba45601f20) Report bytes in the answer for prompt. Separate into separate subroutines inspecting versions available for download from the actual download. Change the logic of fallback Net::FTP --> LWP: before, if Net::FTP fails in retrieving the directory listing; now: if this happens, or if it fails to retrieve the file (how can it happen?! see http://www.cpantesters.org/cpan/report/e7f9d5a7-6bfa-1014-9d0f-1948c9c86cae) __wrap_PARI_macro: new function (not exported) parse_as_gp: new function (exported by default) More verbose error message for "Cannot load a Pari macro". 2.010808 A night of sleep fixed problems of parse_of_gp with the operator \ and empty lines. (test suite updated) Actually, mingw was not ready for HAVE_OPENDIR. Store which patches were applied in $dir/.perl.patches. Report which patches were not applied. Export patches_for() from BuildPari. pari_tgz build option was broken (by LWP-after-NFTP support code — which, apparently, did not help with timeouts). Ignore 0-size "downloaded" files.
2015-12-30 00:21:11 +01:00
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://search.cpan.org/dist/Math-Pari/
COMMENT= Perl5 interface to the pari math library
LICENSE= gnu-gpl-v2
Updating math/p5-Math-Pari from 2.010801nb2 to 2.010806.03 pkgsrc changes: - Avoid private compile of pari-library, use pkgsrc provided instead - Add license definition - Disabled support for plotting from perl (missing upstream support) Upstream changes: 2.01080601+ Add 5.005-new keywords to Makefile.PL. Consistently put space after -I in C include paths (needed???). Nicer output when debugging faulty LWP and Net::FTP. Make test engine look in */32/* directory too on 64-bit builds. Remove POD ornaments to make ABSTRACT_FROM work. 2.01080601++ Reword warning about slow intnum: only 75% longer than on PARI/GP. (overhead of the internal sub call in subtest 30 looks like 10x overhead of an empty subroutine call). New advice that upgrade to 2.3.* may fix `overflow' and `highremainder'. Exchange order of initialization of PARI and of `functions_highlevel' with >= 2.3.0; allows installation of highlevel functions (in particular, install() and PostScript printing). New function have_graphics() (not exported). The test engine takes into account have_graphics(). 2.01080602 If AUTOMATED_TESTING, delete (bogus?) environment variable DISPLAY. If AUTOMATED_TESTING, report results of failing tests on STDERR. Make test suite report rough run times for successful subtests. 2.01080603 Fix misprint and change die() to warn() on failure of $ftp->quit... Add some void's in Pari.xs. UNDONE (wrong): Protect init_graph() by NO_GRAPHICS_PARI (in restart code); include rect.h instead... sv2pari(),sv2parimat(): a stupid compiler might guess we don't return value... when patching, use && instead of ; in the shell command New function Math::PariBuild::patch_args() Math::PariBuild::patch_pari() supports option --binary, \ as directory separator in command processor. Make uname parser recognize i686-pc as ix86. Generator of function descriptors could try to regenerate existing file. nok_print() in Testout.pm was defined too late.
2010-02-06 11:52:37 +01:00
#MAKE_PARAMS+= paridir=${WRKDIR}/${PARI_DISTNAME}
2007-11-22 10:25:45 +01:00
# XXX: to use or not to use...
2001-10-03 04:41:41 +02:00
#DEPENDS+= gnuplot-[0-9]*:../../graphics/gnuplot
Updating math/p5-Math-Pari from 2.010801nb2 to 2.010806.03 pkgsrc changes: - Avoid private compile of pari-library, use pkgsrc provided instead - Add license definition - Disabled support for plotting from perl (missing upstream support) Upstream changes: 2.01080601+ Add 5.005-new keywords to Makefile.PL. Consistently put space after -I in C include paths (needed???). Nicer output when debugging faulty LWP and Net::FTP. Make test engine look in */32/* directory too on 64-bit builds. Remove POD ornaments to make ABSTRACT_FROM work. 2.01080601++ Reword warning about slow intnum: only 75% longer than on PARI/GP. (overhead of the internal sub call in subtest 30 looks like 10x overhead of an empty subroutine call). New advice that upgrade to 2.3.* may fix `overflow' and `highremainder'. Exchange order of initialization of PARI and of `functions_highlevel' with >= 2.3.0; allows installation of highlevel functions (in particular, install() and PostScript printing). New function have_graphics() (not exported). The test engine takes into account have_graphics(). 2.01080602 If AUTOMATED_TESTING, delete (bogus?) environment variable DISPLAY. If AUTOMATED_TESTING, report results of failing tests on STDERR. Make test suite report rough run times for successful subtests. 2.01080603 Fix misprint and change die() to warn() on failure of $ftp->quit... Add some void's in Pari.xs. UNDONE (wrong): Protect init_graph() by NO_GRAPHICS_PARI (in restart code); include rect.h instead... sv2pari(),sv2parimat(): a stupid compiler might guess we don't return value... when patching, use && instead of ; in the shell command New function Math::PariBuild::patch_args() Math::PariBuild::patch_pari() supports option --binary, \ as directory separator in command processor. Make uname parser recognize i686-pc as ix86. Generator of function descriptors could try to regenerate existing file. nok_print() in Testout.pm was defined too late.
2010-02-06 11:52:37 +01:00
#GCC_REQD+= 2.95
#MAKE_ENV+= MP_NOGNUPLOT=1
MAKE_PARAMS+= pariprefix=${PREFIX:Q}
PERL5_PACKLIST= auto/Math/Pari/.packlist
Updating math/p5-Math-Pari from 2.010801nb2 to 2.010806.03 pkgsrc changes: - Avoid private compile of pari-library, use pkgsrc provided instead - Add license definition - Disabled support for plotting from perl (missing upstream support) Upstream changes: 2.01080601+ Add 5.005-new keywords to Makefile.PL. Consistently put space after -I in C include paths (needed???). Nicer output when debugging faulty LWP and Net::FTP. Make test engine look in */32/* directory too on 64-bit builds. Remove POD ornaments to make ABSTRACT_FROM work. 2.01080601++ Reword warning about slow intnum: only 75% longer than on PARI/GP. (overhead of the internal sub call in subtest 30 looks like 10x overhead of an empty subroutine call). New advice that upgrade to 2.3.* may fix `overflow' and `highremainder'. Exchange order of initialization of PARI and of `functions_highlevel' with >= 2.3.0; allows installation of highlevel functions (in particular, install() and PostScript printing). New function have_graphics() (not exported). The test engine takes into account have_graphics(). 2.01080602 If AUTOMATED_TESTING, delete (bogus?) environment variable DISPLAY. If AUTOMATED_TESTING, report results of failing tests on STDERR. Make test suite report rough run times for successful subtests. 2.01080603 Fix misprint and change die() to warn() on failure of $ftp->quit... Add some void's in Pari.xs. UNDONE (wrong): Protect init_graph() by NO_GRAPHICS_PARI (in restart code); include rect.h instead... sv2pari(),sv2parimat(): a stupid compiler might guess we don't return value... when patching, use && instead of ; in the shell command New function Math::PariBuild::patch_args() Math::PariBuild::patch_pari() supports option --binary, \ as directory separator in command processor. Make uname parser recognize i686-pc as ix86. Generator of function descriptors could try to regenerate existing file. nok_print() in Testout.pm was defined too late.
2010-02-06 11:52:37 +01:00
post-extract:
${RM} ${WRKSRC}/libPARI/Makefile.PL
BUILDLINK_API_DEPENDS.pari+= pari>=2.3.5nb1<2.4
.include "../../math/pari23/buildlink3.mk"
Updating math/p5-Math-Pari from 2.010801nb2 to 2.010806.03 pkgsrc changes: - Avoid private compile of pari-library, use pkgsrc provided instead - Add license definition - Disabled support for plotting from perl (missing upstream support) Upstream changes: 2.01080601+ Add 5.005-new keywords to Makefile.PL. Consistently put space after -I in C include paths (needed???). Nicer output when debugging faulty LWP and Net::FTP. Make test engine look in */32/* directory too on 64-bit builds. Remove POD ornaments to make ABSTRACT_FROM work. 2.01080601++ Reword warning about slow intnum: only 75% longer than on PARI/GP. (overhead of the internal sub call in subtest 30 looks like 10x overhead of an empty subroutine call). New advice that upgrade to 2.3.* may fix `overflow' and `highremainder'. Exchange order of initialization of PARI and of `functions_highlevel' with >= 2.3.0; allows installation of highlevel functions (in particular, install() and PostScript printing). New function have_graphics() (not exported). The test engine takes into account have_graphics(). 2.01080602 If AUTOMATED_TESTING, delete (bogus?) environment variable DISPLAY. If AUTOMATED_TESTING, report results of failing tests on STDERR. Make test suite report rough run times for successful subtests. 2.01080603 Fix misprint and change die() to warn() on failure of $ftp->quit... Add some void's in Pari.xs. UNDONE (wrong): Protect init_graph() by NO_GRAPHICS_PARI (in restart code); include rect.h instead... sv2pari(),sv2parimat(): a stupid compiler might guess we don't return value... when patching, use && instead of ; in the shell command New function Math::PariBuild::patch_args() Math::PariBuild::patch_pari() supports option --binary, \ as directory separator in command processor. Make uname parser recognize i686-pc as ix86. Generator of function descriptors could try to regenerate existing file. nok_print() in Testout.pm was defined too late.
2010-02-06 11:52:37 +01:00
MAKE_PARAMS+= libpari=${PARI_LIB}
.if !empty(PKG_BUILD_OPTIONS.pari:Mgmp)
MAKE_PARAMS+= addlibs="-lgmp"
.endif
2002-10-27 22:20:37 +01:00
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"