mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Utf8Proc : bump, soname changed (#3917)
This commit is contained in:
75
dev-libs/libutf8proc/libutf8proc2-2.4.0.recipe
Normal file
75
dev-libs/libutf8proc/libutf8proc2-2.4.0.recipe
Normal file
@@ -0,0 +1,75 @@
|
||||
SUMMARY="A library for processing UTF-8 encoded Unicode strings"
|
||||
DESCRIPTION="utf8proc is a small, clean C library that provides Unicode \
|
||||
normalization, case-folding, and other operations for data in the UTF-8 \
|
||||
encoding, supporting Unicode version 7.0."
|
||||
HOMEPAGE="https://julialang.org/utf8proc/"
|
||||
COPYRIGHT="2006-2019 Public Software Group
|
||||
2014-2019 Steven G. Johnson, Jiahao Chen, Tony Kelman, Jonas Fonseca, \
|
||||
and other contributors listed in the git history"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/JuliaStrings/utf8proc/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b2e5d547c1d94762a6d03a7e05cea46092aab68636460ff8648f1295e2cdfbd7"
|
||||
SOURCE_FILENAME="utf8proc-$portVersion.tar.gz"
|
||||
SOURCE_DIR="utf8proc-$portVersion"
|
||||
PATCHES="libutf8proc2-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.3.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libutf8proc2$secondaryArchSuffix = $portVersion
|
||||
lib:libutf8proc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libutf8proc2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libutf8proc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libutf8proc2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
libutf8proc${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libutf8proc2$secondaryArchSuffix \
|
||||
$libDir/libutf8proc.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build_haiku && cd build_haiku
|
||||
cmake .. \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
$cmakeDirArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build_haiku
|
||||
make install
|
||||
prepareInstalledDevelLib libutf8proc
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build_haiku
|
||||
# make check # test cases not supported yet with cmake
|
||||
}
|
||||
33
dev-libs/libutf8proc/patches/libutf8proc2-2.4.0.patchset
Normal file
33
dev-libs/libutf8proc/patches/libutf8proc2-2.4.0.patchset
Normal file
@@ -0,0 +1,33 @@
|
||||
From 3aea3cc3481576f4505462a1da6329d7c5750b81 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sun, 9 Jun 2019 12:58:26 +0200
|
||||
Subject: Implement GNUInstallDirs
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7e8be20..a548d10 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -49,13 +49,15 @@ set_target_properties (utf8proc PROPERTIES
|
||||
)
|
||||
|
||||
if (UTF8PROC_INSTALL)
|
||||
+ include(GNUInstallDirs)
|
||||
+ mark_as_advanced(CLEAR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_INCLUDEDIR)
|
||||
install(TARGETS utf8proc
|
||||
- RUNTIME DESTINATION bin
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib)
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX})
|
||||
|
||||
install(
|
||||
FILES
|
||||
"${PROJECT_SOURCE_DIR}/utf8proc.h"
|
||||
- DESTINATION include)
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}${INSTALL_SUFFIX})
|
||||
endif()
|
||||
--
|
||||
2.21.0
|
||||
|
||||
Reference in New Issue
Block a user