anjuta: build with python3, enable gir in cross-compile
This commit is contained in:
parent
be56f1fa8c
commit
4a4db98e9d
3 changed files with 35 additions and 8 deletions
11
srcpkgs/anjuta/patches/python.patch
Normal file
11
srcpkgs/anjuta/patches/python.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- configure.ac.orig 2020-07-04 20:59:04.718066026 +0700
|
||||||
|
+++ configure.ac 2020-07-04 20:59:54.542554633 +0700
|
||||||
|
@@ -370,7 +370,7 @@
|
||||||
|
[have_python="no"])
|
||||||
|
|
||||||
|
if test x$have_python = xyes; then
|
||||||
|
- if test -x $PYTHON-config; then
|
||||||
|
+ if $PYTHON-config --cflags; then
|
||||||
|
PYTHON_CFLAGS=`$PYTHON-config --cflags`
|
||||||
|
PYTHON_LIBS=`$PYTHON-config --libs`
|
||||||
|
AC_SUBST(PYTHON_CFLAGS)
|
11
srcpkgs/anjuta/patches/vala.patch
Normal file
11
srcpkgs/anjuta/patches/vala.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- configure.ac.orig 2020-07-04 20:32:36.223805943 +0700
|
||||||
|
+++ configure.ac 2020-07-04 20:33:01.432033914 +0700
|
||||||
|
@@ -338,7 +338,7 @@
|
||||||
|
else
|
||||||
|
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]],
|
||||||
|
[PKG_CHECK_EXISTS([ libvala-VERSION ],
|
||||||
|
[ valaver="-VERSION" ])
|
||||||
|
])
|
|
@ -1,16 +1,20 @@
|
||||||
# Template file for 'anjuta'
|
# Template file for 'anjuta'
|
||||||
pkgname=anjuta
|
pkgname=anjuta
|
||||||
version=3.34.0
|
version=3.34.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
build_helper="gir qemu"
|
||||||
configure_args="--disable-compile-warnings --disable-schemas-compile
|
configure_args="--disable-compile-warnings --disable-schemas-compile
|
||||||
|
PYTHON=python3
|
||||||
|
SVN_INCLUDES=$XBPS_CROSS_BASE/usr/include SVN_LIBS=$XBPS_CROSS_BASE/usr/lib
|
||||||
$(vopt_enable gir introspection)"
|
$(vopt_enable gir introspection)"
|
||||||
hostmakedepends="pkg-config intltool flex itstool python autogen glib-devel
|
hostmakedepends="pkg-config intltool flex itstool python3 autogen glib-devel
|
||||||
$(vopt_if gir gobject-introspection)"
|
libtool automake gettext-devel gnome-common yelp-tools which gtk-doc
|
||||||
|
vala-devel $(vopt_if gir gobject-introspection)"
|
||||||
makedepends="gtksourceview-devel libxml2-devel vte3-devel gjs-devel
|
makedepends="gtksourceview-devel libxml2-devel vte3-devel gjs-devel
|
||||||
libxslt-devel glade3-devel graphviz-devel vala-devel
|
libxslt-devel glade3-devel graphviz-devel vala-devel
|
||||||
libgda-devel devhelp-devel sqlite-devel apr-util-devel
|
libgda-devel devhelp-devel sqlite-devel apr-util-devel
|
||||||
neon-devel subversion-devel python-devel gdl-devel"
|
neon-devel subversion-devel python3-devel gdl-devel"
|
||||||
depends="autogen"
|
depends="autogen"
|
||||||
short_desc="GNOME Integrated Development Environment"
|
short_desc="GNOME Integrated Development Environment"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
|
@ -20,10 +24,11 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
|
checksum=42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f
|
||||||
|
|
||||||
build_options="gir"
|
build_options="gir"
|
||||||
# Disable gir for cross builds.
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
build_options_default="gir"
|
build_options_default="gir"
|
||||||
fi
|
|
||||||
|
pre_configure() {
|
||||||
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
|
}
|
||||||
|
|
||||||
anjuta-devel_package() {
|
anjuta-devel_package() {
|
||||||
replaces="anjuta-docs>=0"
|
replaces="anjuta-docs>=0"
|
||||||
|
|
Loading…
Reference in a new issue