debian/0000755000000000000000000000000012303657433007174 5ustar debian/pdl.postinst0000644000000000000000000000241612237117055011560 0ustar #! /bin/sh # postinst script for pdl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure|triggered) perl /usr/lib/perl5/PDL/Doc/scantree.pl /usr/lib/perl5/,/usr/share/perl5 /var/lib/pdl/pdldoc.db /var/lib/pdl/Index.pod >/dev/null 2>&1 perl /usr/lib/perl5/PDL/Doc/mkhtmldoc.pl -s "PDL/" /usr/lib/perl5/PDL /var/lib/pdl/html >/dev/null 2>&1 perl /usr/lib/perl5/PDL/Doc/mkhtmldoc.pl -s "PDL/" /usr/share/perl5/PDL /var/lib/pdl/html >/dev/null 2>&1 ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdl.remove0000644000000000000000000000026511720137625011173 0ustar usr/share/man/man3/PDL::BAD_demo.3pm usr/share/man/man3/PDL::BAD2_demo.3pm usr/share/man/man3/PDL::Config.3pm usr/share/man/man3/PDL::Doc::Config.3pm usr/share/man/man3/PDL::PP.3pm debian/copyright0000644000000000000000000000761311757636716011153 0ustar This package was debianized by John Lapeyre lapeyre@physics.arizona.edu on Fri, 16 Jan 1998 02:56:53 -0700. Pdl source and information is available at http://pdl.perl.org/ Following is the PDL copyright: Copyright (c) 1997-2004 by the contributors named in the individual files. All rights reserved. This distribution is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The demonstration image m51.fits is derived from the Hubble Heritage project archival images; its creation was funded in part by a grant from NASA. The image is in the public domain. Inline documentation in any module files (pod format) and documentation files (.pod files) in this distribution are additionally protected by the following statement: Permission is granted for verbatim copying (and formatting) of this documentation as part of the PDL distribution. Permission is granted to freely distribute verbatim copies of this documentation only if the following conditions are met: 1. that the copyright notice remains intact 2. the original authors' names are clearly displayed, 3. that any changes made to the documentation outside the official PDL distribution (as released by the current release manager) are clearly marked as such and 4. That this copyright notice is distributed with the copied version so that it may be easily found. All the files in the distribution should have a copyright notice according to the following template: Copyright (C) 199X Author1, Author2. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution. In addition, the following disclaimers apply: THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2' and the Artistic Licence in `/usr/share/common-licenses/Artistic'. debian/pdl.links0000644000000000000000000000031611720137625011013 0ustar /var/lib/pdl/Index.pod /usr/lib/perl5/PDL/Index.pod /var/lib/pdl/pdldoc.db /usr/lib/perl5/PDL/pdldoc.db /var/lib/pdl/html /usr/share/doc/pdl/html /usr/share/man/man3/PDL.3pm.gz /usr/share/man/man1/pdl.1.gz debian/pdl.lintian-overrides0000644000000000000000000000120512236725404013330 0ustar # HG: the html doc is generated in the postinst maintainer script, so lintian # just does not see it pdl: doc-base-file-references-missing-file pdl:12 /var/lib/pdl/html/Index.html pdl: doc-base-file-references-missing-file pdl:13 /var/lib/pdl/html/*.html # there is one long code line in the manpage, which cannot be broken pdl: manpage-has-errors-from-man usr/share/man/man3/PDL::FFT.3pm.gz 232: warning [p 2, 3.3i]: can't break line # these two images neeed to be in usr/lib pdl: image-file-in-usr-lib usr/lib/perl5/PDL/Transform/Cartography/earth_day.jpg pdl: image-file-in-usr-lib usr/lib/perl5/PDL/Transform/Cartography/earth_night.jpg debian/pdl.doc-base0000644000000000000000000000074311720137625011354 0ustar Document: pdl Title: PDL online manual Author: Various Abstract: Perl Data Language is an extension to perl for numerics. It allows high-speed manipulation of multidimensional data arrays and includes bindings to a lot of external libraries for data processing and representation (plotting). This manual includes both introductory documents and a command reference. Section: Science/Mathematics Format: HTML Index: /var/lib/pdl/html/Index.html Files: /var/lib/pdl/html/*.html debian/changelog0000644000000000000000000006361312303657425011060 0ustar pdl (1:2.007-2build1) trusty; urgency=medium * No-change rebuild for plplot-5.10. -- Matthias Klose Thu, 27 Feb 2014 16:51:21 +0100 pdl (1:2.007-2) unstable; urgency=low * successfully built with gcc 4.8 (closes: #701335, #713346) * add build log evalution helpers to source package: extract test suite output from buildlog, cross-refernce test/subtest failures between architectures * use shell to join stderr into stdout while running test suite * fix Dumper.pm on kfreebsd: 'gnukfreebsd' was assumed as a bsd userland, which disabled/broke calls to 'uuencode' and 'uudecode' * fix debian/filter-test.pl, which cut the test log too early due to a too-unspecific regex * prefer F77Conf over ExtUtils::F77 in t/flexraw_fortran.t in order to prevent test failures on kfreebsd* and hurd* -- Henning Glawe Mon, 11 Nov 2013 13:34:09 +0100 pdl (1:2.007-1) unstable; urgency=low * new upstream release * upstream now builds with gcc 4.8 and perl 5.18 (closes: #721589) * disable PDL::FFTW and PDL::Graphics::PLplot, both are depreciated upstream and are available as separate module distributions * make successful testsuite run mandatory * include /usr/share/perl5/PDL in trigger modify upstream's scantree.pl to accept comma-separated directory lists (closes: #681937) -- Henning Glawe Thu, 07 Nov 2013 09:23:38 +0100 pdl (1:2.4.11-4) unstable; urgency=low * fix pdl versioned dep in dh_pdl -- Henning Glawe Wed, 30 May 2012 16:06:03 +0200 pdl (1:2.4.11-3) unstable; urgency=low * fix the building of pdl wrapper * set -fPIC when compiling fortran extensions -- Henning Glawe Mon, 28 May 2012 20:44:46 +0200 pdl (1:2.4.11-2) unstable; urgency=low * fix calls to croak in Lib/GIS/Proj/Proj.pd and IO/GD/GD.pd (croak was not called with a format string literal, causing -Werror=format-security to abort the compilation) -- Henning Glawe Sun, 27 May 2012 16:01:22 +0200 pdl (1:2.4.11-1) unstable; urgency=low * new upstream release * acknowledge NMU (closes: #670693), thanks to Jari Aalto * switch to 3.0 quilt packaging format, the +dfsg repackaging of upstream source is not needed anymore * provide pdlapi-$version virtual package to keep binary extension modules from breaking silently * introduce dh_pdl providing ${pdl:Depends} for extension packages * use dpkg-buildflags in debian/rules to determine flags * link with --as-needed to avoid spurious dependencies * switch to dh_auto_configure to call EU::MM with the proper flags * read LDFLAGS and FFLAGS in f77conf.pl from env * depend on newer dpkg-dev due to buildflags options -- Henning Glawe Sat, 26 May 2012 10:30:55 +0200 pdl (1:2.4.10+dfsg-1.1) unstable; urgency=low * Non-maintainer upload. * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt". * Update to Standards-Version to 3.9.3 and debhelper to 9. * Add build-arch and build-indep targets; use dh_prep in rules file. * Fix copyright-refers-to-symlink-license (Lintian). * Fix duplicate-in-relation-field libastro-fits-header-perl (Lintian). * Fix unused-override (Lintian). -- Jari Aalto Sat, 28 Apr 2012 08:44:59 +0300 pdl (1:2.4.10+dfsg-1) unstable; urgency=low * new upstream release * sync debian/perldl.conf with perldl.conf -- Henning Glawe Sun, 19 Feb 2012 10:42:56 +0100 pdl (1:2.4.7+dfsg-2) unstable; urgency=low * remove left-over file 'test.log', which slipped into the 1:2.4.7+dfsg-1 debian diff * include upstream release notes in deb * fix Pod of PDL::IO::FastRaw * add lintian override: it is OK to have dpatch dependency with an empty patch list. Usually I am adding fixes as dpatch patches, and it is useless to add/remove the dpatch support in case there are no patches for one particular revision. * add a lintian override for a long code line in a manpage, which cannot be easily broken -- Henning Glawe Sun, 22 Aug 2010 21:19:32 +0200 pdl (1:2.4.7+dfsg-1) unstable; urgency=low * new upstream version - much improved documentation (closes: #132900) * build-depend on netpbm (improves testsuite runs) * build-depend on proj-bin (alternatively with proj) to have 'proj' command available * build-depend and suggest libdevel-repl-perl (for new pdl2 shell) * update debian standards-version to 3.9.1 (no further changes needed) * improve test suite run output in build log -- Henning Glawe Thu, 19 Aug 2010 11:40:22 +0200 pdl (1:2.4.6+dfsg-2) unstable; urgency=low * pgperl is back in debian, name changed to libpgplot-perl; changed the pdl recommends to reflect that (closes: #407463) -- Henning Glawe Tue, 11 May 2010 07:56:50 +0200 pdl (1:2.4.6+dfsg-1) unstable; urgency=low * fix paths in generated HTML docs * add dpkg trigger for documentation index and HTML documentation updates * add ${misc:Depends} to pdl's Depends (recommended by lintian due to debhelper usage) * use DESTDIR instead of PREFIX when installing (recommended by lintian, as this works only due to a debian-specific MakeMake extension) * bump (build-)dependency on libopengl-perl to 0.62 * update to standards-version 3.8.4 * build-depend on libhdf4-alt-dev (closes: #540404) * modify hdf support build scripts to autodetect the 'alt'-flavour * build-depend on libproj-dev (closes: #521822) * move Homepage to Homepage control field and improve description (closes: #574372) -- Henning Glawe Sat, 08 May 2010 17:10:16 +0200 pdl (1:2.4.5+dfsg-2) unstable; urgency=low * switch TriD from X11 to freeglut * patch test suite to give more meaningful results * repair f77config, link against libgfortran.so * run testsuite in verbose mode to get more information * build-depend and suggest ExtUtils::F77 * suggest Astro::FITS::Header -- Henning Glawe Mon, 09 Nov 2009 12:32:34 +0100 pdl (1:2.4.5+dfsg-1) unstable; urgency=low * new upstream release * repacked upstream source without debian dir * build-depend on sharutils to have uuencode/uudecode available for test suite * build-depend on libraries needed for the reworked TriD module * remove maintainer script postrm, it was actually empty * bump standards-version to 3.8.3 * bump debhelper compatibility level to 7 * generate html docs and doc index in /var/lib/pdl * put symlink to files in /var/lib/pdl into /usr/lib/perl5/PDL -- Henning Glawe Fri, 06 Nov 2009 21:45:44 +0000 pdl (1:2.4.3-8) unstable; urgency=low * add proper description to the dpatch pathes (6 lintian warnings) * backport documentation 'apropos' search function from upstream cvs (closes: #499758) * remove empty manpage /usr/share/man/man3/PDL::PP.3pm (lintian warning) * update standarts version to 3.8.0 (lintian warning) * build-depend on x11proto-core-dev instead of x-dev (lintian error) * remove libgl1 from Suggests; there is no 3d support presently * bump readline Suggests: to Recommends:, as users are lost in interactive mode without it * Fix doc-base entry (Science/Mathematics instead of Apps/Math) * suggest doc-base -- Henning Glawe Mon, 22 Sep 2008 09:42:25 +0200 pdl (1:2.4.3-7) unstable; urgency=low * patch upstream IO/Makefile.PL to also install Dicom IO module (closes: #474751) * disable opengl based PDL::Graphics::TriD, it is not working with perl 5.10. this considerably lowers PDL's dependencies, upstream does not yet have a solution for this problem (closes: #495379) * apply upstream patch for the pct() problem (closes: #488092) -- Henning Glawe Sat, 20 Sep 2008 13:44:57 +0200 pdl (1:2.4.3-6) unstable; urgency=low [ Rafael Laboissiere ] * Switch from g77 to gfortran [ Henning Glawe ] * apply Rafael's patch (closes: #468637) -- Henning Glawe Tue, 4 Mar 2008 09:05:08 +0100 pdl (1:2.4.3-4) unstable; urgency=low * clean up leftover files not caught by pdl's distclean target (closes: #424345) * clearly state in PDL::Fit::Gaussian synopsis that PDL has to be loaded first (closes: #379932) * apply patch for uniqvec/qsortvec from upstream BTS (closes: #415426) * encode Latin1 characters in POD documentation as roff * postprocess the "reduce" manpage's NAME section to remove roff macros (closes: #304217) * remove misplaced whitespace characters from changelog * fix the menu entry to reflect current menu policy * add lintian override to ignore the missing html files; they are generated in the postinst script, so lintian can not see them * fix the gsl version check * comment out the dump() calls in t/xvals.t test, as this seems to confuse the test result parser * rebuild for the ldbl128 transition (closes: #430319) -- Henning Glawe Tue, 16 Oct 2007 10:25:18 +0200 pdl (1:2.4.3-3) unstable; urgency=low * add -DGLvoid=void in the cpp call for setting up the OpenGL typemaps in order to make PDL build with newer mesa versions (closes: #390122) -- Henning Glawe Mon, 9 Oct 2006 18:07:41 +0200 pdl (1:2.4.3-2) unstable; urgency=low * upstream: enhance the 64bit-excludelist for the flexraw-test * let the build continue anyways if problems are found in the testsuite, so its output is only informational -- Henning Glawe Mon, 25 Sep 2006 10:43:58 +0200 pdl (1:2.4.3-1) unstable; urgency=low * new upstream * enable gd, proj and HDF support * force-enable WITH_3D, as on debian autobuilders, there is no $DISPLAY and therefore the autodetection does not work -- Henning Glawe Thu, 17 Aug 2006 12:27:03 +0200 pdl (1:2.4.2-6) unstable; urgency=low * Graphics::TriD did not compile anymore. Backport this module from HEAD. * update standarts-version to 3.7.2 * build-depend on libxext-dev, as the TriD GL needs it * incorporate OpenGL build fix from upstream BTS 1505132 -- Henning Glawe Tue, 13 Jun 2006 10:14:39 +0200 pdl (1:2.4.2-5) unstable; urgency=low * add workaround for broken ExtUtils::MakeMaker in perl 5.8.8 (closes: #356975): - as EU::MM generated Makefiles reference PERLRUN instead of PERLRUNINST, explicitly "use blib;" in the BAD{,2}_demo.pm.PL -- Henning Glawe Fri, 2 Jun 2006 10:17:39 +0200 pdl (1:2.4.2-4) unstable; urgency=low * make the xlibs-dev transition for x.org 6.9 (closes: #346926): - build-depending on x-dev should be enough according to http://www.inutil.org/jmm/xlibs/xlibs-split-2005-11-15.tar-bz2 * Suggest libplplot-dev and tell about the PDL::Graphics::PLplot examples it contains in pdl's README.Debian -- Henning Glawe Mon, 9 Jan 2006 09:15:31 +0100 pdl (1:2.4.2-3) unstable; urgency=low * change Build-dependencies to build with xorg (closes: #318258) * add libinline-perl to suggests * add perl readline modules to suggests -- Henning Glawe Thu, 14 Jul 2005 14:49:42 +0000 pdl (1:2.4.2-2) unstable; urgency=low * use dpatch for patch management * split out Makefile clean target patch * split out patch preventing the generation of an empty manpage pdl.1p * get fix for transform.pd from cvs (problem reported on pdl mailing list) * fix a second problem with PDL_Double used not in C code in transform.pd * patch mkhtmldoc.pl to generate relative links instead of absolute ones; absolute pathnames confused dhelp sometimes. * move debhelper template in prerm up, so the doc-base remove call is done before the dynamically generated html files are removed * patch remove obsolete upstream debian files until these changes are checked in. * mention new pdl htmldoc location in README.Debian -- Henning Glawe Sun, 16 Jan 2005 18:42:29 +0100 pdl (1:2.4.2-1) unstable; urgency=low * new upstream release * remove comment about not including m51.fits from debian/copyright * re-import COPYING to debian/copyright * include perldl.conf used in "official" package as debian/perldl.conf * install Known_problems to docdir * fix clean target in upstream makefiles * use upstream makefile distclean target in debian/rules clean target * fix description+synopsis * remove references to obsolete websites from README * rework packaging with debhelper * build html docs in /usr/share/doc/pdl/html/PDL and install doc-base entry for this * remove lintian override, slatec is now built with -fPIC * disable building of pdl.1p from pdl.PL, so the correct pdl.1p from Basic/Pod/Intro.pod is included -- Henning Glawe Mon, 10 Jan 2005 15:59:25 +0100 pdl (1:2.4.1-1) unstable; urgency=low * new upstream release * don't print debug info in preinst (Closes: #69978) * enable bad value support, the impact should be minimal on modern hardware (Closes: #113607) * took plplot from PDL HEAD * clean up doc index and html docs in prerm (Closes: #160034) -- Henning Glawe Thu, 22 Jul 2004 19:16:24 +0200 pdl (1:2.4.0-1) unstable; urgency=low * new maintainer (Closes: #215543) * acknowlege NMU (Closes: #141117, #104630, #140104, #170182) * new upstream release. * enable plplot support (Closes: #196185) * enable gsl support * enable fftw support * swap out m51.fits and COPYING, taken from PDL CVS HEAD (Closes: #223793) -- Henning Glawe Sat, 13 Dec 2003 22:25:41 +0100 pdl (1:2.3.2-0.6) unstable; urgency=low * NMU for xlib6g-dev dependency (Closes: #170182) -- Joshua Kwan Sat, 15 Mar 2003 16:55:39 -0800 pdl (1:2.3.2-0.5) unstable; urgency=low * NMU for perl 5.8. Set build-dependency to perl 5.8. * debian/rules: moved prefix selection to installation time. -- Josselin Mouette Wed, 21 Aug 2002 22:39:24 +0200 pdl (1:2.3.2-0.2) unstable; urgency=low * Non-Maintainer Upload * In postinst, specify path to /usr/bin/perl so that users with a conflicting perl in /usr/local/bin do not get a blow-up. (Closes: #141117) * (Note that the above change was made in debian/rules, NOT debian/postinst, because of the very strange way the original maintainer made the debian/postinst be auto-generated..) -- Ben Gertzfield Mon, 8 Apr 2002 18:47:16 +0900 pdl (1:2.3.2-0.1) unstable; urgency=low * Non-Maintainer Upload * Newest version needed to fix gimp-perl build problems (perl segfaults on alpha otherwise). * Use F77CONF=debian/f77conf.pl, signify hppa needed changes in there instead of hacking Lib/Slatec/Makefile.PL . * Include small patch to change $(INST_LIBDIR)/PDL to $(INST_LIBDIR) in Basic/Gen/Makefile.PL (debian/rules has a very long, strange find command that barfs if there are multiple directories named PDL, and this looks like a typo anyway) * debian/rules was writing to file called "substvers", and was missing a $ anyway when writing Perl depends substvars. Commented out, added a call to dh_perl and tightened Build-Depends on debhelper to (>= 3.0.18). * Add call to dh_clean to clean up debhelper-generated files. -- Ben Gertzfield Tue, 2 Apr 2002 22:07:56 +0900 pdl (1:2.2.1-7.1) unstable; urgency=low * Non-Maintainer Upload * Fix to build on hppa, patch in BTS. Closes: #104630 -- Matt Taggart Wed, 5 Dec 2001 19:42:37 -0700 pdl (1:2.2.1-7) unstable; urgency=low * rebuild with dh_gencontrol instead of dpkg-gencontrol, new perl policy seems to need this. * include lintian override for non-pic code in Slatec.so * include debian/all (build/check script) in source -- Raul Miller Sun, 26 Aug 2001 21:44:51 -0400 pdl (1:2.2.1-6) unstable; urgency=low * Introduced a build-depends on libextutils-f77-perl. [Which breaks cross compilation since I've not released that package yet -- waiting on DFSG copyright, but allows building with slatec.] -- Raul Miller Sat, 9 Jun 2001 22:54:30 -0400 pdl (1:2.2.1-5) unstable; urgency=low * fix postinst.base -- postinst was missing set -e -- Raul Miller Fri, 25 May 2001 11:09:44 -0400 pdl (1:2.2.1-4) unstable; urgency=low * Ok, found out how to resolve $Config{version}. -- Raul Miller Fri, 25 May 2001 01:04:12 -0400 pdl (1:2.2.1-3) unstable; urgency=low * changed INSTALLDIRS=perl to INSTALLDIRS=vendor in debian/rules, for the new perl policy, changed Build-Depends to match. (fixes #95423) * made other changes to debian/rules and debian/control as indicated by this new policy. I hope the OPTIMIZE attribute doesn't hose PDL... * FIXME: I've backed out compliance with 3.4.2 of the new perl policy: "Binary modules must specify a dependency on either perl or perl-base with a minimum version of the perl package used to build the module, and must additionally depend on the expansion of perlapi-$Config{version}." This fails to indicate what context to use for that expansion. In my initial tests, this broke the package, and `apt-cache search perlapi` turns up nothing. -- Raul Miller Thu, 24 May 2001 14:01:33 -0400 pdl (1:2.2.1-2) unstable; urgency=low * replaced mesag-dev with xlibmesa-dev in build depends. (fixes #97508) replaced mesag3 with libgl1 in depends. * Rant: [None of this rant is immediately relevant to this version of PDL, except through examining the implications of bug #97508.] This whole "trash the old i/o-library interface" thing strikes me as *really bad*. Interfaces should be treated as sacred, and maintaining backwards compatibility is important for long term system survivability. Basically, what we're saying here is that these interfaces are immature, and people who built code against the earlier (obsolete) libraries acted prematurely. Either that, or we're saying that distributing binary packages for debian is a mistake on the part of anyone outside of debian. * I'm leaving the Build-Depends for libncurses-dev in the control file, even though it's now a virutal package, to see if I get any bug reports filed against pdl because of it (for the record, I'm using version 5.2.20010318-1 of libncurses5-dev to build this instance). * updated debian/rules (added prerm, minor cleanups) -- Raul Miller Mon, 21 May 2001 10:18:55 -0400 pdl (1:2.2.1-1) unstable; urgency=low * renamed directory from PDL-2.2.1 to pdl-2.2.1, and chmod +x debian/rules (required so that dpkg-buildpackage works). * changed Source-Depends: to Build-Depends: in control file, and restored build dependency for libncurses-dev. * restored debian/postinst.base and debian/prerm from debian 2.2 -- Raul Miller Sun, 20 May 2001 22:14:49 -0400 pdl (1:2.2.1-0) unstable; urgency=low * new upstream release -- PDL Porters Tue, 24 Apr 2001 15:01:23 -0400 pdl (1:2.2-2) unstable; urgency=low * delete bogus debian.orig directory -- Raul Miller Wed, 14 Mar 2001 15:15:59 -0500 pdl (1:2.2-1) unstable; urgency=medium * new upstream release * turned off make test because it has problems: 1. requires an active X session (bad for autobuilders), and 2. requires slatec (or linfit fails). [Can't support slatec until ExtUtils::F77 is a debian package] * bumped up urgency because old pdl doesn't support newest perl, and some people consider that serious. -- Raul Miller Mon, 12 Mar 2001 20:51:12 -0500 pdl (1:2.1.1-1) unstable; urgency=low * reintroduced scantree.pl and mkhtmldoc to postinst (fixes problem reported in private email by Dav Clark and Gordon Haverland -- thanks). * note: this version won't purge cleanly, as it creates a couple files a postinst time which aren't removed even at purge time. * got rid of bashisms from debian/rules * translated /usr/doc to /usr/share/doc and /usr/man to /usr/share/man * never released -- ignore epoch -- Raul Miller Mon, 20 Nov 2000 01:17:43 -0500 pdl (2.1.1-0pre1) unstable; urgency=low * new upstream version * this is a pre-release, among other things, I'm waiting for xlib6g-dev to stabilize. Please email me, personally, with any bug reports. This is not an official release. Changes from the 2.1.1 sources on sourceforge for this prerelease: + chmod +x debian/rules + this entry in debian/changelog + editted copy of perldl.conf as debian/.perldl.conf (no -lMesa*) + HOME=`pwd`/debian added to Makefile.PL part of debian/rules -- Raul Miller Sun, 19 Nov 2000 14:46:31 -0500 pdl (2.005-2) frozen; urgency=medium * Argh, forgot to fix t/gauss.t -- this is required for Bug#55268 to really be fixed. -- Raul Miller Tue, 25 Apr 2000 13:45:28 -0400 pdl (2.005-1) frozen; urgency=medium * new bugfix upstream version * two hacks: (1) disable #ifdef in Basic/Math/mconf.h which includes on our linux alpha, (2) disable test which shows that guassian doesn't work properly on our linux alpha. (Fixes Bug#55268) -- Raul Miller Mon, 17 Apr 2000 08:17:18 -0400 pdl (2.003-1) unstable; urgency=low * new upstream version -- Raul Miller Mon, 1 Nov 1999 07:16:55 -0500 pdl (2.002-3) unstable; urgency=low * new maintainer * recreated source package, unpack in pdl-2.002 instead of PDL-2.002 [this oddity in source package accounts for earlier diff problems]. (Fixes #45771). * do "make test" at build time * removed suggests jpeg-progs, I can't find any such package * removed suggests pgperl, there's a well labeled demo that fails and that should be enough of a suggestion for people who would want this non-free support. If there's demand, and if special compilation support turns out to be needed, I supposed I'll have to create a pdl-nonfree... -- Raul Miller Sun, 10 Oct 1999 19:20:09 -0400 pdl (2.002-2) unstable; urgency=low * added depends on libterm-readkey-perl -- John Lapeyre Sun, 8 Aug 1999 14:25:39 -0700 pdl (2.002-1) unstable; urgency=low * New upstream * Build with new perl 5.005 package * fixes #40433 with workaround for error in Bessel functions in libc6 2.1 * Fixes #36402, docs are now made at build time and are purged with dpkg --purge. Also previous cruft from old versions is purged in preinst. * Fixes #38429, typo in Depends -- John Lapeyre Fri, 25 Jun 1999 17:52:33 -0700 pdl (2.001-1) unstable; urgency=low * New upstream * Add r-pdl code (merging r-pdl package) -- John Lapeyre Wed, 21 Apr 1999 14:47:54 -0700 pdl (2.0-2) unstable; urgency=low * link with glibc 2.1.1 * add menu entry -- John Lapeyre Thu, 25 Mar 1999 01:52:12 -0700 pdl (2.0-1) unstable; urgency=low * new upstream version -- John Lapeyre Mon, 25 Jan 1999 16:59:48 -0700 pdl (1.99988-5) unstable frozen; urgency=low * html docs were put in wrong place. -- John Lapeyre Tue, 8 Dec 1998 03:39:42 -0700 pdl (1.99988-4) unstable frozen; urgency=low * Some package (mesa?) change and broke the build Add X11 include path by hand. -- John Lapeyre Fri, 6 Nov 1998 22:03:17 -0700 pdl (1.99988-3) unstable; urgency=low * link against mesag3. -- John Lapeyre Sun, 25 Oct 1998 01:32:34 -0700 pdl (1.99988-2) unstable; urgency=low * Make rules less i386-centric -- John Lapeyre Tue, 6 Oct 1998 11:44:39 -0700 pdl (1.99988-1) unstable; urgency=low * New minor revision -- John Lapeyre Fri, 2 Oct 1998 00:00:03 -0700 pdl (1.99985-1) unstable; urgency=low * New minor revision -- John Lapeyre Fri, 31 Jul 1998 14:24:09 -0700 pdl (1.9906-1) frozen unstable; urgency=low * New minor revision -- John Lapeyre Fri, 1 May 1998 15:29:16 -0700 pdl (1.9905-1) unstable; urgency=low * New minor revision -- John Lapeyre Fri, 24 Apr 1998 16:17:42 -0700 pdl (1.9904-1) unstable; urgency=low * New minor revision -- John Lapeyre Mon, 13 Apr 1998 13:45:34 -0700 pdl (1.9902-2) unstable; urgency=low * suggests mesag2 not mesa2 -- John Lapeyre Mon, 13 Apr 1998 13:45:34 -0700 pdl (1.9902-1) unstable; urgency=low * Upstream minor revision. * Note doc lookup was still broken in 1.9901 * Changed architecture from i386 to any * Fixed doc lookup, I hope -- John Lapeyre Mon, 23 Mar 1998 15:31:34 -0700 pdl (1.9901-2) unstable; urgency=low * Fixed online doc lookup. -- John Lapeyre Sat, 14 Mar 1998 18:21:28 -0700 pdl (1.9901-1) unstable; urgency=low * New upstream minor version including ... * New Free license. * Bug fixes, doc improvements -- John Lapeyre Mon, 9 Mar 1998 12:53:32 -0700 pdl (1.9900-1) non-free; urgency=low * New upstream release -- John Lapeyre Fri, 27 Feb 1998 16:42:27 -0700 pdl (1.95.07-3) non-free; urgency=low * removed perllocal.pod; only for local build -- John Lapeyre Fri, 23 Jan 1998 22:04:49 -0700 pdl (1.95.07-2) non-free; urgency=low * existed a debstd bug; upgraded debstd and repackaged. -- John Lapeyre Fri, 23 Jan 1998 21:09:05 -0700 pdl (1.95.07-1) non-free; urgency=low * Initial Release. -- John Lapeyre Fri, 16 Jan 1998 19:32:22 -0700 debian/pdl.docs0000644000000000000000000000006212236647156010631 0ustar Bugs.pod Known_problems README TODO Release_Notes debian/filter-test.pl0000755000000000000000000000156712240367637012013 0ustar #!/usr/bin/perl use strict; use warnings; my @cmdline=('make','TEST_VERBOSE=1','LC_ALL=C'); push @cmdline,"LDFLAGS=$ENV{LDFLAGS}" if (defined $ENV{LDFLAGS}); push @cmdline,'test'; push @cmdline,'2>&1'; my $cmdline=join(' ',@cmdline); open(my $fh_test,'-|',$cmdline); my $hot=0; my $last_enter_dir; my $debug = 0; print "BEGIN test verbose\n"; while (<$fh_test>) { if (/^make\[\d+\]: Entering directory/) { $last_enter_dir=$_; $hot=0; next; } if (/\"test_harness\(/) { $hot=2; if ($debug) { print "ADDHOT: " . $last_enter_dir; } else { print $last_enter_dir; } } if ($hot) { $hot-- if ($hot < 2); if ($debug) { print " HOT: " . $_; } else { print; } if (/^Result:\s*(?:PASS|FAIL)/) { $hot--; } } elsif ($debug) { print " COLD: " . $_ unless ($hot); } } print "END test verbose\n"; my $status=close($fh_test); exit($status ? 0 : 1); debian/perldl.conf0000644000000000000000000002021412236647544011333 0ustar #!/usr/bin/perl # -*-perl-*- # PDL Configuration options # You can edit this here or say 'perl Makefile.PL PDLCONF=file' # or use ~/.perldl.conf # Note in general "0" means False, "1" means "True" and "undef" # means "Try if possible (e.g. because the library is found)" # # You can also use a string that matches /^y/i to mean True or # one that matches /^n/i to mean False. It will be automatically # converted to 1 or 0 before being loaded into the Config.pm module. # %PDL_CONFIG = ( # # Version of the perldl.conf file. This should be incremented # in the units for any PDL visible changes to the file (i.e., # the non-comment ones). Other changes may be indicated by # the fractional part but are more for informational purposes. # PDL_CONFIG_VERSION => 0.005, PDL_BUILD_VERSION => undef, # filled in by Makefile.PL PDL_BUILD_DIR => undef, # filled in by Makefile.PL # # Do we generate HTML documentation? This is normally a good idea, # as it's nice to browse -- but many folks don't use it, preferring # the man page and/or help versions of the documentation. Undef or 1 # causes the HTML documentation to be built; 0 turns it off. # HTML_DOCS => 1, # Location of directory for temporary files created during the # build/test process. See the getpdl_config() routine in Makefile.PL # for the choice made if TEMPDIR is left as 'undef': it boils down to # the first value that is defined from # $TEMP, $TMP, or "/tmp" [a TEMP directory for MSWin users] # TEMPDIR => undef, # Decides if the output of attempts to link various function # during 'perl Makefile.PL' will be hidden when building PDL # should only be set to 0 for debugging purposes # see also L HIDE_TRYLINK => 1, # you can set machine specific optimizations here the settings will be # passed to the toplevel Makefile.PL which *should* pass it to any # recursively invoked ones. Add -O0 to turn off compiler # optimization, and -g to produce debugging information that GDB and # other debuggers can use. OPTIMIZE => undef, # '-O0 -g', # Use posix threading to make use of multiprocessor machines # undef -> try if possible # 0 -> don't use # true -> force use WITH_POSIX_THREADS => undef, POSIX_THREADS_INC => undef, # '-I/usr/pthread/include' POSIX_THREADS_LIBS => undef, # '-L/usr/pthread -lpthreadGC2' MALLOCDBG => undef, # { # include => '-I/home/csoelle/tmp', # libs => '-L/home/csoelle/tmp -lmymalloc', # define => << 'EOD', ##define malloc(n) dbgmalloc(n,__FILE__,__LINE__) ##define free(p) dbgfree(p) #EOD # include => '', # libs => '-lefence', # define => '', # }, # Do we want routines to handle bad values? # saying no will make PDL a bit faster # true -> yes # false -> no, undef -> no # # WITH_BADVAL => 0, WITH_BADVAL => 1, # if WITH_BADVAL == 1, do we use NaN/Inf to represent badvalues # (not convinced setting this results in faster code) # BADVAL_USENAN => 0, # BADVAL_USENAN => 1, # The original BADVAL implementation assigned bad-values on pdl-types, # not per pdl, setting the following to one will make it a pdl-variable # THIS IS AN EXPERIMENTAL FEATURE -- BEWARE... BADVAL_PER_PDL => 0, # BADVAL_PER_PDL => 1, # Try to build Graphics/TriD # # true -> force build of PDL::Graphics:::TriD # false -> skip build of PDL::Graphics:::TriD # undef -> let PDL build decide based on dependencies present # WITH_3D => undef, # Build Graphics/TriD using Perl OpenGL # # true -> use new Perl OpenGL bindings # false -> use legacy, deprecated X11 only bindings # undef -> let PDL build decide (check if Perl OpenGL is present) # USE_POGL => undef, # USE_POGL => 0, # POGL_VERSION => 0.6702, # minimum compatible OpenGL version # POGL_WINDOW_TYPE => 'x11', # use X11+GLX for windows POGL_WINDOW_TYPE => 'glut', # use GLUT for windows ## Whether or not to build the PLplot interface module # # default settings (let PDL build decide whether to build PLPLOT) # WITH_PLPLOT => 0, # Leave it up to PDL to decide WHERE_PLPLOT_LIBS => undef, # let PDL search for plplot installation WHERE_PLPLOT_INCLUDE => undef, # let PDL search for plplot installation # Example manual settings: # WITH_PLPLOT => 1, # Build PLPLOT interface # WHERE_PLPLOT_LIBS => '/usr/local/plplot/lib', # PLplot lib dir # WHERE_PLPLOT_INCLUDE => '/usr/local/plplot/include', # PLplot include dir # Whether or not to build the PDL::Slatec module # false -> don't use # true -> force use WITH_SLATEC => undef, # Leave it up to PDL to decide # Whether or not to build the PDL::Minuit module # false -> don't use # true -> force use WITH_MINUIT => undef, # Leave it up to PDL to decide # If MINUIT_LIB is undef a standalone version of Minuit will be compiled # and PDL::Minuit will link to this library (fortran code can be found # at Lib/Minuit/minuitlib) # If you want to try to link directly to the Minuit present # in the CERN library libpacklib.a, include the full path to the library # here, e.g., MINUIT_LIB => '/usr/local/lib/libpacklib.a', MINUIT_LIB => undef, # Whether or not to build the PDL::GSL module # false -> don't use # true -> force use WITH_GSL => undef, # Leave it up to PDL to decide # Link flags for the GSL libs, e.g. '-L/usr/local/lib -lgsl -lm' GSL_LIBS => undef, # use gsl-config # Location to find GSL includes: GSL_INC => undef, # use gsl-config # Whether or not to build the PDL::FFTW module # NOTE: PDL::FFTW has been moved to its own CPAN # distribution and has been deprecated. # Please install from CPAN. WITH_FFTW => 0, # Don't build PDL::FFTW FFTW_LIBS => undef, # [ '/lib','/usr/lib','/usr/local/lib'], FFTW_INC => undef, # ['/usr/include/','/usr/local/include'], FFTW_TYPE => 'double', # Whether or not to build the PDL::IO::HDF module # false -> don't use # true -> force use WITH_HDF => undef, # Leave it up to PDL to decide HDF_LIBS => undef, HDF_INC => ['/usr/include/hdf'], # Whether or not to build the PDL::IO::GD module # false -> don't use # true -> force use WITH_GD => undef, # Leave it up to PDL to decide GD_LIBS => undef, GD_INC => undef, # Whether or not to build the PDL::GIS::Proj module # false -> don't use # true -> force use # WITH_PROJ => undef, # Leave it up to PDL to decide PROJ_LIBS => undef, PROJ_INC => undef, # N.B. These are array ref values and *not* strings # # PROJ_LIBS => [ 'C:/_32/msys/1.0/local/lib'], # PROJ_INC => [ 'C:/_32/msys/1.0/local/include'], # Do we build PDL::IO::Browser? # default -> do not build # WITH_IO_BROWSER => 0, # Quiet Astro::FITS::Header warnings for PDL build process by default # Eventually would be better to set undef by default, and have the # Makefile.PL change the value after it has been found missing once. # TBD after PDL 2.4.3 release... # FITS_LEGACY => 1, # Whether or not to enable the new Devel::REPL based PDL shell # Given the large numbers of dependencies for Devel::REPL, we # don't want to have that as a required dependency for PDL. # Still, if it is there already, we could use it... # # false -> don't install pdl2 support # true -> force pdl2 install (default) WITH_DEVEL_REPL => 1, # Set this for official CPAN releases of PDL since these # tests will always fail until they are fixed. It can also # be set from the value of the environment variable of the # same name. # SKIP_KNOWN_PROBLEMS => 0, # # Set this to make the pdldoc command ignore PDL::AutoLoader # routines (*.pdl files in your @PDLLIB path). While most # users will want the new behavior, the performance impact # could be noticable. Setting this to 1 will turn off the # new feature. # PDLDOC_IGNORE_AUTOLOADER => 0, ); 1; # Return OK status on 'require' debian/pdl.menu0000644000000000000000000000017011720137625010635 0ustar ?package(pdl):\ needs="text"\ section="Applications/Science/Mathematics"\ title="PerlDl"\ command="/usr/bin/perldl" debian/write_config_debian.pl0000755000000000000000000000051711757711276013530 0ustar #!/usr/bin/perl use strict; use warnings; use PDL; use Inline qw{Pdlpp}; my $v = pdl(1)->pdl_core_version()->at(0); print <<"EOPM"; package PDL::Config::Debian; our \$pdl_core_version = $v; 1; EOPM __DATA__ __Pdlpp__ pp_def('pdl_core_version', Pars => 'dummy(); int [o] pcv();', Code => '$pcv() = PDL_CORE_VERSION;'); pp_done; debian/pdl.dirs0000644000000000000000000000010412236771547010641 0ustar usr/bin usr/share/lintian/overrides usr/share/perl5/PDL var/lib/pdl debian/compat0000644000000000000000000000000211757671251010400 0ustar 9 debian/pdl.triggers0000644000000000000000000000007212236763620011523 0ustar interest /usr/lib/perl5/PDL interest /usr/share/perl5/PDL debian/patches/0000755000000000000000000000000012240422142010606 5ustar debian/patches/fix_manifest.patch0000644000000000000000000000070612237225671014324 0ustar --- a/MANIFEST +++ b/MANIFEST @@ -650,8 +650,6 @@ debian/copyright debian/dh_pdl debian/f77conf.pl -debian/fix_man_encoding.sed -debian/fix_man_name.sed debian/patches/series debian/pdl.dirs debian/pdl.doc-base --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -267,3 +267,10 @@ ~$ ^work ^pdl.*-log.txt$ +^\.pc/.*$ +^debian/pdl/.*$ +^debian/dh_pdl\.1$ +^debian/files$ +^debian/pdl\.debhelper\.log$ +^debian/pdl\..*\.debhelper$ +^debian/pdl\.substvars$ debian/patches/testsuite_fixes.patch0000644000000000000000000000424012240422142015056 0ustar --- a/t/config.t +++ b/t/config.t @@ -19,7 +19,7 @@ local $TODO = 'Known_problem sf.net bug #3030998' if ($PDL::Config{SKIP_KNOWN_PROBLEMS} or exists $ENV{SKIP_KNOWN_PROBLEMS} ); # generate list of WITH_* keys from PDL::Config - my @keys = grep { /^WITH_/ } keys %PDL::Config; + my @keys = sort grep { /^WITH_/ } keys %PDL::Config; foreach my $key ( @keys ) { # there should be no undef values ok( defined $PDL::Config{$key} , "check $key in Config.pm" ); --- a/t/flexraw_fortran.t +++ b/t/flexraw_fortran.t @@ -28,6 +28,8 @@ my $exec = $^O =~ /win32/i ? '.exe' : ''; my $null = $^O =~ /win32/i ? ' 2>nul' : ' 2>/dev/null'; +my $F77; +my $F77flags; BEGIN{ @@ -44,13 +46,30 @@ } elsif ($datalen > 70) { plan skip_all => "TEMPDIR path too long for f77 ($datalen chars), skipping all tests"; } else { - eval " use ExtUtils::F77; "; - if ( $@ ) { - plan skip_all => "Skip all tests as ExtUtils::F77 not found"; - exit 0; + if (exists $PDL::Config{F77CONF} && -f $PDL::Config{F77CONF}) { + print "loading F77 configuration from $PDL::Config{F77CONF}...\n"; + eval "require '$PDL::Config{F77CONF}'"; + if ($@ ne "") { + plan skip_all => "F77CONF file not loaded"; + } + $F77 = F77Conf::compiler(); + $F77flags = F77Conf::cflags(); } else { - plan tests => $ntests; + eval " use ExtUtils::F77; "; + if ( $@ ) { + plan skip_all => "Skip all tests as ExtUtils::F77 not found"; + exit 0; + } + if ($ExtUtils::F77::VERSION > 1.03) { + $F77 = ExtUtils::F77::compiler(); + $F77flags = ExtUtils::F77::cflags(); + } else { + $F77 = 'f77'; + $F77flags = ''; + } + } + plan tests => $ntests; } # Configuration @@ -66,19 +85,6 @@ } -# use ExtUtils::F77; - -my $F77; -my $F77flags; - -if ($ExtUtils::F77::VERSION > 1.03) { - $F77 = ExtUtils::F77::compiler(); - $F77flags = ExtUtils::F77::cflags(); -} else { - $F77 = 'f77'; - $F77flags = ''; -} - sub tapprox { my ($a,$b) = @_; my $c = abs($a->clump(-1)-$b->clump(-1)); debian/patches/callext_compile_options.patch0000644000000000000000000000100412236766227016565 0ustar --- a/t/callext.t +++ b/t/callext.t @@ -34,8 +34,12 @@ my $out = File::Spec->catfile('t', 'callext.'.$Config{dlext}); # Compile the code - -callext_cc($cfile, "-I$inc", '', $out); +my $cflags="-I$inc"; +$cflags.=" $ENV{CPPFLAGS}" if (defined $ENV{CPPFLAGS}); +$cflags.=" $ENV{CFLAGS}" if (defined $ENV{CFLAGS}); +my $ldflags=''; +$ldflags.=" $ENV{LDFLAGS}" if (defined $ENV{LDFLAGS}); +callext_cc($cfile, $cflags, $ldflags, $out); my $y = sequence(5,4)+2; # Create PDL my $x = $y*20+100; # Another debian/patches/doc_dirlist.patch0000644000000000000000000000265312237117355014151 0ustar --- a/Doc/scantree.pl +++ b/Doc/scantree.pl @@ -8,39 +8,42 @@ $opt_v = 0; getopts('v'); -$dir = shift @ARGV; +$dirarg = shift @ARGV; $outdb = shift @ARGV; $outindex = shift @ARGV; -unless (defined $dir) { - ($dir = $INC{'PDL.pm'}) =~ s/PDL\.pm$//i; +unless (defined $dirarg) { + ($dirarg = $INC{'PDL.pm'}) =~ s/PDL\.pm$//i; umask 0022; - print "DIR = $dir\n"; + print "DIR = $dirarg\n"; } +my @dirs = split /,/,$dirarg; unless (defined $outdb) { - $outdb = "$dir/PDL/pdldoc.db"; + $outdb = "$dirs[0]/PDL/pdldoc.db"; print "DB = $outdb\n"; } $currdir = getcwd; -chdir $dir or die "can't change to $dir"; -$dir = getcwd; - unlink $outdb if -e $outdb; $onldc = new PDL::Doc(); $onldc->outfile($outdb); -$onldc->scantree($dir."/PDL",$opt_v); -$onldc->scan($dir."/PDL.pm",$opt_v); -chdir $currdir; +foreach $dir (@dirs) { + chdir $dir or die "can't change to $dir"; + $dir = getcwd; + + $onldc->scantree($dir."/PDL",$opt_v); + $onldc->scan($dir."/PDL.pm",$opt_v) if (-s $dir."/PDL.pm"); + chdir $currdir; +} print STDERR "saving...\n"; $onldc->savedb(); @mods = $onldc->search('module:',['Ref'],1); @mans = $onldc->search('manual:',['Ref'],1); @scripts = $onldc->search('script:',['Ref'],1); -$outdir = "$dir/PDL"; +$outdir = "$dirs[0]/PDL"; # ($outdir = $INC{'PDL.pm'}) =~ s/\.pm$//i; $outindex="$outdir/Index.pod" unless (defined $outindex); unlink $outindex if -e $outindex; # Handle read only file debian/patches/build-pdl-wrapper-via-makefile.patch0000644000000000000000000000260012237216367017527 0ustar --- a/Makefile.PL +++ b/Makefile.PL @@ -508,7 +508,7 @@ my $cleanup = 'pdl perldl pdldoc pdldoc.db pdldoc.pod perldl.pod '; if($^O !~ /mswin32/i) { - $cleanup = 'pdl.c ' . $cleanup; + $cleanup = 'pdl.c pdl.o ' . $cleanup; } @@ -709,6 +709,21 @@ if($Config{make} =~ /\bdmake/i) { foreach $target (@$list) { + if ($target eq 'pdl') { + next if ($^O =~ /mswin32/i); + push @m, " +all :: $target + \$(NOECHO) \$(NOOP) + +$target: $target.o + mkdir -p blib/bin + \$(LD) -o blib/bin/$target $target.o + +$target.c: $plfile + \$(PERLRUNINST) $plfile $target +"; + next; + } push @m, " all :: $target \$(NOECHO) \$(NOOP) @@ -726,7 +741,9 @@ # why it still doesn't. (CED 2012-11-12) my $compilestr; if($plfile eq "pdl.PL" && $Config{make} !~ /\bnmake/i) { - $compilestr = "\n\t\$(CC) -o pdl pdl.c\n"; + $compilestr = "\n\t\$(CC) \$(CFLAGS) \$(CPPFLAGS) -c -o pdl.o pdl.c\n"; + $compilestr.= "\t\$(LD) -o pdl pdl.o\n"; + $compilestr.= "\tcp -a pdl blib/bin\n"; } else { $compilestr = ""; } --- a/pdl.PL +++ b/pdl.PL @@ -84,11 +84,4 @@ nosubs ; -use Config; -my $dir = 'blib/bin'; -#manually create directory. Older versions of EU::MM (at least as late -#as 6.17 which ships with perl 5.8.6) don't automatically create it. -mkdir $dir unless -e $dir && -d $dir; -`$Config{cc} -o $dir/pdl pdl.c`; - exit 0; debian/patches/dumper_gnukfreebsd.patch0000644000000000000000000000144712240202354015511 0ustar --- a/IO/Dumper.pm +++ b/IO/Dumper.pm @@ -118,7 +118,7 @@ # make sure not to use uuencode/uudecode # on MSWin32 systems (it doesn't work) # Force Convert::UU for BSD systems to see if that fixes uudecode problem - if ($^O !~ /(MSWin32|bsd)$/) { + if (($^O !~ /(MSWin32|bsd)$/) or ($^O eq 'gnukfreebsd')) { $PDL::IO::Dumper::uudecode_ok = &$checkprog('uudecode') and &$checkprog('uuencode') and ($^O !~ /MSWin32/); } @@ -424,7 +424,7 @@ # so we go this way for now as it is less-likely to break things # my $uudecode_string = "|uudecode"; -$uudecode_string .= " -s" if $^O =~ m/darwin|((free|open)bsd)|dragonfly/; +$uudecode_string .= " -s" if (($^O =~ m/darwin|((free|open)bsd)|dragonfly/) and ($^O ne 'gnukfreebsd')); sub PDL::IO::Dumper::uudecode_PDL { my $lines = shift; debian/patches/series0000644000000000000000000000026112240202122012014 0ustar build-pdl-wrapper-via-makefile.patch fix_pod2man_errors.patch callext_compile_options.patch doc_dirlist.patch dumper_gnukfreebsd.patch fix_manifest.patch testsuite_fixes.patch debian/patches/fix_pod2man_errors.patch0000644000000000000000000000545112236723046015452 0ustar --- a/Basic/Pod/PP.pod +++ b/Basic/Pod/PP.pod @@ -347,7 +347,7 @@ For the above situation, my compiler tells me: ... - test.pd:15: error: ‘rmp’ undeclared (first use in this function) + test.pd:15: error: 'rmp' undeclared (first use in this function) ... In my example script (called test.pd), line 15 is exactly the line at which --- a/Basic/Complex/complex.pd +++ b/Basic/Complex/complex.pd @@ -20,6 +20,8 @@ pp_addpm {At => Top}, <<'EOD'; +=encoding utf8 + =head1 NAME PDL::Complex - handle complex numbers @@ -72,7 +74,7 @@ =item * -This module has received some testing by Vanuxem Grégory +This module has received some testing by Vanuxem Grégory (g.vanuxem at wanadoo dot fr). Please report any other errors you come across! --- a/Lib/Func.pm +++ b/Lib/Func.pm @@ -1,3 +1,4 @@ +=encoding utf-8 =head1 NAME @@ -931,7 +932,7 @@ to form C. Comments greatly appreciated on the current implementation, as it is not too sensible. -Thanks to Robin Williams, Halldór Olafsson, and Vince McIntyre. +Thanks to Robin Williams, Halldór Olafsson, and Vince McIntyre. =head1 AUTHOR --- a/Basic/Slices/slices.pd +++ b/Basic/Slices/slices.pd @@ -169,7 +169,7 @@ dimension and C<$ind> has more than 0 dimensions, they must agree in a threading sense. -C uses a single active dim in C<$ind> to produce a list of +=item C uses a single active dim in C<$ind> to produce a list of indexed values in the 0 dim of the output - it is useful for collapsing C<$source> by indexing with a single row of values long C<$source>'s 0 dimension. The output has the same number of dims as @@ -178,11 +178,13 @@ C<$ind> and $ both have more than 1 dim, then all dims higher than 0 must agree in a threading sense. -C works like C but uses separate piddles for X and Y +=item C works like C but uses separate piddles for X and Y coordinates. For more general N-dimensional indexing, see the L syntax or L (in particular C, C, and C). +=back + These functions are two-way, i.e. after $c = $a->index(pdl[0,5,8]); --- a/Lib/Transform/Cartography/Cartography.pm +++ b/Lib/Transform/Cartography/Cartography.pm @@ -323,7 +323,7 @@ =item dup - if true, the meridian at the far boundary is duplicated. -==back +=back =cut --- a/Basic/Ufunc/ufunc.pd +++ b/Basic/Ufunc/ufunc.pd @@ -801,7 +801,7 @@ percentile must be between 0.0 and 1.0. When the specified percentile falls between two values, the nearest data value is the result. The algorithm implemented is from the textbook version described -first at L< http://en.wikipedia.org/wiki/Percentile>. +first at L. By using L etc. it is possible to use I dimension. debian/pdl.install0000644000000000000000000000014511757721327011351 0ustar Doc/scantree.pl usr/lib/perl5/PDL/Doc/ Doc/mkhtmldoc.pl usr/lib/perl5/PDL/Doc/ debian/dh_pdl usr/bin debian/README.Debian0000644000000000000000000000112711720137625011234 0ustar pdl for Debian -------------- pdl or perlDL pdl is the perl data language. Try "man PDL", or , for more man pages, "man -k PDL". Html documents are found in /usr/share/doc/pdl/html/. For some examples on how to use PDL::Graphics::PLplot for plotting, install libplplot-dev and take a look at the perl/pdl examples in /usr/share/doc/libplplot-dev/examples/perl More information can be found at: http://pdl.perl.org/ -- John Lapeyre , Fri, 16 Jan 1998 02:56:53 -0700 -- Henning Glawe , Sun, 9 Jan 2005 15:34:57 +0100 debian/f77conf.pl0000644000000000000000000000320511760743631011004 0ustar package F77Conf; # a minimal hardcoded config designed for debian so that we don't need # ExtUtils::F77 when building PDL print "Config ",__PACKAGE__->config(),"\n"; print "Compiler ",__PACKAGE__->compiler(),"\n"; print "Runtime ",__PACKAGE__->runtime(),"\n"; print "Trail_ ",__PACKAGE__->trail_() ? "yes" : "no", "\n"; print "Cflags ",__PACKAGE__->cflags(),"\n"; sub config { return 'debian'; } sub runtime { my $libpath = `gfortran -print-libgcc-file-name`; $libpath =~ s/libgcc[.]a$//; chomp $libpath; my $ldflags = ''; $ldflags .= $ENV{LDFLAGS} if (defined $ENV{LDFLAGS}); $ldflags .= " -L$libpath -lgcc -lgfortran"; return($ldflags); } sub trail_ { return 1; } sub compiler { return 'gfortran'; } sub cflags { my $fflags = ''; $fflags = $ENV{FFLAGS} if (defined $ENV{FFLAGS}); $fflags.=' -fPIC'; return($fflags); } sub testcompiler { my ($this) = @_; my $file = "/tmp/testf77$$"; my $ret; open(OUT,">$file.f"); print OUT " print *, 'Hello World'\n"; print OUT " end\n"; close(OUT); print "Compiling the test Fortran program...\n"; my ($compiler,$cflags) = ($this->compiler,$this->cflags); system "$compiler $cflags $file.f -o ${file}_exe"; print "Executing the test program...\n"; if (`${file}_exe` ne " Hello World\n") { print "Test of Fortran Compiler FAILED. \n"; print "Do not know how to compile Fortran on your system\n"; $ret=0; } else{ print "Congratulations you seem to have a working f77!\n"; $ret=1; } unlink("${file}_exe"); unlink("$file.f"); unlink("$file.o") if -e "$file.o"; return $ret; } 1; debian/control0000644000000000000000000000367512237262237010612 0ustar Source: pdl Section: math Priority: optional Maintainer: Henning Glawe Standards-Version: 3.9.4 Build-Depends: gfortran, dpkg-dev (>= 1.16.1~), x11proto-core-dev, libncurses-dev, perl (>= 5.8.0-3), debhelper (>= 9), libinline-perl (>= 0.43), libgsl0-dev, libxext-dev, libhdf4-alt-dev | libhdf4g-dev, libproj-dev | proj, proj-bin | proj, libgd2-xpm-dev, libastro-fits-header-perl, sharutils, libopengl-perl (>= 0.6702), libxi-dev, libxmu-dev, freeglut3-dev, libextutils-f77-perl, netpbm, libdevel-repl-perl (>=1.003011), libtest-warn-perl Homepage: http://pdl.perl.org/ Package: pdl Architecture: any Depends: ${perl:Depends}, libterm-readkey-perl, ${shlibs:Depends}, ${misc:Depends} Recommends: libterm-readline-gnu-perl | libterm-readline-perl-perl Suggests: libpgplot-perl, netpbm | imagemagick, libastro-fits-header-perl, libinline-perl, doc-base, libextutils-f77-perl, proj-bin | proj, libdevel-repl-perl (>=1.003011), libopengl-perl (>= 0.6702), libhdf4-0-alt, libgl1-mesa-glx | libgl1, libpdl-fftw-perl, libpdl-graphics-plplot-perl Conflicts: r-pdl Replaces: r-pdl Provides: ${pdlapi:Provides} Description: perl data language: Perl extensions for numerics PDL gives standard perl the ability to COMPACTLY store and SPEEDILY manipulate the large N-dimensional data arrays which are the bread and butter of scientific computing. The idea is to turn perl in to a free, array-oriented, numerical language in the same sense as commercial packages like IDL and MatLab. One can write simple perl expressions to manipulate entire numerical arrays all at once. For example, using PDL the perl variable $a can hold a 1024x1024 floating point image, it only takes 4Mb of memory to store it and expressions like $a=sqrt($a)+2 would manipulate the whole image in a few seconds. . A simple interactive shell (perldl) is provided for command line use together with a module (PDL) for use in perl scripts. debian/which_tests_failed.pl0000755000000000000000000000643112240244212013353 0ustar #!/usr/bin/perl use strict; use warnings; use Getopt::Long; my @ignore_test_arg; my $debug = 0; GetOptions( 'ignore=s' => \@ignore_test_arg, 'debug=i' => \$debug, ); @ignore_test_arg = map { split /\s*,\s*/ } @ignore_test_arg; my @ignore_test; foreach my $ita (@ignore_test_arg) { my @sub_re = split /\s*:\s*/,$ita; die "syntax error: $ita" if ($#sub_re > 2); my @this_it; for (my $i=0;$i<3;$i++) { push @this_it,(((defined $sub_re[$i]) and ($sub_re[$i] ne '')) ? qr/^$sub_re[$i]$/ : qr/^.*$/); } push @ignore_test,\@this_it; print "will ignore: " . join(':',@this_it) . "\n" if ($debug > 1); } my ($test_script,@planned,@ok,@test_msg,@tidx); my %failed_test_summary; my %architectures; sub eval_test { my @failed_tests; my @failed_msgs; for (my $i=0;$i<=$#ok;$i++) { unless ($ok[$i]) { push @failed_tests,$planned[$i]; push @failed_msgs,$test_msg[$i]; } } my $arch = $1 if ($ARGV =~ /_([^_\.]+)\.testsuite$/); for (my $i=0; $i<=$#failed_tests; $i++) { my @val_tuple = ($test_script,$failed_tests[$i],$arch); my $ignore = 0; foreach my $it (@ignore_test) { my $this_ignore = 1; for (my $i=0;$i<3;$i++) { $this_ignore &= ($val_tuple[$i] =~ $it->[$i]); } if ($this_ignore) { $ignore = 1; print STDERR "ignored '" . join(':',@val_tuple) . "' due to '" . join(':',@{$it}) . "\n" if ($debug > 0); last; } } next if ($ignore); # printf "%-20s %3d %s %s\n",$test_script,$failed_tests[$i],$failed_msgs[$i],$arch; $architectures{$arch}=1 if ($#failed_tests>=0); $failed_test_summary{$test_script}->{$failed_tests[$i]}->{$arch}=1; } } while (<>) { if (/^(t\/.*\.t) \.+\s*skipped:/) { eval_test() if ((defined $test_script) and ($#planned >= 0)); $test_script=undef; @planned=(); @test_msg=(); @ok=(); @tidx=(); next; } if (/^(t\/.*\.t) \.+\s*$/) { eval_test() if ((defined $test_script) and ($#planned >= 0)); $test_script=$1; @planned=(); @test_msg=(); @ok=(); @tidx=(); next; } if (/^(\d+)\.\.(\d+)/) { warn "planned was not empty" if ($#planned>=0); @planned=$1 .. $2; @ok = (0) x ($#planned+1); @test_msg=('') x ($#planned+1); for (my $i=0;$i<=$#planned;$i++) { $tidx[$planned[$i]]=$i; } next; } next unless ((defined $test_script) and ($#planned >= 0)); if (/^ok\s*(\d+)\s*(.*)/) { my $tidx=$tidx[$1]; $ok[$tidx]=1; $test_msg[$tidx]=$2 unless ($2 =~ /^\s*$/); } } eval_test() if ((defined $test_script) and ($#planned >= 0)); my @architectures = sort keys %architectures; my $summary_fstring = '%-20s %3d'; foreach (@architectures) { $summary_fstring .= ' %' . length($_) . 's'; } $summary_fstring.="\n"; foreach my $tst (sort keys %failed_test_summary) { foreach my $stst (sort { $a <=> $b } keys %{$failed_test_summary{$tst}}) { my @farchitectures= map { ($failed_test_summary{$tst}->{$stst}->{$_} ? $_ : '') } @architectures; printf $summary_fstring,$tst,$stst,@farchitectures; } } debian/dh_pdl0000755000000000000000000000532211761342713010355 0ustar #!/usr/bin/perl -w =head1 NAME dh_pdl - calculates pdl dependencies =cut use strict; use Config; use File::Find; use Debian::Debhelper::Dh_Lib; use PDL::Config::Debian; =head1 SYNOPSIS B [S>] [B<-d>] [S>] =head1 DESCRIPTION dh_pdl is a debhelper program that is responsible for generating the ${pdl:Depends} substitutions and adding them to substvars files. The program will look at perl scripts and modules in your package, and will use this information to generate a dependency on pdl or pdlapi. The dependency will be substituted into your package's control file wherever you place the token "${pdl:Depends}". =head1 OPTIONS =over 4 =item B<-V> By default, scripts and architecture independent modules don't depend on any specific version of pdl. The -V option causes the current version of the pdl package to be specified. =item I If your package installs perl modules in non-standard directories, you can make dh_perl check those directories by passing their names on the command line. It will only check the vendorlib and vendorarch directories by default. =back =head1 CONFORMS TO Debian policy, version 3.8.3 =cut init(); my $vendorlib = substr $Config{vendorlib}, 1; my $vendorarch = substr $Config{vendorarch}, 1; # Cleaning the paths given on the command line foreach (@ARGV) { s#/$##; s#^/##; } my $pdl = 'pdl'; my $version; # dependency types use constant PROGRAM => 1; use constant PM_MODULE => 2; use constant XS_MODULE => 4; foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp=tmpdir($package); # Check also for alternate locations given on the command line my @dirs = grep -d, map "$tmp/$_", $vendorlib, $vendorarch, @ARGV; # Look for perl modules and check where they are installed my $deps = 0; find sub { return unless -f; $deps |= PM_MODULE if /\.pm$/; $deps |= XS_MODULE if /\.so$/; }, @dirs if @dirs; # find scripts find sub { return unless -f and (-x or /\.pl$/); return if $File::Find::dir=~/\/usr\/share\/doc\//; local *F; return unless open F, $_; if (read F, local $_, 32 and m%^#!\s*(/usr/bin/perl|/usr/bin/env\s+perl)\s%) { $deps |= PROGRAM; } close F; }, $tmp; if ($deps) { my $version=""; if ($deps & XS_MODULE or $dh{V_FLAG_SET}) { ($version) = `dpkg -s $pdl` =~ /^Version:\s*(\S+)/m unless $version; $version = ">= $version"; } addsubstvar($package, "pdl:Depends", $pdl, $version); # add pdlapi- for XS modules addsubstvar($package, "pdl:Depends", "pdlapi-$PDL::Config::Debian::pdl_core_version") if $deps & XS_MODULE; } } =head1 SEE ALSO L =head1 AUTHOR Henning Glawe Based on dh_perl by Brendan O'Dea =cut debian/pdl.manpages0000644000000000000000000000002011760125551011455 0ustar debian/dh_pdl.1 debian/pdl.prerm0000644000000000000000000000170211720137625011020 0ustar #! /bin/sh # prerm script for pdl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# case "$1" in remove|upgrade|deconfigure) rm -rf /var/lib/pdl/html rm -f /var/lib/pdl/pdldoc.db /var/lib/pdl/Index.pod ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0 debian/rules0000755000000000000000000000600012237275305010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # PDL debian/rules that uses debhelper. # much of it is based on the original debmake-based one. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 unexport DISPLAY WARNING_FLAGS:=-Wall -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) export DEB_CFLAGS_MAINT_APPEND:=$(WARNING_FLAGS) else export DEB_CFLAGS_MAINT_APPEND:=$(WARNING_FLAGS) -ffunction-sections endif export DEB_LDFLAGS_MAINT_APPEND:=-Wl,--as-needed DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk subst_pdlapi = -Vpdlapi:Provides="`perl -Mblib -MPDL::Config::Debian -e 'print \"pdlapi-$$PDL::Config::Debian::pdl_core_version\n\"'`" configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package dh_auto_configure -- F77CONF=debian/f77conf.pl PDLCONF=debian/perldl.conf touch configure-stamp build-arch: build build-indep: build build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) LD_RUN_PATH="" mkdir -p blib/lib/PDL/Config perl -Mblib debian/write_config_debian.pl > blib/lib/PDL/Config/Debian.pm pod2man debian/dh_pdl > debian/dh_pdl.1 touch build-stamp test: test-stamp test-stamp: build-stamp dh_testdir perl debian/filter-test.pl touch test-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp test-stamp dh_clean # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f t/callext.o t/callext.so Graphics/TriD/OpenGL/tmp*.h-out \ Perldl2/pdl2.pod debian/dh_pdl.1 install: build test dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/pdl. $(MAKE) install DESTDIR=$(CURDIR)/debian/pdl cd debian/pdl; while read f ; do rm -f "$$f" ; done < ../pdl.remove # create placeholder in usr/share/perl5/PDL echo > $(CURDIR)/debian/pdl/usr/share/perl5/PDL/.placeholder # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_install dh_installmenu dh_lintian # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps -X OpenGLQ.so dh_gencontrol -- $(subst_pdlapi) dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/source/0000755000000000000000000000000011757636716010511 5ustar debian/source/format0000644000000000000000000000001411757636716011717 0ustar 3.0 (quilt) debian/extract_testsuite_results_from_buildlog.pl0000755000000000000000000000030312240124476017774 0ustar #!/usr/bin/perl use strict; use warnings; my $hot=0; while (<>) { last if (/^END test verbose/); if (/^BEGIN test verbose/) { $hot = 1; next; } print if ($hot); }