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

Last change on this file since 135232 was 135232, checked in by ryandesign@…, 5 years ago

icu: update to 55.1

  • 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 135232 2015-04-20 00:15:39Z 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.0.4 libphonenumber-
11
12name                libphonenumber-cpp
13revision            1
14license             Apache-2.0
15description         Google's C++ library for parsing, formatting, storing \
16                    and validating international phone numbers.
17long_description    ${description}
18maintainers         devans openmaintainer
19categories          devel
20platforms           darwin
21
22checksums           rmd160  9fb23e8b99adeea342d4246fae01b3635a07aab3 \
23                    sha256  9c47c7d30747ac2e69f0b7517b102321ff72311313d0f14801f3123fcd658cb3
24
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.