[x11-libs] Port of gtksourceview3 (#10279)

* [x11-libs] Port of gtksourceview3

* typo

* review comments by Begasus

* Update gtksourceview3-3.24.0.recipe

libVersion is 1.8.0

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

indentation

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo

* Update gtksourceview3-3.24.0.recipe

typo
This commit is contained in:
Anarchos
2024-04-10 20:32:14 +02:00
committed by GitHub
parent 20b442342c
commit 29734b8676

View File

@@ -0,0 +1,109 @@
SUMMARY="A text widget implementing syntax highlighting and other features"
DESCRIPTION="GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK \
widget for multiline text editing. GtkSourceView adds support for syntax \
highlighting, undo/redo, file loading and saving, search and replace, a \
completion system, printing, displaying line numbers, and other features \
typical of a source code editor."
HOMEPAGE="https://wiki.gnome.org/Projects/GtkSourceView/"
COPYRIGHT="Christian Hergert
Sebastien Wilmet"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://gitlab.gnome.org/GNOME/gtksourceview/-/archive/$portVersion/gtksourceview-$portVersion.tar.gz"
CHECKSUM_SHA256="46cd7be87df194473a7ed26af486478f9b3521fda7fb7537f6ad2951ac5eb86d"
SOURCE_DIR="gtksourceview-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.8.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
gtksourceview3$secondaryArchSuffix = $portVersion compat >= 3
lib:libgtksourceview_3.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libatk_1.0$secondaryArchSuffix
lib:libcairo$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
lib:libgirepository_1.0$secondaryArchSuffix
lib:libgio_2.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libgtk_3$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpango_1.0$secondaryArchSuffix
lib:libpangocairo_1.0$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
gtksourceview3${secondaryArchSuffix}_devel = $portVersion compat >= 3
devel:libgtksourceview_3.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
gtksourceview3$secondaryArchSuffix == $portVersion base
devel:libglib_2.0$secondaryArchSuffix
devel:libgtk_3$secondaryArchSuffix
devel:libgirepository_1.0$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libatk_1.0$secondaryArchSuffix
devel:libcairo$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libgdk_pixbuf_2.0$secondaryArchSuffix
devel:libgtk_3$secondaryArchSuffix
devel:libgirepository_1.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libpango_1.0$secondaryArchSuffix
devel:libpangocairo_1.0$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
autoconf_archive
cmd:aclocal
cmd:autoconf
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:gtkdocize
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix
cmd:valac
"
PATCH()
{
find . -name Makefile.am -exec sed -i '/@CODE_COVERAGE_RULES@/d' {} +
}
BUILD()
{
NOCONFIGURE=1 autogen.sh
runConfigure ./configure \
--disable-Werror \
--disable-nls
make
}
INSTALL()
{
make install
rm -f $libDir/*.la
prepareInstalledDevelLib libgtksourceview-3.0
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}