diff --git a/srcpkgs/anjuta/patches/no-gnome-common.patch b/srcpkgs/anjuta/patches/no-gnome-common.patch new file mode 100644 index 00000000000..c3812745e9f --- /dev/null +++ b/srcpkgs/anjuta/patches/no-gnome-common.patch @@ -0,0 +1,21 @@ +--- a/autogen.sh ++++ b/autogen.sh +@@ -4,7 +4,7 @@ + + test -z "$srcdir" && srcdir=. + +-GNOMEDOC=`which yelp-build` ++GNOMEDOC=`command -v yelp-build` + if test -z $GNOMEDOC; then + echo "*** The tools to build the documentation are not found," + echo " please intall the yelp-tool package ***" +--- a/configure.ac ++++ b/configure.ac +@@ -92,7 +92,6 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])] + AC_MSG_ERROR([C++ Compiler required to compile Anjuta])) + AM_PROG_CC_C_O + +-GNOME_COMPILE_WARNINGS([yes]) + AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS" + AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS" + diff --git a/srcpkgs/anjuta/patches/vala-050.patch b/srcpkgs/anjuta/patches/vala-050.patch new file mode 100644 index 00000000000..540b38903c9 --- /dev/null +++ b/srcpkgs/anjuta/patches/vala-050.patch @@ -0,0 +1,22 @@ +commit 8f8fa97 +Author: Rico Tzschichholz +Date: Fri Aug 20 08:26:49 2021 +0200 + + build: Allow building with vala 0.50 + +diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala +index 718d74c..d94634c 100644 +--- a/plugins/language-support-vala/plugin.vala ++++ b/plugins/language-support-vala/plugin.vala +@@ -78,7 +78,11 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences { + + void init_context () { + context = new Vala.CodeContext(); ++#if VALA_0_50 ++ context.set_target_profile (Vala.Profile.GOBJECT); ++#else + context.profile = Vala.Profile.GOBJECT; ++#endif + context.report = report; + report.clear_error_indicators (); + diff --git a/srcpkgs/anjuta/patches/vala.patch b/srcpkgs/anjuta/patches/vala.patch index 4b4477801cc..8b66f37ecb8 100644 --- a/srcpkgs/anjuta/patches/vala.patch +++ b/srcpkgs/anjuta/patches/vala.patch @@ -5,7 +5,7 @@ AC_MSG_RESULT(no) AC_MSG_CHECKING(if libvala is available) - m4_foreach([VERSION], [[0.44], [0.42], [0.40], [0.38], [0.36], [0.34], [0.32], [0.30], [0.28], [0.26], [0.24], [0.22], [0.20], [0.18]], -+ m4_foreach([VERSION], [[0.48], [0.46], [0.44], [0.42], [0.40], [0.38], [0.36], [0.34], [0.32], [0.30], [0.28], [0.26], [0.24], [0.22], [0.20], [0.18]], ++ m4_foreach([VERSION], [[0.56], [0.54], [0.52], [0.50], [0.48], [0.46], [0.44], [0.42], [0.40], [0.38], [0.36], [0.34], [0.32], [0.30], [0.28], [0.26], [0.24], [0.22], [0.20], [0.18]], [PKG_CHECK_EXISTS([ libvala-VERSION ], [ valaver="-VERSION" ]) ]) diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template index 3df046d884f..cde101ee919 100644 --- a/srcpkgs/anjuta/template +++ b/srcpkgs/anjuta/template @@ -9,7 +9,7 @@ configure_args="--disable-compile-warnings --disable-schemas-compile SVN_INCLUDES=$XBPS_CROSS_BASE/usr/include SVN_LIBS=$XBPS_CROSS_BASE/usr/lib $(vopt_enable gir introspection)" hostmakedepends="pkg-config intltool flex itstool python3 autogen glib-devel - libtool automake gettext-devel gnome-common yelp-tools which gtk-doc + libtool automake gettext-devel yelp-tools gtk-doc vala-devel $(vopt_if gir gobject-introspection)" makedepends="gtksourceview-devel libxml2-devel vte3-devel gjs-devel libxslt-devel glade3-devel graphviz-devel vala-devel