From 1b3e8aa74ec522d036a6538c356dc7be8ecbe742 Mon Sep 17 00:00:00 2001 From: begasus Date: Sat, 25 Mar 2017 00:59:05 +0000 Subject: [PATCH] enchant, update recipe to work and install --- app-text/enchant/enchant-1.6.0.recipe | 97 +++++++++++++++++++++------ 1 file changed, 77 insertions(+), 20 deletions(-) diff --git a/app-text/enchant/enchant-1.6.0.recipe b/app-text/enchant/enchant-1.6.0.recipe index 02480eb52..783416a84 100644 --- a/app-text/enchant/enchant-1.6.0.recipe +++ b/app-text/enchant/enchant-1.6.0.recipe @@ -1,34 +1,91 @@ -DESCRIPTION="Generic spell-checking dictionary library" +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" -REVISION="2" +CHECKSUM_SHA256="2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f" -STATUS_HAIKU="broken" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" -DEPEND="dev-util/pkgconfig >= 0.23 - sys-devel/gettext >= 0.17 - dev-lib/glib >= 2.24.2 - app-text/aspell >= 0.60.6" +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 + " -CHECKSUM_MD5="de11011aff801dc61042828041fb59c7" +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() { - cd enchant-1.6.0 - cp /boot/common/share/libtool/config/config.* . - libtoolize --force --copy - aclocal - automake --add-missing - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make + autogen.sh + runConfigure ./configure + + make $jobArgs } INSTALL() { - cd enchant-1.6.0 - make install DESTDIR=${DESTDIR} + make install + + rm $libDir/enchant/*.la + + prepareInstalledDevelLib \ + libenchant + + packageEntries devel \ + $developDir } -LICENSE="GNU LGPL v2.1" -COPYRIGHT="2003-2010 Dom Lachowicz" +TEST() +{ + make check +}