[133873] trunk/dports/devel/libphonenumber-cpp/Portfile

devans at macports.org devans at macports.org
Sat Mar 14 04:05:53 PDT 2015


Revision: 133873
          https://trac.macports.org/changeset/133873
Author:   devans at macports.org
Date:     2015-03-14 04:05:53 -0700 (Sat, 14 Mar 2015)
Log Message:
-----------
libphonenumber-cpp: update to version 7.0.2, fetch from github instead of googlecode, fix build for systems using libc++, enable test phase, livecheck.

Modified Paths:
--------------
    trunk/dports/devel/libphonenumber-cpp/Portfile

Modified: trunk/dports/devel/libphonenumber-cpp/Portfile
===================================================================
--- trunk/dports/devel/libphonenumber-cpp/Portfile	2015-03-14 04:25:26 UTC (rev 133872)
+++ trunk/dports/devel/libphonenumber-cpp/Portfile	2015-03-14 11:05:53 UTC (rev 133873)
@@ -3,10 +3,12 @@
 
 PortSystem          1.0
 PortGroup           cmake 1.0
+PortGroup           github 1.0
 
+# version 7.0.3 is broken, wait for 7.0.4
+github.setup        googlei18n libphonenumber 7.0.2 libphonenumber-
+
 name                libphonenumber-cpp
-version             6.3.1
-revision            1
 license             Apache-2.0
 description         Google's C++ library for parsing, formatting, storing \
                     and validating international phone numbers.
@@ -14,21 +16,19 @@
 maintainers         devans openmaintainer
 categories          devel
 platforms           darwin
-homepage            http://code.google.com/p/libphonenumber/
 
-fetch.type          svn
-svn.url             http://libphonenumber.googlecode.com/svn/trunk/
-svn.revision        708
+checksums           rmd160  9c84cbe81631d5669f1775f569b3a85a0b96dcd8 \
+                    sha256  28ef6cce56398c4b1fb2724a3757479a72eb5d13160d7bb36f0595e48c445682
 
-worksrcdir          trunk/cpp
+worksrcdir          ${worksrcdir}/cpp
 
 set gtest_version   1.7.0
-set gtest_dir       ${workpath}/trunk
-set gtest_archive   gtest-${gtest_version}.zip
+set gtest_dir       ${workpath}
+set gtest_archive   v${gtest_version}.zip
 set gtest_srcdir    ${gtest_dir}/gtest-${gtest_version}
-set gtest_url       http://googletest.googlecode.com/files
+set gtest_url       https://github.com/neloe/gtest/archive
 
-post-fetch {
+post-extract {
     curl fetch ${gtest_url}/${gtest_archive} ${gtest_dir}/${gtest_archive}
     system "/usr/bin/unzip -d ${gtest_dir} ${gtest_dir}/${gtest_archive}"
 }
@@ -46,4 +46,13 @@
                     -DGTEST_SOURCE_DIR=${gtest_srcdir} \
                     -DGTEST_INCLUDE_DIR=${gtest_srcdir}/include
 
-livecheck.type      none
+platform darwin {
+    if {${configure.cxx_stdlib} eq "libc++"} {
+       configure.args-append \
+                    -DUSE_STD_MAP=ON
+    }
+}
+
+test.run            yes
+test.cmd            ./libphonenumber_test
+test.target
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150314/c9525db1/attachment.html>


More information about the macports-changes mailing list