[95956] trunk/dports/devel

blair at macports.org blair at macports.org
Thu Jul 26 18:35:14 PDT 2012


Revision: 95956
          https://trac.macports.org/changeset/95956
Author:   blair at macports.org
Date:     2012-07-26 18:35:14 -0700 (Thu, 26 Jul 2012)
Log Message:
-----------
thrift-devel: new port copies from thrift; add +qt4 variant.

Modified Paths:
--------------
    trunk/dports/devel/thrift-devel/Portfile

Added Paths:
-----------
    trunk/dports/devel/thrift-devel/

Modified: trunk/dports/devel/thrift-devel/Portfile
===================================================================
--- trunk/dports/devel/thrift/Portfile	2012-07-27 01:15:40 UTC (rev 95955)
+++ trunk/dports/devel/thrift-devel/Portfile	2012-07-27 01:35:14 UTC (rev 95956)
@@ -3,9 +3,9 @@
 
 PortSystem      1.0
 
-name            thrift
-version         0.8.0
-revision        3
+name            thrift-devel
+conflicts       thrift
+version         1365183
 categories      devel
 license         Apache-2
 maintainers     gmail.com:naoya.n blair openmaintainer
@@ -20,18 +20,35 @@
     Haskell, C#, Cocoa, Smalltalk, and OCaml.
 
 homepage        http://thrift.apache.org/
-master_sites    apache:${name}/${version}
+fetch.type      svn
+svn.url         https://svn.apache.org/repos/asf/thrift/trunk
+svn.revision    ${version}
 
-checksums       md5     d29dfcd38d476cbc420b6f4d80ab966c \
-                sha1    1d652d7078d9cc70e2a45d3119b13e86ebd446da \
-                rmd160  bb0e1d2b6d30b70590752a7f9318e14de285c505
+worksrcdir      [file tail ${svn.url}]
 
 use_parallel_build  no
 
-depends_build       port:boost \
+depends_build       port:automake \
+                    port:boost \
                     port:pkgconfig
 depends_lib-append  port:openssl
 
+pre-configure {
+    # Currently the only way to disable detecting qt4-mac is by
+    # requiring a non-existent version of QtCore. See
+    # https://issues.apache.org/jira/browse/THRIFT-1661 .
+    if {![variant_isset qt4]} {
+        reinplace "s|QtCore >= 4|QtCore >= 99|g" ${worksrcpath}/configure.ac
+    }
+
+    system "cd ${worksrcpath} && ./bootstrap.sh"
+
+    # Remove when https://issues.apache.org/jira/browse/THRIFT-1614 is
+    # fixed.
+    reinplace "s|thrifty\.h|thrifty.hh|g" \
+        ${worksrcpath}/compiler/cpp/src/thriftl.ll
+}
+
 configure.args  --with-c_glib=no \
                 --with-csharp=no \
                 --with-d=no \
@@ -92,6 +109,10 @@
     depends_lib-append      port:erlang
 }
 
+# See https://issues.apache.org/jira/browse/THRIFT-1348.
+variant qt4 description "enable non-blocking thrift server for use within Qt" {
+}
+
 livecheck.type  regex
 livecheck.url   http://www.apache.org/dist/thrift/
 livecheck.regex {(\d+(?:\.\d+)*)/}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120726/db46c6ae/attachment-0001.html>


More information about the macports-changes mailing list