Ticket #24767: Portfile.050

File Portfile.050, 2.3 KB (added by anatol (Anatol Pomozov), 14 years ago)

Portfile fot Thrift 0.5.0

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name              thrift
6version           0.5.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 14c97adefb4efc209285f63b4c7f51f2 \
26                  sha1 f6bef78306fd7b407646d3a03ce4cd3bd05424a0 \
27                  rmd160 a89dca0263ccdc6cc08faa7ba1409099922fb6e5
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 --with-haskell=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 haskell description "enable the Haskell library" {
55    configure.args-append   --with-haskell=yes
56    depends_lib-append      port:ghc
57}
58variant perl description "enable the Perl library" {
59    configure.args-append   --with-perl=yes
60    depends_lib-append      path:bin/perl:perl5 port:p5-class-accessor port:p5-bit-vector
61}
62
63variant php description "enable the PHP library" {
64    configure.args-append   --with-php=yes
65    depends_lib-append      path:bin/php:php5
66}
67
68variant erl description "enable the Erlang library" {
69    configure.args-append   --with-erlang=yes
70    depends_lib-append      port:erlang
71}