Files
haikuports/app-text/enchant/enchant-2.2.3.recipe
2019-04-06 13:13:08 -04:00

102 lines
2.8 KiB
Bash

SUMMARY="Generic spell-checking dictionary library"
DESCRIPTION="Enchant is also meant to be used in a cross-platform (XP) \
environment. Part of this means that Enchant wants to limit its number of \
external dependencies to 0, or as close is as humanly possible. Also, any \
enchant consumer (i.e. a Word Processor) should not need to know about what \
backend providers Enchant knows about. In fact, Enchant shouldn't even need \
to know this information itself. To accomplish this, all of Enchant's \
providers are DLLs.\
Enchant is also meant to be used in a multi-user environment, such as Unix.\
It is preferable to have both a \$USER and a \$GLOBAL location for both \
provider DLLs and for dictionaries themselves, when possible. Enchant's DLL\
location algorithm takes this into account, and gives preference to the \$USER \
DLLs, when found."
HOMEPAGE="http://abisource.com/projects/enchant/"
COPYRIGHT="2003-2018 Dom Lachowicz"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/AbiWord/enchant/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="f2c3e8d4afacf904a0e7eff349593719f01cdd646992e46d06f7ea355a5e1095"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
enchant$secondaryArchSuffix = $portVersion
cmd:enchant_2$secondaryArchSuffix
cmd:enchant_lsmod_2$secondaryArchSuffix
cmd:enchant_lsmod$secondaryArchSuffix
lib:libenchant_2$secondaryArchSuffix = $libVersionCompat
lib:enchant_aspell$secondaryArchSuffix
lib:enchant_hunspell$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libaspell$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libhunspell_1.6$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpspell$secondaryArchSuffix #still doesn't seem to be picked up
"
PROVIDES_devel="
enchant${secondaryArchSuffix} = $portVersion
devel:libenchant_2$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
enchant$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libaspell$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libhunspell_1.6$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libpspell$secondaryArchSuffix #still doesn't seem to be picked up
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:git # required
cmd:gpg$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:patch
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
sh bootstrap
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/enchant-2/*.la
rm $libDir/*.la
fixPkgconfig
prepareInstalledDevelLibs \
libenchant-2
packageEntries devel \
$developDir
}
TEST()
{
make check
}