[110166] trunk/dports/devel

devans at macports.org devans at macports.org
Tue Aug 27 12:25:39 PDT 2013


Revision: 110166
          https://trac.macports.org/changeset/110166
Author:   devans at macports.org
Date:     2013-08-27 12:25:39 -0700 (Tue, 27 Aug 2013)
Log Message:
-----------
libphonenumber-cpp: new port, Google's C++ library for manipulating phone numbers.

Added Paths:
-----------
    trunk/dports/devel/libphonenumber-cpp/
    trunk/dports/devel/libphonenumber-cpp/Portfile
    trunk/dports/devel/libphonenumber-cpp/files/
    trunk/dports/devel/libphonenumber-cpp/files/patch-cpp-CMakeLists.txt.diff

Added: trunk/dports/devel/libphonenumber-cpp/Portfile
===================================================================
--- trunk/dports/devel/libphonenumber-cpp/Portfile	                        (rev 0)
+++ trunk/dports/devel/libphonenumber-cpp/Portfile	2013-08-27 19:25:39 UTC (rev 110166)
@@ -0,0 +1,48 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+
+name                libphonenumber-cpp
+version             5.7.2
+license             Apache-3.0
+description         Google's C++ library for parsing, formatting, storing \
+                    and validating international phone numbers.
+long_description    ${description}
+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        602
+
+worksrcdir          trunk/cpp
+
+set gtest_version   1.6.0
+set gtest_dir       ${workpath}/trunk
+set gtest_archive   gtest-${gtest_version}.zip
+set gtest_srcdir    ${gtest_dir}/gtest-${gtest_version}
+set gtest_url       http://googletest.googlecode.com/files
+
+post-fetch {
+    curl fetch ${gtest_url}/${gtest_archive} ${gtest_dir}/${gtest_archive}
+    system "/usr/bin/unzip -d ${gtest_dir} ${gtest_dir}/${gtest_archive}"
+}
+
+patchfiles          patch-cpp-CMakeLists.txt.diff
+
+depends_build-append \
+                    port:pkgconfig
+
+depends_lib-append  port:boost \
+                    port:icu \
+                    port:protobuf-cpp
+
+configure.args-append \
+                    -DGTEST_SOURCE_DIR=${gtest_srcdir} \
+                    -DGTEST_INCLUDE_DIR=${gtest_srcdir}/include
+
+livecheck.type      none

Added: trunk/dports/devel/libphonenumber-cpp/files/patch-cpp-CMakeLists.txt.diff
===================================================================
--- trunk/dports/devel/libphonenumber-cpp/files/patch-cpp-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/devel/libphonenumber-cpp/files/patch-cpp-CMakeLists.txt.diff	2013-08-27 19:25:39 UTC (rev 110166)
@@ -0,0 +1,31 @@
+--- CMakeLists.txt.orig	2013-07-19 09:32:26.000000000 -0700
++++ CMakeLists.txt	2013-08-25 02:13:57.000000000 -0700
+@@ -87,7 +87,7 @@
+   if (WIN32)
+     set (Boost_USE_STATIC_LIBS ON)
+   endif ()
+-  find_package (Boost 1.40.0 COMPONENTS date_time thread)
++  find_package (Boost 1.40.0 COMPONENTS date_time thread system)
+   if (NOT Boost_FOUND)
+     print_error ("Boost Datetime/Thread" "Boost")
+   endif ()
+@@ -318,7 +318,7 @@
+ endif ()
+ 
+ if (NOT WIN32)
+-  add_definitions ("-Wall -Werror")
++  add_definitions ("-Wall")
+ endif ()
+ 
+ include_directories ("src")
+@@ -401,8 +401,8 @@
+   list (APPEND GEOCODER_DEPS ${COMMON_DEPS})
+   # Note that the subset of base/ on which the geocoder relies is implemented
+   # on top of Boost header-only libraries (e.g. scoped_ptr.hpp).
+-  target_link_libraries (geocoding ${LIBRARY_DEPS})
+-  target_link_libraries (geocoding-shared ${LIBRARY_DEPS})
++  target_link_libraries (geocoding phonenumber ${LIBRARY_DEPS})
++  target_link_libraries (geocoding-shared phonenumber-shared ${LIBRARY_DEPS})
+ endif ()
+ 
+ # Build a specific library for testing purposes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130827/7ef3ab0f/attachment.html>


More information about the macports-changes mailing list