mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
109 lines
3.0 KiB
Bash
109 lines
3.0 KiB
Bash
SUMMARY="Spellchecker, forked from myspell"
|
|
DESCRIPTION="Hunspell is a spell checker and morphological analyzer library \
|
|
and program designed for languages with rich morphology and complex word \
|
|
compounding or character encoding."
|
|
HOMEPAGE="https://hunspell.github.io/"
|
|
COPYRIGHT="2007-2016 Hunspell developers et al.
|
|
2002-2008 László Németh (Hunspell)
|
|
2001-2002 Kevin Hendricks (MySpell)"
|
|
LICENSE="GNU GPL v2
|
|
GNU LGPL v2.1
|
|
MPL v1.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/hunspell/hunspell/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="852c01a2e3b87eb1f2adb5261466608ba79f1f950202e18a2a1735de5098fc59"
|
|
SOURCE_FILENAME="hunspell-$portVersion.tar.gz"
|
|
srcGitRev_2="f3a2e939f24bc4369f26c10019588db46a576c80"
|
|
SOURCE_URI_2="https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/hunspell/files/$SOURCE_FILENAME_2?id=$srcGitRev_2#noarchive"
|
|
CHECKSUM_SHA256_2="274a5632519986abd7824266dafa2e2073f3634df0a81efb72101b8cd9e8a94f"
|
|
SOURCE_FILENAME_2="hunspell-1.5.0-renameexes.patch"
|
|
PATCHES="hunspell-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 !x86"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
cmd:affixcompress$secondaryArchSuffix = $portVersion
|
|
cmd:hunspell$secondaryArchSuffix = $portVersion
|
|
cmd:hunspell_analyze$secondaryArchSuffix = $portVersion
|
|
cmd:hunspell_chmorph$secondaryArchSuffix = $portVersion
|
|
cmd:hunspell_munch$secondaryArchSuffix = $portVersion
|
|
cmd:hunspell_unmunch$secondaryArchSuffix = $portVersion
|
|
cmd:hunzip$secondaryArchSuffix = $portVersion
|
|
cmd:hzip$secondaryArchSuffix = $portVersion
|
|
cmd:ispellaff2myspell$secondaryArchSuffix = $portVersion
|
|
cmd:makealias$secondaryArchSuffix = $portVersion
|
|
cmd:wordforms$secondaryArchSuffix = $portVersion
|
|
cmd:wordlist2hunspell$secondaryArchSuffix = $portVersion
|
|
lib:libhunspell_${portVersion%.*}$secondaryArchSuffix = 0.0.0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
hunspell${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libhunspell_${portVersion%.*}$secondaryArchSuffix = 0.0.0
|
|
"
|
|
REQUIRES_devel="
|
|
hunspell$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
patch -p1 -i $sourceDir2/$SOURCE_FILENAME_2
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal -I m4
|
|
autoconf
|
|
automake --add-missing
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/charset.alias $libDir/*.la
|
|
|
|
# remove any existing (but empty) data/locale/*/LC_MESSAGES directory
|
|
rmdir $dataDir/locale/*/LC_MESSAGES $dataDir/locale/* || true
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $dataDir $documentationDir
|
|
maybe_manDir_man3=
|
|
else
|
|
maybe_manDir_man3=$manDir/man3
|
|
fi
|
|
|
|
prepareInstalledDevelLibs libhunspell-${portVersion%.*}
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$maybe_manDir_man3
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|