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: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name thrift |
---|
7 | version 0.6.0 |
---|
8 | |
---|
9 | categories devel |
---|
10 | maintainers gmail.com:naoya.n |
---|
11 | platforms darwin |
---|
12 | |
---|
13 | description Thrift is a software framework for scalable cross-language services development |
---|
14 | |
---|
15 | long_description Thrift is a software framework for scalable cross-language \ |
---|
16 | services development. It combines a software stack with a code generation \ |
---|
17 | engine to build services that work efficiently and seamlessly between C++, \ |
---|
18 | Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, \ |
---|
19 | and OCaml. |
---|
20 | |
---|
21 | homepage http://thrift.apache.org/ |
---|
22 | |
---|
23 | master_sites http://www.apache.org/dist/${name}/${version}/ |
---|
24 | distname ${name}-${version} |
---|
25 | worksrcdir ${name}-${version} |
---|
26 | checksums md5 c1a9c679bc75d038ce5ef447bf6e4c75 \ |
---|
27 | sha1 5027cba1e901134a3b767ffd5af1d8a1b3cb40f5 \ |
---|
28 | rmd160 634a8ff7b6a41029358d671ec9e936ca905ef373 |
---|
29 | |
---|
30 | depends_build port:zlib port:boost |
---|
31 | |
---|
32 | configure.args --with-csharp=no --with-java=no --with-erlang=no --with-py=no \ |
---|
33 | --with-perl=no --with-ruby=no --with-haskell=no \ |
---|
34 | --with-php=no --with-php_extension=no |
---|
35 | |
---|
36 | configure.env-append JAVA_PREFIX=${prefix}/share/java |
---|
37 | configure.env-append PERL_PREFIX=${prefix} |
---|
38 | configure.env-append PHP_PREFIX=${prefix}/lib/php |
---|
39 | configure.env-append PY_PREFIX=${prefix}/Library/Frameworks/Python.framework/Versions/2.6 |
---|
40 | |
---|
41 | default_variants +java +py |
---|
42 | |
---|
43 | variant java description "enable the Java library" { |
---|
44 | configure.args-append --with-java=yes |
---|
45 | } |
---|
46 | |
---|
47 | variant csharp description "enable the C# library" { |
---|
48 | configure.args-append --with-csharp=yes |
---|
49 | depends_lib-append port:mono |
---|
50 | } |
---|
51 | |
---|
52 | variant py description "enable the Python library" { |
---|
53 | configure.args-append --with-py=yes |
---|
54 | depends_lib-append port:python26 |
---|
55 | } |
---|
56 | |
---|
57 | variant rb description "enable the Ruby library" { |
---|
58 | configure.args-append --with-ruby=yes |
---|
59 | depends_lib-append port:ruby |
---|
60 | } |
---|
61 | |
---|
62 | variant haskell description "enable the Haskell library" { |
---|
63 | configure.args-append --with-haskell=yes |
---|
64 | depends_lib-append port:ghc |
---|
65 | } |
---|
66 | variant perl description "enable the Perl library" { |
---|
67 | configure.args-append --with-perl=yes |
---|
68 | depends_lib-append path:bin/perl:perl5 port:p5-class-accessor port:p5-bit-vector |
---|
69 | } |
---|
70 | |
---|
71 | variant php description "enable the PHP library" { |
---|
72 | configure.args-append --with-php=yes |
---|
73 | depends_lib-append path:bin/php:php5 |
---|
74 | } |
---|
75 | |
---|
76 | variant erl description "enable the Erlang library" { |
---|
77 | configure.args-append --with-erlang=yes |
---|
78 | depends_lib-append port:erlang |
---|
79 | } |
---|