Ticket #24767: Portfile

File Portfile, 3.1 KB (added by n0ts (Naoya Nakazawa), 14 years ago)

Portfile for thrift

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name              thrift
6version           0.2.0
7
8categories        devel
9maintainers       gmail.com:naoya.n
10platforms         darwin
11
12description       Thrift is a software framework for scalable cross-language \
13services development. It combines a software stack with a code generation \
14engine to build services that work efficiently and seamlessly between C++, \
15Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, \
16and OCaml.
17homepage          http://incubator.apache.org/thrift/
18
19master_sites      http://www.apache.org/dist/incubator/${name}/${version}-incubating/
20distname          ${name}-${version}-incubating
21worksrcdir        ${name}-${version}
22use_bzip2         no
23checksums         md5 9958c57c402c02171ba0bcc96183505c \
24                  sha1 1f622daab73043b253e416ff8afbf5a459d3ab48 \
25                  rmd160 235a3bbaccd6cf221a32af5905b7d102907881f8
26
27depends_build     port:zlib port:boost
28
29configure.args    --enable-gen-cpp --enable-gen-java --enable-gen-csharp=no --enable-gen-py=no --enable-gen-rb=no --enable-gen-perl=no --enable-gen-php=no --enable-gen-erl=no --enable-gen-cocoa=no --enable-gen-st=no --enable-gen-ocaml=no --enable-gen-hs=no --enable-gen-xsd=no --enable-gen-html=no --with-csharp=no --with-java=no --with-erlang=no --with-py=no --with-perl=no --with-ruby=no
30
31default_variants  +java +py +rb +perl
32
33variant java description "enable the Java compiler" {
34    configure.args-append   --enable-gen-java=yes --with-java=yes
35}
36
37variant csharp description "enable the C# compiler" {
38    configure.args-append   --enable-gen-csharp=yes --with-csharp=yes
39    depends_lib-append      port:mono
40}
41
42variant py description "enable the Python compiler" {
43    configure.args-append   --enable-gen-py=yes --with-python=yes
44    depends_lib-append      port:python26
45}
46
47variant rb description "enable the Ruby compiler" {
48    configure.args-append   --enable-gen-rb=yes --with-ruby=yes
49    depends_lib-append      port:ruby
50}
51
52variant perl description "enable the Perl compiler" {
53    configure.args-append   --enable-gen-perl=yes --with-perl=yes
54    depends_lib-append      port:perl5 port:p5-class-accessor port:p5-bit-vector
55}
56
57variant php description "enable the PHP compiler" {
58    configure.args-append   --enable-gen-php=yes
59    depends_lib-append      port:php5
60}
61
62variant erl description "enable the Erlang compiler" {
63    configure.args-append   --enable-gen-erl=yes --with-erlang=yes
64    depends_lib-append      port:erlang
65}
66
67variant cocoa description "enable the Cocoa compiler" {
68    configure.args-append   --enable-gen-cocoa=yes
69}
70
71variant st description "enable the Smalltalk compiler" {
72    configure.args-append   --enable-gen-st=yes
73}
74
75variant ocaml description "enable the OCaml compiler" {
76    configure.args-append   --enable-gen-ocaml=yes
77}
78
79variant hs description "enable the Haskell compiler" {
80    configure.args-append   --enable-gen-hs=yes
81}
82
83variant xsd description "enable the XSD compiler" {
84    configure.args-append   --enable-gen-xsd=yes
85}
86
87variant html description "enable the HTML compiler" {
88    configure.args-append   --enable-gen-html=yes
89}