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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup perl5 1.0 |
---|
6 | |
---|
7 | ## name could be changed as there is also php/python/ruby/c++ bindings ? |
---|
8 | name perlchartdir |
---|
9 | version 5.1.1 |
---|
10 | distname chartdir_perl_mac |
---|
11 | categories graphics |
---|
12 | platforms darwin |
---|
13 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
14 | description ChartDirector for Perl |
---|
15 | long_description Professional chart component for windows and web applications |
---|
16 | license commercial |
---|
17 | homepage http://www.advsofteng.com/ |
---|
18 | master_sites http://download2.advsofteng.com/ |
---|
19 | ## support for perl 5.8/5.10/5.12/5.14/5.16/5.18 |
---|
20 | |
---|
21 | checksums rmd160 4c8bbe999f9663a3046561ddf1bb1acdd8ab7b6e \ |
---|
22 | sha256 0074ef61f9c56ecdbd4012c6f477206250c12d09dd5623a925084fabae5aa3f0 |
---|
23 | |
---|
24 | depends_lib path:bin/perl:perl5 |
---|
25 | |
---|
26 | worksrcdir ChartDirector |
---|
27 | |
---|
28 | use_configure no |
---|
29 | build { |
---|
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 | |
---|
40 | destroot { |
---|
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 | |
---|
53 | livecheck.type regex |
---|
54 | livecheck.url ${homepage}/download.html |
---|
55 | livecheck.regex "The latest version of ChartDirector is (\\d+(?:\\.\\d+)*)" |
---|
56 | |
---|
57 | notes " |
---|
58 | This port is binary only and is usable only with Apple perl (/usr/bin/perl) on Intel architecture. |
---|
59 | Use ${perl5.lib} as Perl library to use it (either with 'perl -Ipath', PERL5LIB, or @INC). |
---|
60 | " |
---|