Ticket #24767: Portfile.2

File Portfile.2, 2.1 KB (added by kenny@…, 14 years ago)
Line 
1# $Id: $
2
3PortSystem 1.0
4
5name              thrift
6version           0.4.0
7
8categories        devel
9maintainers       gmail.com:naoya.n
10platforms         darwin
11
12description       Thrift is a software framework for scalable cross-language services development
13
14long_description  Thrift is a software framework for scalable cross-language \
15services development. It combines a software stack with a code generation \
16engine to build services that work efficiently and seamlessly between C++, \
17Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, \
18and OCaml.
19
20homepage          http://incubator.apache.org/thrift/
21
22master_sites      http://www.apache.org/dist/incubator/${name}/${version}-incubating/
23distname          ${name}-${version}
24worksrcdir        ${name}-${version}
25checksums         md5 bb8466e5b884e9edef862a64f57abe38 \
26                  sha1 bcd5eb1ef2b108515c8210a45ae4d51e68c81aa5 \
27                  rmd160 6b499e8c34bc33ddd5403836a29073dd921956e5
28
29depends_build     port:zlib port:boost
30
31configure.args    --with-csharp=no --with-java=no --with-erlang=no --with-py=no --with-perl=no --with-ruby=no
32
33default_variants  +java +py +rb +perl
34
35variant java description "enable the Java library" {
36    configure.args-append   --with-java=yes
37}
38
39variant csharp description "enable the C# library" {
40    configure.args-append   --with-csharp=yes
41    depends_lib-append      port:mono
42}
43
44variant py description "enable the Python library" {
45    configure.args-append   --with-py=yes
46    depends_lib-append      port:python26
47}
48
49variant rb description "enable the Ruby library" {
50    configure.args-append   --with-ruby=yes
51    depends_lib-append      port:ruby
52}
53
54variant perl description "enable the Perl library" {
55    configure.args-append   --with-perl=yes
56    depends_lib-append      path:bin/perl:perl5 port:p5-class-accessor port:p5-bit-vector
57}
58
59variant php description "enable the PHP library" {
60    configure.args-append   --with-php=yes
61    depends_lib-append      path:bin/php:php5
62}
63
64variant erl description "enable the Erlang library" {
65    configure.args-append   --with-erlang=yes
66    depends_lib-append      port:erlang
67}