Ticket #38679: Portfile

File Portfile, 2.7 KB (added by macports@…, 11 years ago)
Line 
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
4PortSystem 1.0
5
6name                xapian-bindings
7version             1.2.14
8categories          devel
9maintainers         gmail.com:dcolish
10description         Xapian bindings
11long_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
17homepage            http://www.xapian.org/
18platforms           darwin
19master_sites        http://oligarchy.co.uk/xapian/${version}
20
21checksums           rmd160  8b74b62f314bce0f5211d91a565cea62f1663be9 \
22                    sha256  a55815ddff0bd5f79814b5964cc94299ecf8f7ebafea11523aa0787f6082e3d7
23
24depends_lib         port:xapian-core
25
26configure.args      --without-python --without-csharp --without-java \
27                    --without-tcl --without-php --without-ruby --without-perl
28
29variant     ruby description {builds ruby bindings} {
30                    configure.args-delete  --without-ruby
31                    configure.args-append  --with-ruby
32                    depends_lib-append port:ruby
33                }
34variant     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                }
39variant     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                }
45variant     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                }
51variant     java description {builds java bindings} {
52                    configure.args-delete  --without-java
53                    configure.args-append  --with-java
54                }
55default_variants +ruby
56
57post-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}