mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 01:21:02 +02:00
Upgraded the gdbus-codegen Portage package
(pulled in the gnome.org eclass ass a necessary dependancy) Upgraded dev-util/gdbus-codegen to version 2.30.2 on x86 BUG=chromium-os:24927 TEST=emerge gdbus-codegen. emerge various gnome2 packages we build and confirm that the same files are installed. Change-Id: Ic499a75eb55d8bec3e3ea0f1dcf68512c7b41220 Reviewed-on: https://gerrit.chromium.org/gerrit/14063 Commit-Ready: Nathan J. Williams <njw@chromium.org> Tested-by: Nathan J. Williams <njw@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
93996aa702
commit
60dccf6255
70
sdk_container/src/third_party/portage-stable/dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild
vendored
Normal file
70
sdk_container/src/third_party/portage-stable/dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbus-codegen/gdbus-codegen-2.30.2.ebuild,v 1.3 2011/12/29 17:36:36 pacho Exp $
|
||||
|
||||
EAPI="4"
|
||||
GNOME_ORG_MODULE="glib"
|
||||
PYTHON_DEPEND="2:2.5"
|
||||
PYTHON_USE_WITH="xml"
|
||||
|
||||
inherit gnome.org multilib python
|
||||
|
||||
DESCRIPTION="GDBus code and documentation generator"
|
||||
HOMEPAGE="http://www.gtk.org/"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
# To prevent circular dependencies with glib[test]
|
||||
PDEPEND=">=dev-libs/glib-${PV}:2"
|
||||
|
||||
S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs 2 gdbus-codegen.in
|
||||
sed -e "s:@libdir@:${EPREFIX}/usr/$(get_libdir):" \
|
||||
-i gdbus-codegen.in || die "sed gdbus-codegen.in failed"
|
||||
sed -e "s:\"/usr/local\":\"${EPREFIX}/usr\":" \
|
||||
-i config.py || die "sed config.py failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
elog "Skipping tests. To test ${PN}, emerge dev-libs/glib"
|
||||
elog "with FEATURES=test"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/$(get_libdir)/gdbus-2.0/codegen"
|
||||
|
||||
# Keep in sync with Makefile.am!
|
||||
doins __init__.py \
|
||||
codegen.py \
|
||||
codegen_main.py \
|
||||
codegen_docbook.py \
|
||||
config.py \
|
||||
dbustypes.py \
|
||||
parser.py \
|
||||
utils.py
|
||||
|
||||
newbin gdbus-codegen.in gdbus-codegen
|
||||
|
||||
doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_need_rebuild
|
||||
python_mod_optimize /usr/$(get_libdir)/gdbus-2.0/codegen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/$(get_libdir)/gdbus-2.0/codegen
|
||||
}
|
49
sdk_container/src/third_party/portage-stable/eclass/gnome.org.eclass
vendored
Normal file
49
sdk_container/src/third_party/portage-stable/eclass/gnome.org.eclass
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.15 2011/09/12 15:54:53 pacho Exp $
|
||||
|
||||
# @ECLASS: gnome.org.eclass
|
||||
# @MAINTAINER:
|
||||
# gnome@gentoo.org
|
||||
# @AUTHOR:
|
||||
# Authors: Spidler <spidler@gentoo.org> with help of carparski.
|
||||
# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
|
||||
# @BLURB: Helper eclass for gnome.org hosted archives
|
||||
# @DESCRIPTION:
|
||||
# Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
|
||||
|
||||
inherit versionator
|
||||
|
||||
# @ECLASS-VARIABLE: GNOME_TARBALL_SUFFIX
|
||||
# @DESCRIPTION:
|
||||
# Most projects hosted on gnome.org mirrors provide tarballs as tar.bz2 or
|
||||
# tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and defaults to xz for
|
||||
# everything else. This is because the gnome mirrors are moving to only have xz
|
||||
# tarballs for new releases.
|
||||
if has "${EAPI:-0}" 0 1 2 3; then
|
||||
: ${GNOME_TARBALL_SUFFIX:="bz2"}
|
||||
else
|
||||
: ${GNOME_TARBALL_SUFFIX:="xz"}
|
||||
fi
|
||||
|
||||
# Even though xz-utils are in @system, they must still be added to DEPEND; see
|
||||
# http://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
|
||||
if [[ ${GNOME_TARBALL_SUFFIX} == "xz" ]]; then
|
||||
DEPEND="${DEPEND} app-arch/xz-utils"
|
||||
fi
|
||||
|
||||
# @ECLASS-VARIABLE: GNOME_ORG_MODULE
|
||||
# @DESCRIPTION:
|
||||
# Name of the module as hosted on gnome.org mirrors.
|
||||
# Leave unset if package name matches module name.
|
||||
: ${GNOME_ORG_MODULE:=$PN}
|
||||
|
||||
# @ECLASS-VARIABLE: GNOME_ORG_PVP
|
||||
# @INTERNAL
|
||||
# @DESCRIPTION:
|
||||
# Major and minor numbers of the version number.
|
||||
: ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)}
|
||||
|
||||
SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
|
||||
|
||||
S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}"
|
Loading…
x
Reference in New Issue
Block a user