mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
gtksourceview5, add recipe for version 5.14.2 (#12558)
This commit is contained in:
112
x11-libs/gtksourceview/gtksourceview5-5.14.2.recipe
Normal file
112
x11-libs/gtksourceview/gtksourceview5-5.14.2.recipe
Normal file
@@ -0,0 +1,112 @@
|
||||
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"
|
||||
SOURCE_DIR="gtksourceview-$portVersion"
|
||||
CHECKSUM_SHA256="4b9afe0a72a75082de9e7d00a0e176696653ce23da0a5f2e9b9eafcfb4edfc00"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
gtksourceview5$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libgtksourceview_5$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libatk_1.0$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libfontconfig$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_4$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libpango_1.0$secondaryArchSuffix
|
||||
lib:libpangocairo_1.0$secondaryArchSuffix
|
||||
lib:libpcre2_8$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gtksourceview5${secondaryArchSuffix}_devel = $portVersion compat >= 5
|
||||
devel:libgtksourceview_5$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gtksourceview5$secondaryArchSuffix == $portVersion base
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgtk_4$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_4$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="
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:valac
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
meson \
|
||||
--buildtype=release \
|
||||
--prefix=$prefix \
|
||||
--libdir=$libDir \
|
||||
--libexecdir=$binDir \
|
||||
--datadir=$dataDir \
|
||||
--localedir=$dataDir/locale \
|
||||
--includedir=$includeDir \
|
||||
--sysconfdir=$settingsDir \
|
||||
-D introspection=enabled \
|
||||
-D vapi=true \
|
||||
-D documentation=false \
|
||||
-D install-tests=false \
|
||||
_build
|
||||
|
||||
ninja -v -C _build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja install -C _build
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libgtksourceview-5
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user