mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
sombok: new recipe
This commit is contained in:
53
dev-libs/sombok/patches/sombok-2.4.0.patchset
Normal file
53
dev-libs/sombok/patches/sombok-2.4.0.patchset
Normal file
@@ -0,0 +1,53 @@
|
||||
From 5acc96ddef7518a9fd9d3ece2cee6364e2ef13ef Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
||||
Date: Fri, 3 Jan 2025 20:52:10 +0100
|
||||
Subject: fix installation of docs
|
||||
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 87d287b..f756c7f 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -29,10 +29,12 @@ sombok_LDADD = libsombok.la
|
||||
TESTS = tests/*.t
|
||||
|
||||
if ENABLE_DOC
|
||||
-html_DATA = doc/html/*
|
||||
-MOSTLYCLEANFILES = stamp-html $(html_DATA)
|
||||
+html_DATA = doc/html/*.*
|
||||
+htmlsearchdir = $(docdir)/search
|
||||
+htmlsearch_DATA = doc/html/search/*
|
||||
+MOSTLYCLEANFILES = stamp-html $(html_DATA) $(htmlsearch_DATA)
|
||||
|
||||
-$(html_DATA): stamp-html
|
||||
+$(html_DATA) $(htmlsearch_DATA): stamp-html
|
||||
|
||||
stamp-html: doc/doxyfile $(include_HEADERS) $(nodist_include_HEADERS) \
|
||||
$(libsombok_la_SOURCES)
|
||||
--
|
||||
2.45.2
|
||||
|
||||
|
||||
From 47941fbefa06bb17fada0842e6ad5d5edbef3ffa Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
||||
Date: Fri, 3 Jan 2025 21:37:28 +0100
|
||||
Subject: fix tests
|
||||
|
||||
Automake doesn't support wildcards properly.
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index f756c7f..3521ad2 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -26,7 +26,7 @@ endif
|
||||
sombok_CFLAGS = -Iinclude
|
||||
sombok_LDFLAGS =
|
||||
sombok_LDADD = libsombok.la
|
||||
-TESTS = tests/*.t
|
||||
+TESTS = tests/01break.t tests/02hangul.t tests/03ns.t tests/05urgent.t tests/06context.t tests/07sea.t tests/09uri.t tests/11format.t tests/14sea_al.t
|
||||
|
||||
if ENABLE_DOC
|
||||
html_DATA = doc/html/*.*
|
||||
--
|
||||
2.45.2
|
||||
|
||||
91
dev-libs/sombok/sombok-2.4.0.recipe
Normal file
91
dev-libs/sombok/sombok-2.4.0.recipe
Normal file
@@ -0,0 +1,91 @@
|
||||
SUMMARY="Unicode Text Segmentation Package"
|
||||
DESCRIPTION="Sombok library package performs Line Breaking Algorithm described in Unicode \
|
||||
Standard Annex #14 (UAX #14). East_Asian_Width informative properties defined by Annex #11 (UAX \
|
||||
#11) may be concerned to determine breaking positions. This package also implements \"default\" \
|
||||
Grapheme Cluster segmentation described in Annex #29 (UAX #29)."
|
||||
HOMEPAGE="https://github.com/hatukanezumi/sombok"
|
||||
COPYRIGHT="2009-2014, by Hatuka*nezumi - IKEDA Soji"
|
||||
LICENSE="Artistic
|
||||
GNU GPL v1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/hatukanezumi/sombok/archive/refs/tags/sombok-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="14d9dcd3621bf9d591a7158aeac99b4d4a60296558173be51d57b54b8f9d70a2"
|
||||
SOURCE_DIR="sombok-sombok-$portVersion"
|
||||
PATCHES="sombok-$portVersion.patchset"
|
||||
|
||||
# test data:
|
||||
srcGitRev_2="dd46a7397228303b44b8a569a80fe9bf0131540c"
|
||||
SOURCE_URI_2="https://github.com/hatukanezumi/sombok-test-data/archive/$srcGitRev_2.tar.gz"
|
||||
CHECKSUM_SHA256_2="e025ce7422f7484f44db03f7f77c90c93b74ceea06ba4045ce0779d308836d3e"
|
||||
SOURCE_DIR_2="sombok-test-data-$srcGitRev_2"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="3.1.7"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
sombok$secondaryArchSuffix = $portVersion
|
||||
lib:libsombok$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libthai$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
sombok${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsombok$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
sombok$secondaryArchSuffix == $portVersion base
|
||||
devel:libthai$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libthai$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:doxygen
|
||||
cmd:libtool$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage sombok$secondaryArchSuffix \
|
||||
$libDir/libsombok.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure --disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool fille
|
||||
rm $libDir/libsombok.la
|
||||
|
||||
prepareInstalledDevelLib libsombok
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$documentationDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
mkdir -p test-data
|
||||
cp -r $sourceDir2/* test-data
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user