Add recipe for libexttextcat.

libreoffice tries to download this at build time, so I guess we should
have a port.
This commit is contained in:
Adrien Destugues
2018-07-22 10:08:21 +02:00
parent 3e6b2bd7fa
commit 7a829f54e4

View File

@@ -0,0 +1,64 @@
SUMMARY="N-Gram-Based Text Categorization library"
DESCRIPTION="libexttextcat is an N-Gram-Based Text Categorization library \
primarily intended for language guessing.
Fundamentally this is an adaption of wiseguys libtextcat extended to be UTF-8 \
aware."
HOMEPAGE="https://github.com/LibreOffice/libexttextcat"
COPYRIGHT="2003, WiseGuys Internet B.V."
LICENSE="BSD (3-clause)"
SOURCE_URI="https://github.com/LibreOffice/libexttextcat/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="libexttextcat-$portVersion.tar.gz"
CHECKSUM_SHA256="a2fce2088cacd6d831d9180186006bb2ffe35a2126cb1754a325a1b40f75e090"
REVISION="1"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libexttextcat$secondaryArchSuffix = $portVersion
lib:libexttextcat_2.0$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libexttextcat${secondaryArchSuffix}_devel = $portVersion
cmd:createfp$secondaryArchSuffix
devel:libexttextcat_2.0$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
haiku$secondaryArchSuffix
haiku${secondaryArchSuffix}_devel
libexttextcat$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:libtoolize
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:which
"
BUILD()
{
./autogen.sh
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
libexttextcat-2.0
packageEntries devel \
$developDir $binDir
}