source: trunk/dports/devel/libphonenumber-cpp/Portfile

Last change on this file was 154305, checked in by devans@…, 11 months ago

libphonenumber-cpp: update to version 7.7.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 154305 2016-10-26 20:45:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8cmake.out_of_source yes
9
10github.setup        googlei18n libphonenumber 7.7.3 libphonenumber-
11
12name                libphonenumber-cpp
13license             Apache-2
14description         Google's C++ library for parsing, formatting, storing \
15                    and validating international phone numbers.
16long_description    ${description}
17maintainers         devans openmaintainer
18categories          devel
19platforms           darwin
20
21checksums           rmd160  c78c3df96bc701c41eda5b3ed161351a86b4bdc6 \
22                    sha256  e5a8aecd93f113e1fa1d6662268197d515cd82662e7a6a430438341d7822a3f2
23
24dist_subdir         ${name}/${version}_1
25worksrcdir          ${worksrcdir}/cpp
26
27set gtest_version   1.7.0
28set gtest_dir       ${workpath}
29set gtest_archive   v${gtest_version}.zip
30set gtest_srcdir    ${gtest_dir}/gtest-${gtest_version}
31set gtest_url       https://github.com/neloe/gtest/archive
32
33post-extract {
34    curl fetch ${gtest_url}/${gtest_archive} ${gtest_dir}/${gtest_archive}
35    system "/usr/bin/unzip -d ${gtest_dir} ${gtest_dir}/${gtest_archive}"
36}
37
38patchfiles          patch-cpp-CMakeLists.txt.diff
39
40depends_build-append \
41                    port:pkgconfig
42
43depends_lib-append  port:boost \
44                    port:icu \
45                    port:protobuf-cpp
46
47configure.args-append \
48                    -DGTEST_SOURCE_DIR=${gtest_srcdir} \
49                    -DGTEST_INCLUDE_DIR=${gtest_srcdir}/include
50
51platform darwin {
52    if {${configure.cxx_stdlib} eq "libc++"} {
53       configure.args-append \
54                    -DUSE_STD_MAP=ON
55    }
56}
57
58test.run            yes
59test.cmd            ./libphonenumber_test
60test.target
Note: See TracBrowser for help on using the repository browser.