new packages: libphonenumber and futuresql
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
||||
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
|
||||
def setup():
|
||||
shelltools.makedirs("cpp/build")
|
||||
shelltools.cd("cpp/build")
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_STATIC_LIBS=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr", sourceDir="..")
|
||||
|
||||
def build():
|
||||
shelltools.cd("cpp/build")
|
||||
cmaketools.make()
|
||||
|
||||
|
||||
def install():
|
||||
shelltools.cd("cpp/build")
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
# No static libs
|
||||
pisitools.remove("/usr/lib/*.a")
|
||||
|
||||
shelltools.cd("../..")
|
||||
pisitools.dodoc("LICENSE")
|
||||
@@ -0,0 +1,36 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Tue, 29 Apr 2025 19:58:36 +0200
|
||||
Subject: [PATCH] Remove -Werror
|
||||
|
||||
---
|
||||
cpp/CMakeLists.txt | 2 +-
|
||||
tools/cpp/CMakeLists.txt | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
||||
index ad773567dde8..cd606e50ffb9 100644
|
||||
--- a/cpp/CMakeLists.txt
|
||||
+++ b/cpp/CMakeLists.txt
|
||||
@@ -416,7 +416,7 @@ if (USE_ICU_REGEXP)
|
||||
endif ()
|
||||
|
||||
if (NOT WIN32)
|
||||
- add_definitions ("-Wall -Werror")
|
||||
+ add_definitions ("-Wall")
|
||||
endif ()
|
||||
|
||||
include_directories ("src")
|
||||
diff --git a/tools/cpp/CMakeLists.txt b/tools/cpp/CMakeLists.txt
|
||||
index 314d91cf64c6..1ded960cc4fc 100644
|
||||
--- a/tools/cpp/CMakeLists.txt
|
||||
+++ b/tools/cpp/CMakeLists.txt
|
||||
@@ -25,7 +25,7 @@ set (
|
||||
)
|
||||
|
||||
if (NOT WIN32)
|
||||
- add_definitions ("-Wall -Werror")
|
||||
+ add_definitions ("-Wall")
|
||||
endif ()
|
||||
|
||||
include_directories ("src")
|
||||
@@ -0,0 +1,31 @@
|
||||
https://gitlab.exherbo.org/exherbo/kde/-/blob/master/packages/dev-libs/libphonenumber/files/Link-the-test-program-to-the-shared-lib-to-allow-bui.patch?ref_type=heads
|
||||
https://github.com/google/libphonenumber/pull/2556 (previous version)
|
||||
|
||||
Upstream: no
|
||||
Reason: fails to link with -DBUILD_STATIC_LIB=OFF
|
||||
|
||||
From 0b50dcf8299e3c18cdc158f40aa97cdb0318b08e Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Steinhauser <berniyh@exherbo.org>
|
||||
Date: Tue, 10 Jan 2023 09:14:44 +0100
|
||||
Subject: [PATCH] Link the test program to the shared lib to allow building
|
||||
without static libs
|
||||
|
||||
---
|
||||
cpp/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
||||
index d2d111d5..932b5e63 100644
|
||||
--- a/cpp/CMakeLists.txt
|
||||
+++ b/cpp/CMakeLists.txt
|
||||
@@ -599,7 +599,7 @@ if(BUILD_TESTING)
|
||||
# libraries are built properly.
|
||||
if (BUILD_GEOCODER)
|
||||
add_executable (geocoding_test_program "test/phonenumbers/geocoding/geocoding_test_program.cc")
|
||||
- target_link_libraries (geocoding_test_program geocoding phonenumber)
|
||||
+ target_link_libraries (geocoding_test_program geocoding-shared phonenumber-shared)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
--
|
||||
2.39.0
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libphonenumber</Name>
|
||||
<Homepage>https://github.com/googlei18n/libphonenumber</Homepage>
|
||||
<Packager>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>Apache</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Google's common library for parsing, formatting, and validating international phone numbers</Summary>
|
||||
<Description>Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0</Description>
|
||||
<Archive sha1sum="ad6c4dc459b9029b3eaad5f4431a756a2a040291" type="targz">https://github.com/google/libphonenumber/archive/refs/tags/v9.0.9.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>git</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
<Dependency>boost-devel</Dependency>
|
||||
<Dependency>icu4c-devel</Dependency>
|
||||
<Dependency>gtest-devel</Dependency>
|
||||
<Dependency>protobuf-devel</Dependency>
|
||||
<Dependency>abseil-cpp-devel</Dependency>
|
||||
<Dependency>jre8-openjdk-headless</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch>0002-Remove-Werror.patch</Patch>
|
||||
<Patch>libphonenumber-8.13.47-cmake.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libphonenumber</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>icu4c</Dependency>
|
||||
<Dependency>boost</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>protobuf</Dependency>
|
||||
<Dependency>abseil-cpp</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="library">/usr/lib/libgeocoding.so*</Path>
|
||||
<Path fileType="library">/usr/lib/libphonenumber.so*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libphonenumber-devel</Name>
|
||||
<RuntimeDependencies>
|
||||
|
||||
<Dependency>abseil-cpp-devel</Dependency>
|
||||
<Dependency release="current">libphonenumber</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/cmake</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2025-07-03</Date>
|
||||
<Version>9.0.9</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libphonenumber</Name>
|
||||
<Summary xml:lang="tr">Google'ın uluslararası telefon numaralarını ayrıştırma, biçimlendirme ve doğrulama için ortak kütüphanesi</Summary>
|
||||
<Description xml:lang="tr">Google'ın uluslararası telefon numaralarını ayrıştırma, biçimlendirme ve doğrulama için ortak Java, C++ ve JavaScript kitaplığı. Java sürümü akıllı telefonlarda çalışmak üzere optimize edilmiştir ve 4.0'dan beri Android çerçevesi tarafından kullanılmaktadır.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user