Ticket #24767: Portfile.050.2

File Portfile.050.2, 2.7 KB (added by kangas@…, 14 years ago)

Improved version of Anatol's Portfile.050

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.5.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://incubator.apache.org/thrift/
22
23master_sites      http://www.apache.org/dist/incubator/${name}/${version}-incubating/
24distname          ${name}-${version}
25worksrcdir        ${name}-${version}
26checksums         md5 14c97adefb4efc209285f63b4c7f51f2 \
27                  sha1 f6bef78306fd7b407646d3a03ce4cd3bd05424a0 \
28                  rmd160 a89dca0263ccdc6cc08faa7ba1409099922fb6e5
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}