mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
dev-libs/dbus-glib: Sync with Gentoo
It's from Gentoo commit 192d81163fe990fffea21cc814f528187a0635e0.
This commit is contained in:
parent
026ff80ec5
commit
bc979c2ec9
@ -1,9 +1,9 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit autotools bash-completion-r1 multilib-minimal toolchain-funcs
|
inherit autotools bash-completion-r1 flag-o-matic multilib-minimal toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="D-Bus bindings for glib"
|
DESCRIPTION="D-Bus bindings for glib"
|
||||||
HOMEPAGE="https://dbus.freedesktop.org/"
|
HOMEPAGE="https://dbus.freedesktop.org/"
|
||||||
@ -11,7 +11,7 @@ SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
|
|||||||
|
|
||||||
LICENSE="|| ( GPL-2 AFL-2.1 )"
|
LICENSE="|| ( GPL-2 AFL-2.1 )"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
IUSE="debug static-libs test"
|
IUSE="debug static-libs test"
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
@ -22,11 +22,11 @@ DEPEND="
|
|||||||
"
|
"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
dev-build/gtk-doc-am
|
|
||||||
>=dev-libs/expat-2.1.0-r3
|
>=dev-libs/expat-2.1.0-r3
|
||||||
>=dev-libs/glib-2.40:2
|
>=dev-libs/glib-2.40:2
|
||||||
>=sys-apps/dbus-1.8
|
>=sys-apps/dbus-1.8
|
||||||
>=dev-util/glib-utils-2.40
|
>=dev-util/glib-utils-2.40
|
||||||
|
>=dev-build/gtk-doc-am-1.14
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
" # CBUILD dependencies are needed to make a native tool while cross-compiling.
|
" # CBUILD dependencies are needed to make a native tool while cross-compiling.
|
||||||
|
|
||||||
@ -43,6 +43,9 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_configure() {
|
multilib_src_configure() {
|
||||||
|
# bug #943768
|
||||||
|
append-cflags -std=gnu17
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--localstatedir="${EPREFIX}"/var
|
--localstatedir="${EPREFIX}"/var
|
||||||
--enable-bash-completion
|
--enable-bash-completion
|
||||||
@ -58,9 +61,6 @@ multilib_src_configure() {
|
|||||||
ECONF_SOURCE="${S}" econf_build
|
ECONF_SOURCE="${S}" econf_build
|
||||||
myconf+=( --with-dbus-binding-tool="$PWD/dbus/dbus-binding-tool" )
|
myconf+=( --with-dbus-binding-tool="$PWD/dbus/dbus-binding-tool" )
|
||||||
cd - || die
|
cd - || die
|
||||||
# Flatcar: override glib-genmarshal path
|
|
||||||
local build_pkg_config="$(tc-getBUILD_PROG PKG_CONFIG pkg-config)"
|
|
||||||
myconf+=(GLIB_GENMARSHAL="$("${build_pkg_config}" --variable=glib_genmarshal glib-2.0)")
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
Loading…
x
Reference in New Issue
Block a user