source: trunk/dports/devel/boost-build/Portfile @ 86632

Last change on this file since 86632 was 86632, checked in by ryandesign@…, 9 years ago

Rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 86632 2011-10-30 12:24:57Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            boost-build
6version         2.0-m12
7revision        2
8categories      devel
9maintainers     nomaintainer
10description     Build system for large project software construction
11long_description    Boost.Build is a system for large project software \
12                    construction, which is simple to use and powerfull. \
13                    Boost.Build V2 is an onging project to rewrite \
14                    Boost.Build, improving design and making it more \
15                    extensible.
16homepage        http://www.boost.org
17master_sites    sourceforge:project/boost/boost-build/${version}
18use_bzip2       yes
19checksums       md5 38a40f1c0c2d6eb4f14aa4cf52e9236a \
20                sha1 cd3c06b7b0bcb12ccc9d5e374966ddff5984412a \
21                rmd160 de52a80c55d3ba8e38e199bfbb7c512642471e4e
22platforms       darwin
23
24patchfiles      patch-tools-darwin.jam.diff
25
26depends_run     port:boost-jam
27
28worksrcdir      ${name}
29
30configure {
31    file delete -force ${worksrcpath}/debian ${worksrcpath}/jam_src/debian
32    reinplace "s|/usr/local|${prefix}|" \
33        ${worksrcpath}/doc/html/bbv2/faq.html \
34        ${worksrcpath}/doc/src/faq.xml \
35        ${worksrcpath}/jam_src/Jambase \
36        ${worksrcpath}/jam_src/jam.h \
37        ${worksrcpath}/jam_src/jambase.c
38    reinplace "s|+= /usr/include|+= ${prefix}/include|" \
39        ${worksrcpath}/jam_src/Jambase \
40        ${worksrcpath}/jam_src/jambase.c
41    reinplace "s|/usr/ccs/bin/ar|/usr/bin/ar|" \
42        ${worksrcpath}/jam_src/Jambase \
43        ${worksrcpath}/jam_src/jambase.c
44    reinplace "s|/usr/share/boost-build|${prefix}/share/${name}|" \
45        ${worksrcpath}/jam_src/Jambase \
46        ${worksrcpath}/jam_src/jambase.c
47    reinplace "s|/usr/.*/qt|${prefix}/share/qt3|" \
48        ${worksrcpath}/user-config.jam
49    if {[catch {set python [binaryInPath python]} result] == 0} {
50        foreach dir {test example/customization jam_src} {
51            foreach script [glob -directory ${worksrcpath}/${dir} *.py] {
52                reinplace "s|^#!.*python|#!${python}|" ${script}
53            }
54        }
55    }
56}
57
58build {}
59
60destroot {
61    system "cp -R ${worksrcpath} ${destroot}${prefix}/share/${name}"
62}
Note: See TracBrowser for help on using the repository browser.