mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 16:50:06 +02:00
88 lines
2.0 KiB
Bash
88 lines
2.0 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="1"
|
|
SOURCE_URI="https://github.com/LibreOffice/libexttextcat/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3a5247a7df5d4686d077a7cbe733f3d7aa7869a37ba60bf2d3b0714acfe618d1"
|
|
SOURCE_FILENAME="libexttextcat-$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="all ?x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="0.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libexttextcat$secondaryArchSuffix = $portVersion
|
|
lib:libexttextcat_2.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
libexttextcat${secondaryArchSuffix}_tools
|
|
cmd:createfp$commandSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
libexttextcat$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libexttextcat${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libexttextcat_2.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libexttextcat$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--disable-static \
|
|
--disable-werror
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLib \
|
|
libexttextcat-2.0
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$dataDir/vala $developDir
|
|
packageEntries tools \
|
|
$commandBinDir
|
|
}
|