mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
utfcpp, new dependency for taglib2.0 (#10024)
This commit is contained in:
23
dev-libs/utfcpp/licenses/Boost v1.0
Normal file
23
dev-libs/utfcpp/licenses/Boost v1.0
Normal file
@@ -0,0 +1,23 @@
|
||||
Boost Software License - Version 1.0 - August 17th, 2003
|
||||
|
||||
Permission is hereby granted, free of charge, to any person or organization
|
||||
obtaining a copy of the software and accompanying documentation covered by
|
||||
this license (the "Software") to use, reproduce, display, distribute,
|
||||
execute, and transmit the Software, and to prepare derivative works of the
|
||||
Software, and to permit third-parties to whom the Software is furnished to
|
||||
do so, all subject to the following:
|
||||
|
||||
The copyright notices in the Software and this entire statement, including
|
||||
the above license grant, this restriction and the following disclaimer,
|
||||
must be included in all copies of the Software, in whole or in part, and
|
||||
all derivative works of the Software, unless such copies or derivative
|
||||
works are solely in the form of machine-executable object code generated by
|
||||
a source language processor.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
||||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
42
dev-libs/utfcpp/patches/utfcpp-4.0.5.patchset
Normal file
42
dev-libs/utfcpp/patches/utfcpp-4.0.5.patchset
Normal file
@@ -0,0 +1,42 @@
|
||||
From 0f633f28e9b6e4a8a6e944e77f028d1b1bdef72d Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Mon, 29 Jan 2024 14:49:50 +0100
|
||||
Subject: Fix header installation path
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f24f9b6..68dfd22 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -13,7 +13,7 @@ include(GNUInstallDirs)
|
||||
|
||||
target_include_directories(utf8cpp INTERFACE
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/source>"
|
||||
- $<INSTALL_INTERFACE:include/utf8cpp>
|
||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/utf8cpp>
|
||||
)
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
@@ -29,8 +29,8 @@ install(TARGETS ${PROJECT_NAME}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
- PUBLIC_HEADER DESTINATION include COMPONENT Development
|
||||
- BUNDLE DESTINATION bin COMPONENT Runtime
|
||||
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT Development
|
||||
+ BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime
|
||||
)
|
||||
|
||||
configure_package_config_file(
|
||||
@@ -48,6 +48,6 @@ install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
||||
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
|
||||
|
||||
-install(FILES ${PROJECT_SOURCE_DIR}/source/utf8.h DESTINATION include/utf8cpp)
|
||||
+install(FILES ${PROJECT_SOURCE_DIR}/source/utf8.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/utf8cpp)
|
||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/source/utf8 DESTINATION
|
||||
- include/utf8cpp)
|
||||
+ ${CMAKE_INSTALL_INCLUDEDIR}/utf8cpp)
|
||||
--
|
||||
2.42.1
|
||||
|
||||
54
dev-libs/utfcpp/utfcpp-4.0.5.recipe
Normal file
54
dev-libs/utfcpp/utfcpp-4.0.5.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="UTF-8 with C++ in a Portable Way"
|
||||
DESCRIPTION="C++ developers still miss an easy and portable way of handling Unicode encoded \
|
||||
strings. The original C++ standard (known as C++98 or C++03) is Unicode agnostic. Some progress \
|
||||
has been made in the later editions of the standard, but it is still hard to work with Unicode \
|
||||
using only the standard facilities.
|
||||
|
||||
I came up with a small, C++98 compatible generic library in order to handle UTF-8 encoded strings. \
|
||||
For anybody used to work with STL algorithms and iterators, it should be easy and natural to use. \
|
||||
The code is freely available for any purpose - check out the [license](./LICENSE). The library has \
|
||||
been used a lot since the first release in 2006 both in commercial and open-source projects and \
|
||||
proved to be stable and useful."
|
||||
HOMEPAGE="https://github.com/nemtrif/utfcpp"
|
||||
COPYRIGHT="2006-2022 Nemanja Trifunovic"
|
||||
LICENSE="Boost v1.0"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ffc668a310e77607d393f3c18b32715f223da1eac4c4d6e0579a11df8e6b59cf"
|
||||
PATCHES="utfcpp-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
utfcpp = $portVersion
|
||||
devel:utfcpp = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user