Ticket #24767: Portfile.060

File Portfile.060, 2.6 KB (added by kenny.macdermid@…, 14 years ago)

Portfile for 0.6.0

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