Files
haikuports/app-text/enchant/enchant-1.6.0.recipe
2017-04-22 16:32:03 -04:00

92 lines
2.7 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-2010 Dom Lachowicz"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz"
CHECKSUM_SHA256="2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
enchant$secondaryArchSuffix = $portVersion
cmd:enchant$secondaryArchSuffix
cmd:enchant_lsmod$secondaryArchSuffix
lib:libenchant$secondaryArchSuffix = 1.16.0 compat >= 1
lib:libenchant_ispell$secondaryArchSuffix
lib:libenchant_myspell$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libaspell$secondaryArchSuffix
#lib:libhunspell_1.4$secondaryArchSuffix #needs an working version
lib:libpspell$secondaryArchSuffix #still doesn't seem to be picked up
lib:libglib_2.0$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
enchant${secondaryArchSuffix} = $portVersion
devel:libenchant$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
enchant$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libaspell$secondaryArchSuffix
#devel:libhunspell_1.6.0$secondaryArchSuffix #needs an working version
devel:libpspell$secondaryArchSuffix #still doesn't seem to be picked up
devel:libglib_2.0$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autogen.sh
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/enchant/*.la
prepareInstalledDevelLib \
libenchant
packageEntries devel \
$developDir
}
TEST()
{
make check
}