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 | # $Id: Portfile 90830 2012-03-15 05:51:35Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name xapian-bindings |
---|
7 | version 1.2.14 |
---|
8 | categories devel |
---|
9 | maintainers gmail.com:dcolish |
---|
10 | description Xapian bindings |
---|
11 | long_description Xapian is a highly adaptable toolkit which allows \ |
---|
12 | developers to easily add advanced indexing and search \ |
---|
13 | facilities to their own applications. It supports the \ |
---|
14 | Probabilistic Information Retrieval model and also \ |
---|
15 | supports a rich set of boolean query operators. |
---|
16 | |
---|
17 | homepage http://www.xapian.org/ |
---|
18 | platforms darwin |
---|
19 | master_sites http://oligarchy.co.uk/xapian/${version} |
---|
20 | |
---|
21 | checksums rmd160 8b74b62f314bce0f5211d91a565cea62f1663be9 \ |
---|
22 | sha256 a55815ddff0bd5f79814b5964cc94299ecf8f7ebafea11523aa0787f6082e3d7 |
---|
23 | |
---|
24 | depends_lib port:xapian-core |
---|
25 | |
---|
26 | configure.args --without-python --without-csharp --without-java \ |
---|
27 | --without-tcl --without-php --without-ruby --without-perl |
---|
28 | |
---|
29 | variant ruby description {builds ruby bindings} { |
---|
30 | configure.args-delete --without-ruby |
---|
31 | configure.args-append --with-ruby |
---|
32 | depends_lib-append port:ruby |
---|
33 | } |
---|
34 | variant php description {builds php bindings} { |
---|
35 | configure.args-delete --without-php |
---|
36 | configure.args-append --with-php |
---|
37 | depends_lib-append path:bin/php:php5 |
---|
38 | } |
---|
39 | variant python26 conflicts python27 description {builds python bindings} { |
---|
40 | configure.args-delete --without-python |
---|
41 | configure.args-append --with-python |
---|
42 | configure.python ${prefix}/bin/python2.6 |
---|
43 | depends_lib-append port:python26 |
---|
44 | } |
---|
45 | variant python27 conflicts python26 description {builds python bindings} { |
---|
46 | configure.args-delete --without-python |
---|
47 | configure.args-append --with-python |
---|
48 | configure.python ${prefix}/bin/python2.7 |
---|
49 | depends_lib-append port:python27 |
---|
50 | } |
---|
51 | variant java description {builds java bindings} { |
---|
52 | configure.args-delete --without-java |
---|
53 | configure.args-append --with-java |
---|
54 | } |
---|
55 | default_variants +ruby |
---|
56 | |
---|
57 | post-destroot { |
---|
58 | if {[file exists ${destroot}${prefix}/share/doc/xapian-bindings/ruby/rdocs]} { |
---|
59 | delete "${destroot}${prefix}/share/doc/xapian-bindings/ruby/rdocs" |
---|
60 | } |
---|
61 | } |
---|