MacPorts p5-pdl package has been upgraded to 2.4.11, so it's not as egregiously 
behind like it used to be.  Tim Pickering has been maintaining that port until 
now, but he said 
(http://mailman.jach.hawaii.edu/pipermail/perldl/2013-January/007521.html) that 
getting the docs to install was always difficult because everything was staged 
to a directory and then moved whole hog into /opt/local.  I believe the 
absolute paths are hard-coded when 'make doctest' is done as part of 'make 
install'.  One could do a scantree.pl post-install, but then some files aren't 
under MP control, which is considered a no-no.  Chris, you had a similar 
problem with your Strawberry Perl Portable installation, IIRC--did that get 
solved?

Other comments here instead of inline:

1) I see no prerequisite for p5-pgplot, which might explain why the pgplot demo 
doesn't run.

2) I see no prerequisite for p5-opengl (and that module probably needs to be 
updated in MacPorts).

3) PDL::IO::HDF is for hdf4.  PDL::IO::HDF5 is available on CPAN but (as per 
other discussion on pdl-porters) that might change soon.

4) There is a tool (cpan2port) that would help create new ports if MP is 
missing some things from CPAN (as an aside, MP devs have said they are quite 
happy to try to keep up with CPAN, though personally I think that is a fool's 
errand).

I started figuring out how to make a local Macports repository over the 
weekend, since I do use MacPorts.  Mark, if it's easy for you to try those 
changes (minus the documentation problem), give it a whirl.  Otherwise I'll try 
to get to it in the next week or so.

cheers,
Derek


On May 7, 2013, at 11:27 AM, Mark Grimes wrote:

> I've spent some time trying to update the Portfile
> (https://github.com/mvgrimes/macports-p5-pdl). Unfortunately, it has
> proved more difficult than expected. PDL installs just fine with
> cpanm, but the installation via macports has a number of issues:
> 
> - The pdl command hangs before anything is output
> 
> - perldl works, but complains about not being able to find PDL/pdldoc.db
> 
> - These modules appear to be required (per Makefile.PL) but do not
> have MacPort packages:
> 
>    Convert::UU
>    File::Map
>    Module::Compile
>    Filter::Simple
> 
>   Looking at a diff from 2.4.11
> (https://metacpan.org/diff/release/CHM/PDL-2.4.11/CHM/PDL-2.006#META.json)
> it appears that Filter::Simple and Module::Compile are new, but
> Convert::UU and File::Map were also required in 2.4.11. Do we really
> need these? Is they optional?
> 
> - Simple tests of graphics tools don't work:
> 
>     pdl> demo pgplot
>     Undefined subroutine &PDL::Demos::PGPLOT_demo::run called at
> ./perldl line 455.
> 
> You can see the build log here
> https://gist.github.com/mvgrimes/5534323 (jump to line 1830 for the
> output of `perl Makefile.PL`). Most everything looks ok with the
> following exceptions:
> 
> - OpenGL isn't found/enabled
> - libsz isn't found for HDF support; note that hdf5-18 is installed
> (HDF5 v1.8.10)

> 
> Lastly, I'm happy to keep working on this as time permits, but I've
> realized that we need to continue using our perlbrew installed perl,
> so I won't be a user of the macports PDL. That is far from ideal. It
> would be better if we had an actual user of the package maintaining
> it... anyone?
> 
> Thanks,
> Mark
> 
> On Sat, May 4, 2013 at 1:53 PM, Chris Marshall <[email protected]> wrote:
>> That would be great!  I believe there already is a macports done for an
>> earlier release of PDL.  Updating it to the latest should be mostly tweaking
>> and checking rather than writing from scratch.  Sorry I can't be more
>> specific but "no speak mac"  :-)
>> 
>> --Chris
> 
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> 


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to