libsoup: enable gir, add vala option
closes #8223 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
parent
fda8742799
commit
0e116f4377
1 changed files with 15 additions and 9 deletions
|
@ -1,13 +1,15 @@
|
||||||
# Template file for 'libsoup'
|
# Template file for 'libsoup'
|
||||||
pkgname=libsoup
|
pkgname=libsoup
|
||||||
version=2.64.2
|
version=2.64.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
build_helper="gir"
|
||||||
configure_args="--disable-tls-check --disable-static
|
configure_args="--disable-tls-check --disable-static
|
||||||
$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')"
|
$(vopt_enable gir introspection) $(vopt_enable vala)"
|
||||||
hostmakedepends="automake gettext-devel glib-devel intltool libtool pkg-config
|
hostmakedepends="automake gettext-devel glib-devel intltool libtool pkg-config
|
||||||
$(vopt_if gir 'gobject-introspection vala-devel')"
|
$(vopt_if vala 'vala')"
|
||||||
makedepends="libglib-devel libxml2-devel sqlite-devel libpsl-devel"
|
makedepends="libglib-devel libxml2-devel sqlite-devel libpsl-devel
|
||||||
|
$(vopt_if vala 'vala-devel')"
|
||||||
depends="glib-networking"
|
depends="glib-networking"
|
||||||
short_desc="HTTP library implementation in C"
|
short_desc="HTTP library implementation in C"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
|
@ -18,12 +20,13 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=75ddc194a5b1d6f25033bb9d355f04bfe5c03e0e1c71ed0774104457b3a786c6
|
checksum=75ddc194a5b1d6f25033bb9d355f04bfe5c03e0e1c71ed0774104457b3a786c6
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir vala"
|
||||||
|
|
||||||
# Disable gir for cross builds.
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
x86_64-musl) build_options_default+=" gir vala" ;;
|
||||||
build_options_default="gir"
|
*-musl) ;;
|
||||||
fi
|
*) build_options_default+=" gir vala" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
@ -42,6 +45,9 @@ libsoup-devel_package() {
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0/Soup-2.4.gir
|
vmove usr/share/gir-1.0/Soup-2.4.gir
|
||||||
fi
|
fi
|
||||||
|
if [ "$build_option_vala" ]; then
|
||||||
|
vmove usr/share/vala
|
||||||
|
fi
|
||||||
vmove usr/include/libsoup-2.4
|
vmove usr/include/libsoup-2.4
|
||||||
vmove usr/share/gtk-doc
|
vmove usr/share/gtk-doc
|
||||||
vmove "usr/lib/libsoup-2.4.so"
|
vmove "usr/lib/libsoup-2.4.so"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue