source: trunk/dports/www/redland-bindings/Portfile @ 125959

Last change on this file since 125959 was 114101, checked in by easieste@…, 6 years ago

redland-bindings: update to 1.0.16.1 and add python27 variant.

Maintainer timeout. Fixes #39118.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 114101 2013-11-29 08:14:40Z easieste@macports.org $
2
3PortSystem 1.0
4
5name                redland-bindings
6version             1.0.16.1
7description         Redland RDF Language Bindings
8long_description    Redland is a set of free software libraries that provide \
9                    support for the Resource Description Framework (RDF). \
10                    This package provides higher-level language APIs to \
11                    Redland for multiple popular scripting languages.
12maintainers         gmail.com:arto.bendiken
13categories          www
14platforms           darwin
15homepage            http://librdf.org/bindings/
16master_sites        http://download.librdf.org/source/
17
18checksums           sha1    98c20b64cf5e99cbf29fcb84490e73e2a828213a \
19                    rmd160  0f4ac6f67fd2ddfa842dc82c52e5c380d9fc95d3
20 
21depends_lib         port:redland
22
23pre-configure {
24    if {![variant_isset perl5] && ![variant_isset php5] && ![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27] && ![variant_isset ruby] && ![variant_isset tcl] && ![variant_isset lua]} {
25        ui_error "You must select at least one variant."
26        return -code error "no variant selected"
27    }
28
29    foreach {badport badfile} "raptor ${prefix}/include/raptor.h" {
30        if {[file exists ${badfile}]} {
31            ui_error "${name} cannot be built while ${badport} is active."
32            ui_error "Please deactivate ${badport} and try again."
33            ui_error "You can reactivate ${badport} again later."
34            return -code error "${badport} is installed"
35        }
36    }
37}
38
39variant perl5 {
40        depends_lib-append path:bin/perl:perl5
41        configure.args-append --with-perl
42        configure.perl ${prefix}/bin/perl
43}
44
45variant php5 {
46        configure.args-append --with-php
47        depends_lib-append path:bin/php:php5
48}
49
50variant python24 conflicts python25 python26 python27 {
51        configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/Python"
52        depends_lib-append port:python24
53}
54
55variant python25 conflicts python24 python26 python27 {
56        configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/Python"
57        depends_lib-append port:python25
58}
59
60variant python26 conflicts python24 python25 python27 {
61        configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/Python"
62        depends_lib-append port:python26
63}
64
65variant python27 conflicts python24 python25 python26 {
66        configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python"
67        depends_lib-append port:python27
68}
69
70variant ruby {
71        configure.args-append --with-ruby
72        depends_lib-append port:ruby
73}
74
75variant tcl {
76        configure.args-append --with-tcl
77        depends_lib-append port:tcl
78}
79
80variant lua description {Include Lua binding} {
81    configure.args-append --with-lua
82    depends_lib-append port:lua
83}
84
85livecheck.type      regex
86livecheck.url       ${homepage}
87livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.