Ticket #22241: swig-split.diff

File swig-split.diff, 72.6 KB (added by jmroot (Joshua Root), 15 years ago)
  • swig/Portfile

     
    44
    55name            swig
    66version         1.3.40
     7revision    1
    78
    89categories      devel
    910maintainers     kevin jwa
     
    3637    reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    3738}
    3839
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
     40foreach lang {python perl5 gcj guile mzscheme ruby php ocaml pike lua chicken allegrocl clisp r tcl csharp octave java} {
     41    configure.args-append --without-${lang}
     42}
    4143
    4244build.target
    4345
    44 set languages   {typemaps java}
     46set languages   [list typemaps]
    4547set docdir      ${prefix}/share/doc/${name}-${version}
    4648
    4749test.run        yes
     
    6668    }
    6769}
    6870
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    10671livecheck.type      sourceforge
    10772livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-allegro/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   allegro Allegro
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-chicken/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   chicken Chicken
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-clisp/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   clisp CLISP
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-csharp/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   csharp "C#"
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-gcj/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   gcj GCJ
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-guile/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   guile Guile
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-java/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   java Java
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-lua/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   lua Lua
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-mzscheme/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   mzscheme MzScheme
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-ocaml/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   ocaml "Objective Caml"
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-octave/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   octave Octave
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-perl/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   perl Perl
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-php5/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   php5 "PHP 5"
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-pike/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   pike Pike
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-python/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   python Python
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-r/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   r R
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-ruby/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   ruby Ruby
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
  • swig-tcl/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup swigbinding 1.0
    46
    5 name            swig
    6 version         1.3.40
     7swigbinding-setup   tcl Tcl
     8version             1.3.40
    79
    8 categories      devel
    9 maintainers     kevin jwa
     10maintainers         nomaintainer
    1011
    11 description     Tool to wrap C/C++ libraries in high-level languages.
    12 long_description        \
    13     SWIG is a software development tool that connects programs written in C \
    14     and C++ with a variety of high-level programming languages. SWIG is \
    15     primarily used with common scripting languages such as Perl, Python, \
    16     Tcl/Tk, Ruby, Guile and MzScheme, however the list of supported languages \
    17     also includes non-scripting languages such as Java and OCAML. SWIG is \
    18     most commonly used to create high-level interpreted programming \
    19     environments, user interfaces, and as a tool for testing and \
    20     prototyping C/C++ software. SWIG may be freely used, distributed, and \
    21     modified for commercial and noncommercial use.
    22 
    23 homepage        http://www.swig.org/
    24 platforms       darwin
    25 master_sites    sourceforge
    2612checksums           md5     2df766c9e03e02811b1ab4bba1c7b9cc \
    2713                    sha1    7e7a426579f2d2d967b731abf062b33aa894fb4e \
    2814                    rmd160  318a59b0ea2b20ca987f7e662e0d7138c869295a
    29 
    30 
    31 depends_build   port:bison \
    32     port:gsed
    33 
    34 post-patch {
    35     # The configure script should use GNU sed
    36     reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure
    37 }
    38 
    39 default_variants        +python +perl +ruby +php5
    40 configure.args  --with-java
    41 
    42 build.target
    43 
    44 set languages   {typemaps java}
    45 set docdir      ${prefix}/share/doc/${name}-${version}
    46 
    47 test.run        yes
    48 test.target     check
    49 
    50 pre-destroot {
    51     # This must be evaluated after variants selection.
    52     destroot.args   lib-languages="[join ${languages}]"
    53 }
    54 
    55 post-destroot {
    56     xinstall -d ${destroot}${docdir}
    57     xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \
    58         TODO ${destroot}${docdir}
    59 }
    60 
    61 variant doc description {Install extra documentation} {
    62     post-destroot {
    63         xinstall -d ${destroot}${docdir}/html
    64         eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \
    65             ${destroot}${docdir}/html
    66     }
    67 }
    68 
    69 set bindings {
    70     python      port:python_select     python=${prefix}/bin/python
    71     perl        path:bin/perl:perl5    perl5=${prefix}/bin/perl
    72     gcj         port:gcc43             "gcj=${prefix}/bin/gcj-mp-4.3 --with-gcjh=${prefix}/bin/gcjh-mp-4.3"
    73     guile       port:guile             guile
    74     mzscheme    port:mzscheme          mzscheme
    75     ruby        port:ruby              ruby
    76     php5        path:bin/php:php5      php
    77     ocaml       port:ocaml             ocaml
    78     pike        port:pike              pike
    79     lua         port:lua               lua
    80     chicken     port:chicken           chicken
    81     allegro     port:allegro           allegrocl
    82     clisp       port:clisp             clisp
    83     r           port:R                 r
    84     tcl         port:tcl               tcl
    85     csharp      port:mono              csharp
    86     octave      port:octave            octave
    87 }
    88 
    89 foreach {variant port arg} ${bindings} {
    90     set arg_name    [lindex [split ${arg} =] 0]
    91 
    92     configure.args-append   --without-${arg_name}
    93 
    94     eval [subst {
    95         variant ${variant} {
    96             configure.args-delete   --without-${arg_name}
    97             configure.args-append   --with-${arg}
    98 
    99             depends_lib-append   ${port}
    100 
    101             lappend languages       ${arg_name}
    102         }
    103     }]
    104 }
    105 
    106 livecheck.type      sourceforge
    107 livecheck.regex     <title>${name} ${name}-(.*) released.*</title>