# -*- 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
github.setup googlei18n libphonenumber 8.8.8 v
description Google's C++ library for parsing, formatting, storing \
and validating international phone numbers.
long_description ${description}
maintainers {devans @dbevans} openmaintainer
checksums rmd160 cf5710025291a2b75104b842847109df5659c0b2 \
sha256 9bb26d9e74f6809dc36f3fa1837bd24e8d736509f1e791dda81c7c26c7035745
worksrcdir ${worksrcdir}/cpp
set gtest_dir ${workpath}
set gtest_archive v${gtest_version}.zip
set gtest_srcdir ${gtest_dir}/gtest-${gtest_version}
set gtest_url https://github.com/neloe/gtest/archive
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_lib-append port:boost \
-DGTEST_SOURCE_DIR=${gtest_srcdir} \
-DGTEST_INCLUDE_DIR=${gtest_srcdir}/include
if {${configure.cxx_stdlib} eq "libc++"} {
test.cmd ./libphonenumber_test