67 lines
1.5 KiB
Bash
67 lines
1.5 KiB
Bash
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)"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/LibreOffice/libexttextcat/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a2fce2088cacd6d831d9180186006bb2ffe35a2126cb1754a325a1b40f75e090"
|
|
SOURCE_FILENAME="libexttextcat-$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="all ?x86_gcc2 ?x86"
|
|
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:gcc$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs \
|
|
libexttextcat-2.0
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$dataDir/vala $developDir $binDir
|
|
}
|