Ticket #26004: Portfile

File Portfile, 2.3 KB (added by jul_bsd@…, 10 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7## name could be changed as there is also php/python/ruby/c++ bindings ?
8name                perlchartdir
9version             5.1.1
10distname            chartdir_perl_mac
11categories          graphics
12platforms           darwin
13maintainers         yahoo.fr:jul_bsd openmaintainer
14description         ChartDirector for Perl
15long_description    Professional chart component for windows and web applications
16license             commercial
17homepage            http://www.advsofteng.com/
18master_sites        http://download2.advsofteng.com/
19## support for perl 5.8/5.10/5.12/5.14/5.16/5.18
20
21checksums           rmd160  4c8bbe999f9663a3046561ddf1bb1acdd8ab7b6e \
22                    sha256  0074ef61f9c56ecdbd4012c6f477206250c12d09dd5623a925084fabae5aa3f0
23
24depends_lib         path:bin/perl:perl5
25
26worksrcdir          ChartDirector
27
28use_configure       no
29build               {
30   
31#    foreach file [glob -directory ${worksrcpath}/perldemo *] {
32#        ## lib supports only Apple perl for now as Macports seem to use different configure options
33#        ## FIXME! "Error: reinplace: sed: RE error: illegal byte sequence" but working on some files/was working before
34#        reinplace "s|^#!/usr/bin/perl|#!/usr/bin/perl\\\nuse lib \"${perl5.lib}\";|" \
35#            ${file}
36#    }
37
38}
39
40destroot        {
41    xinstall -d ${destroot}${perl5.lib}
42    foreach file [glob -directory ${worksrcpath}/lib *] {
43        xinstall -m 644 -W ${worksrcpath}/lib ${file} ${destroot}${perl5.lib}
44    }
45
46    xinstall -d ${destroot}${prefix}/share/examples
47    file copy ${worksrcpath}/perldemo ${destroot}${prefix}/share/examples/${name}
48    xinstall -d ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 644 -W ${worksrcpath}/doc cdperl.htm ${destroot}${prefix}/share/doc/${name}
50    file copy ${worksrcpath}/doc/cdperldoc ${destroot}${prefix}/share/doc/${name}
51}
52
53livecheck.type     regex
54livecheck.url       ${homepage}/download.html
55livecheck.regex     "The latest version of ChartDirector is (\\d+(?:\\.\\d+)*)"
56
57notes "
58This port is binary only and is usable only with Apple perl (/usr/bin/perl) on Intel architecture.
59Use ${perl5.lib} as Perl library to use it (either with 'perl -Ipath', PERL5LIB, or @INC).
60"