void-packages/srcpkgs/anjuta/template

51 lines
1.5 KiB
Bash

# Template file for 'anjuta'
pkgname=anjuta
version=3.22.0
revision=2
build_style=gnu-configure
build_options="gir"
configure_args="$(vopt_enable gir introspection)"
short_desc="GNOME Integrated Development Environment"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://projects.gnome.org/anjuta"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=4face1c063a5a6687a6cfc6f1f700ba15f13664633c05caa2fbf50317608dd03
hostmakedepends="pkg-config intltool flex itstool python autogen glib-devel
$(vopt_if gir gobject-introspection)"
makedepends="
gtksourceview-devel libxml2-devel vte3-devel gjs-devel
libxslt-devel glade3-devel graphviz-devel vala-devel
libgda-devel devhelp-devel sqlite-devel apr-util-devel
neon-devel subversion-devel python-devel gdl-devel"
depends="autogen"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
CFLAGS="-O2 -Wno-deprecated-declarations"
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
CFLAGS+=" -Wno-error=format-nonliteral -Wno-error=format-y2k -Wno-error=missing-include-dirs"
fi
CXXFLAGS="${CFLAGS}"
anjuta-devel_package() {
replaces="anjuta-docs>=0"
short_desc+=" - development files"
depends="anjuta>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove "usr/lib/*.so"
vmove usr/share/doc
vmove usr/share/gtk-doc
}
}