mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
107 lines
3.0 KiB
Bash
107 lines
3.0 KiB
Bash
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="db84d9818ced6311ce27df5bf7f36f83ab14646fbace026cc0b0ba0308bcfb68"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
gtksourceview$secondaryArchSuffix = $portVersion compat >= 4
|
|
lib:libgtksourceview_4$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
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:libintl$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix
|
|
lib:libpangocairo_1.0$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gtksourceview${secondaryArchSuffix}_devel = $portVersion compat >= 4
|
|
devel:libgtksourceview_4$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
gtksourceview$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="
|
|
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 \
|
|
-Dgir=true \
|
|
-Dvapi=true \
|
|
-Dgtk_doc=false \
|
|
-Dinstall_tests=false \
|
|
_build
|
|
|
|
ninja -v -C _build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja install -C _build
|
|
|
|
prepareInstalledDevelLib libgtksourceview-4
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|