Files
haikuports/app-text/gtkspell/gtkspell3-3.0.10.recipe
2022-12-24 17:39:53 +01:00

104 lines
2.6 KiB
Bash

SUMMARY="Spell checking widget for GTK"
DESCRIPTION="GtkSpell provides word-processor-style highlighting and replacement of misspelled \
words in a GtkTextView widget. Right-clicking a misspelled word pops up a menu of suggested replacements."
HOMEPAGE="http://gtkspell.sourceforge.net/"
COPYRIGHT="2002 Evan Martin
2012-2013 Sandro Mani"
LICENSE="GNU GPL v2"
REVISION="4"
SOURCE_URI="https://sourceforge.net/projects/gtkspell/files/$portVersion/gtkspell3-$portVersion.tar.xz"
CHECKSUM_SHA256="b040f63836b347eb344f5542443dc254621805072f7141d49c067ecb5a375732"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.2.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
gtkspell3$secondaryArchSuffix = $portVersion
lib:libgtkspell3_3$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libatk_1.0$secondaryArchSuffix
lib:libcairo$secondaryArchSuffix
lib:libenchant_2$secondaryArchSuffix
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
lib:libgirepository_1.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgtk_3$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpango_1.0$secondaryArchSuffix
"
PROVIDES_devel="
gtkspell3${secondaryArchSuffix}_devel = $portVersion
devel:libgtkspell3_3$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
gtkspell3$secondaryArchSuffix == $portVersion base
devel:libenchant_2$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgtk_3$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
harfbuzz${secondaryArchSuffix}_glib
devel:libenchant_2$secondaryArchSuffix
devel:libgirepository_1.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgtk_3$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:intltool_update
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:valac
cmd:vapigen
"
defineDebugInfoPackage gtkspell3$secondaryArchSuffix \
$libDir/libgtkspell3-3.so.$libVersion
BUILD()
{
autoconf
runConfigure ./configure \
--disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/*.la
prepareInstalledDevelLib libgtkspell3-3
fixPkgconfig
# fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
sed -i 's,\/headers/x86,\/headers/x86/gtkspell-3.0,g' \
$prefix/$relativeDevelopLibDir/pkgconfig/gtkspell3-3.0.pc
else
sed -i 's,\/headers,\/headers/gtkspell-3.0,g' \
$prefix/$relativeDevelopLibDir/pkgconfig/gtkspell3-3.0.pc
fi
packageEntries devel \
$developDir
}
TEST()
{
make check
}