Commits
Jan Demter authored and Renee Otten committed 3f67c5b6b5b
1 - | PortSystem 1.0 |
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 + | |
3 + | PortSystem 1.0 |
2 4 | |
3 5 | name redland-bindings |
4 - | version 1.0.16.1 |
5 - | revision 1 |
6 + | version 1.0.17.1 |
6 7 | description Redland RDF Language Bindings |
7 8 | long_description Redland is a set of free software libraries that provide \ |
8 9 | support for the Resource Description Framework (RDF). \ |
9 10 | This package provides higher-level language APIs to \ |
10 11 | Redland for multiple popular scripting languages. |
11 12 | maintainers nomaintainer |
12 13 | categories www |
13 14 | platforms darwin |
15 + | license Apache-2 |
14 16 | homepage http://librdf.org/bindings/ |
15 17 | master_sites http://download.librdf.org/source/ |
16 18 | |
17 - | checksums sha1 98c20b64cf5e99cbf29fcb84490e73e2a828213a \ |
18 - | rmd160 0f4ac6f67fd2ddfa842dc82c52e5c380d9fc95d3 |
19 - | |
19 + | checksums sha256 ff72b587ab55f09daf81799cb3f9d263708fad5df7a5458f0c28566a2563b7f5 \ |
20 + | rmd160 e2604f0c10ab6922b06e26fa1f1d62a8e53f4b6b \ |
21 + | size 933290 |
22 + | |
20 23 | depends_lib port:redland |
21 24 | |
22 25 | pre-configure { |
23 - | if {![variant_isset perl5] && ![variant_isset php5] && ![variant_isset python26] && ![variant_isset python27] && ![variant_isset ruby] && ![variant_isset tcl] && ![variant_isset lua]} { |
24 - | ui_error "You must select at least one variant." |
25 - | return -code error "no variant selected" |
26 - | } |
27 - | |
28 26 | foreach {badport badfile} "raptor ${prefix}/include/raptor.h" { |
29 27 | if {[file exists ${badfile}]} { |
30 28 | ui_error "${name} cannot be built while ${badport} is active." |
31 29 | ui_error "Please deactivate ${badport} and try again." |
32 30 | ui_error "You can reactivate ${badport} again later." |
33 31 | return -code error "${badport} is installed" |
34 32 | } |
35 33 | } |
36 34 | } |
37 35 | |
38 - | variant perl5 { |
39 - | depends_lib-append path:bin/perl:perl5 |
40 - | configure.args-append --with-perl |
41 - | configure.perl ${prefix}/bin/perl |
36 + | if {![variant_isset perl5] && ![variant_isset php5] && ![variant_isset python27] && ![variant_isset python36] && |
37 + | ![variant_isset ruby] && ![variant_isset tcl] && ![variant_isset lua]} { |
38 + | default_variants +python37 |
39 + | } |
40 + | |
41 + | variant perl5 description {Include Perl 5 binding} { |
42 + | depends_lib-append path:bin/perl:perl5 |
43 + | configure.args-append --with-perl |
44 + | configure.perl ${prefix}/bin/perl |
45 + | } |
46 + | |
47 + | variant php5 description {Include PHP 5 binding} { |
48 + | configure.args-append --with-php |
49 + | depends_lib-append path:bin/php:php5 |
42 50 | } |
43 51 | |
44 - | variant php5 { |
45 - | configure.args-append --with-php |
46 - | depends_lib-append path:bin/php:php5 |
52 + | variant python27 conflicts python36 python37 description {Include Python 2.7 binding} { |
53 + | configure.args-append --with-python=${prefix}/bin/python2.7 --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/2.7/Python" |
54 + | depends_lib-append port:python27 |
47 55 | } |
48 56 | |
49 - | variant python26 conflicts python27 { |
50 - | configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/2.6/Python" |
51 - | depends_lib-append port:python26 |
57 + | variant python36 conflicts python27 python37 description {Include Python 3.6 binding} { |
58 + | configure.args-append --with-python=${prefix}/bin/python3.6 --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/3.6/Python" |
59 + | depends_lib-append port:python36 |
52 60 | } |
53 61 | |
54 - | variant python27 conflicts python26 { |
55 - | configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/2.7/Python" |
56 - | depends_lib-append port:python27 |
62 + | variant python37 conflicts python27 python36 description {Include Python 3.7 binding} { |
63 + | configure.args-append --with-python=${prefix}/bin/python3.7 --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${frameworks_dir}/Python.framework/Versions/3.7/Python" |
64 + | depends_lib-append port:python37 |
57 65 | } |
58 66 | |
59 - | variant ruby { |
60 - | configure.args-append --with-ruby |
61 - | depends_lib-append port:ruby |
67 + | variant ruby description {Include Ruby binding} { |
68 + | configure.args-append --with-ruby |
69 + | depends_lib-append port:ruby |
62 70 | } |
63 71 | |
64 - | variant tcl { |
65 - | configure.args-append --with-tcl |
66 - | depends_lib-append port:tcl |
72 + | variant tcl description {Include Tcl binding} { |
73 + | configure.args-append --with-tcl |
74 + | depends_lib-append port:tcl |
67 75 | } |
68 76 | |
69 77 | variant lua description {Include Lua binding} { |
70 78 | configure.args-append --with-lua |
71 79 | depends_lib-append port:lua |
72 80 | } |
73 81 | |
74 82 | livecheck.type regex |
75 83 | livecheck.url ${homepage} |
76 84 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |