mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
ibus: added ibus_setup build option.
ibus-setup needs pygobject3, which cannot be cross compiled; so that this option is only enabled for native builds. Close #771
This commit is contained in:
parent
66038bcd35
commit
bed9e372b4
1 changed files with 10 additions and 15 deletions
|
@ -1,16 +1,18 @@
|
||||||
# Template file for 'ibus'
|
# Template file for 'ibus'
|
||||||
pkgname=ibus
|
pkgname=ibus
|
||||||
version=1.5.9
|
version=1.5.9
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-ui --enable-gtk3 --disable-python
|
configure_args="--enable-ui --enable-gtk3 --disable-python
|
||||||
--disable-schemas-compile --enable-memconf
|
--disable-tests --disable-schemas-compile --enable-memconf
|
||||||
--disable-schemas-install --enable-dconf --disable-gconf"
|
--disable-schemas-install --enable-dconf --disable-gconf
|
||||||
|
$(vopt_enable gir introspection) $(vopt_enable ibus_setup setup)"
|
||||||
hostmakedepends="automake gettext-devel libtool pkg-config intltool
|
hostmakedepends="automake gettext-devel libtool pkg-config intltool
|
||||||
dconf GConf python glib-devel"
|
dconf GConf python glib-devel $(vopt_if gir gobject-introspection)"
|
||||||
makedepends="dconf-devel>=0.13.90 librsvg-devel gtk+-devel gtk+3-devel
|
makedepends="dconf-devel>=0.13.90 librsvg-devel gtk+-devel gtk+3-devel
|
||||||
vala-devel libnotify-devel hicolor-icon-theme iso-codes dbus-x11 python-xdg"
|
vala-devel libnotify-devel hicolor-icon-theme iso-codes dbus-x11 python-xdg"
|
||||||
depends="hicolor-icon-theme iso-codes dbus-x11 python-xdg"
|
depends="hicolor-icon-theme iso-codes dbus-x11 python-xdg
|
||||||
|
$(vopt_if ibus_setup 'python-gobject>=3.12.1_3')"
|
||||||
triggers="gtk-immodules gtk3-immodules"
|
triggers="gtk-immodules gtk3-immodules"
|
||||||
short_desc="Intelligent Input Bus"
|
short_desc="Intelligent Input Bus"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -20,24 +22,17 @@ distfiles="https://github.com/ibus/ibus/releases/download/${version}/ibus-${vers
|
||||||
checksum=ad41014aa3cb961854ee0aa392a5abd7452fab2c6b77d8ff2d736b7405b48ac6
|
checksum=ad41014aa3cb961854ee0aa392a5abd7452fab2c6b77d8ff2d736b7405b48ac6
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir ibus_setup"
|
||||||
|
desc_option_ibus_setup="Enable support for building the ibus setup UI"
|
||||||
|
|
||||||
# Disable gir for cross builds.
|
# Disable gir for cross builds.
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
build_options_default="gir"
|
build_options_default="gir ibus_setup"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$build_option_gir" ]; then
|
|
||||||
configure_args+=" --enable-introspection"
|
|
||||||
makedepends+=" gobject-introspection"
|
|
||||||
else
|
|
||||||
configure_args+=" --disable-introspection"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_install() {
|
pre_install() {
|
||||||
vmkdir etc/dconf/db
|
vmkdir etc/dconf/db
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue