source: trunk/dports/lang/perl5.9-devel/Portfile @ 32171

Last change on this file since 32171 was 32171, checked in by afb@…, 13 years ago

port rename: perl-5.9 -> perl5.9-devel

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 32171 2007-12-19 00:22:32Z afb@macports.org $
2
3PortSystem      1.0
4
5name            perl5.9-devel
6version         5.9.5
7categories      lang
8platforms               darwin freebsd linux
9maintainers     afb@macports.org openmaintainer
10description     Perl 5.9.x - Practical Extraction and Report Language
11
12long_description \
13    Perl is a general-purpose programming language originally developed \
14    for text manipulation and now used for a wide range of tasks including \
15    system administration, web development, network programming, GUI \
16    development, and more.
17
18distname        perl-${version}
19use_bzip2       no
20homepage        http://www.perl.org/
21master_sites    http://www.cpan.org/src/5.0/
22
23checksums       md5 caef13b075995b508085667d4011b8d6 \
24                sha1 aae3ae81a5b94037ea2e80d8a4ccc0e0a95d3258 \
25                rmd160 7ffc2b5b0396cd43d8641120980e4f5474912b4f
26
27platform darwin {
28    patchfiles-append   patch-hints_darwin.sh
29
30    pre-configure {
31        reinplace "s|ld=\"MACOSX_DEPLOYMENT_TARGET=10.3|ld=\"env MACOSX_DEPLOYMENT_TARGET=10.3|g" "${worksrcpath}/hints/darwin.sh"
32    }
33}
34
35configure.env       LC_ALL=C
36configure.cmd       sh Configure
37configure.pre_args 
38configure.post_args -des -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'"\
39                    -Dldflags=-L'${prefix}/lib' \
40                    -Dvendorprefix='${prefix}' -Dusedevel
41
42test.run            yes
43
44post-destroot {
45    file delete ${destroot}${prefix}/bin/perl
46    set branch [join [lrange [split ${version} .] 0 1] .]
47
48    foreach man1File [glob ${destroot}/${prefix}/share/man/man1/*] {
49        regexp (.*)(\.1.*) ${man1File} -> program suffix
50        file rename ${man1File} ${program}${version}${suffix}
51    }
52    foreach man3File [glob ${destroot}/${prefix}/share/man/man3/*] {
53        file rename ${man3File} ${man3File}pm${branch}
54    }
55}
56
57variant threads {
58    configure.args-append   -Dusethreads
59}
60
61variant shared {
62    configure.args-append   -Duseshrplib
63}
64
65platform darwin 8 {
66    configure.post_args-append  -Dcc=/usr/bin/gcc-4.0
67}
68
69livecheck.check regex
70livecheck.url   ${master_sites}
71livecheck.regex devel_is_(\\d+(?:\\.\\d+)*)
72
Note: See TracBrowser for help on using the repository browser.