mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 15:41:04 +02:00
dev-util/gdbus-codegen: Sync with Gentoo
It's from Gentoo commit 71b9334ed76e7b2b27681ffcbd4fa2f8bcfa3307.
This commit is contained in:
parent
41a2a1e2a3
commit
e8ba9df1d5
@ -1,3 +1,2 @@
|
||||
DIST glib-2.76.4.tar.xz 5274356 BLAKE2B c9ceb514ea81e1e6ab2d0efc82c48c0d8ae6c997fd0e3c56d47a5174b027f785b58266fff73b1d1132e272305126fbff22e3c65d47de46224cd12fa49796d5bc SHA512 f76932dc5090a44880373228e2b162f338415d06f7c90f2950eab1a43bb191c56a1797da4d377594f6a999197fef4defb848039259cfa4105bb68288a928f5b7
|
||||
DIST glib-2.78.0.tar.xz 5327096 BLAKE2B 3a494a16d12b17c7986bbe865d5e3b2727d40e7272fbb34897a90173c0fb780b0e7f024042f60ac6d1fcb9a2a4731948b6ac733c2bd6bd27c32b97281e20fc72 SHA512 3d06890002f4b13f831c83fbb70cfce529f9750e30888619e4d6277116be15d106379a03143412cf4b2a289c0cbdbbc299ecf17284fbffc06c791ecf7556c765
|
||||
DIST glib-2.78.1.tar.xz 5320740 BLAKE2B af8f2e83600dfb3ec84702399cb00a3aaedbc80087e35dc7cc2e2374d4fe5fdf82707ac8c911da1c53eb7b027c9da9ecfc1c0a8f56b39431fa4cf44cad5b10f7 SHA512 aa9ed9195951b00ac8221e958ea337fbda82621a862ef8f29dc2ea396a6253ce51c2a0a498dfa4e12642f1836f85f9564f09991979ae85c5ed4368355d857376
|
||||
DIST glib-2.78.3.tar.xz 5321388 BLAKE2B 6ef754b15e1ce4377eafdfc317025ac65c3d8010a8816a0cef786cec9da2af9f7d7d1da735c971ab8c848b2dcec050330e5b0fdceb156a36d739848e6160cd19 SHA512 9c1af75fb973d23ce0286d5b7836eea45f9628c148ced5ac10e10abceda05024ae4c57f01439824d3287d986527500b7b959828b630b6e4a3314b5224f4d7246
|
||||
|
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
GNOME_ORG_MODULE="glib"
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit gnome.org distutils-r1
|
||||
|
||||
DESCRIPTION="GDBus code and documentation generator"
|
||||
HOMEPAGE="https://www.gtk.org/"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-libs/libxslt
|
||||
app-text/docbook-xsl-stylesheets
|
||||
"
|
||||
|
||||
S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
|
||||
|
||||
python_prepare_all() {
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.56.1-sitedir.patch"
|
||||
)
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
local MAJOR_VERSION=$(ver_cut 1)
|
||||
local MINOR_VERSION=$(ver_cut 2)
|
||||
sed -e 's:@PYTHON@:python:' gdbus-codegen.in > gdbus-codegen || die
|
||||
sed -e "s:@VERSION@:${PV}:" \
|
||||
-e "s:@MAJOR_VERSION@:${MAJOR_VERSION}:" \
|
||||
-e "s:@MINOR_VERSION@:${MINOR_VERSION}:" config.py.in > config.py || die
|
||||
cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed"
|
||||
sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed"
|
||||
}
|
||||
|
||||
do_xsltproc_command() {
|
||||
# Taken from meson.build for manual manpage building - keep in sync (also copied to dev-util/glib-utils)
|
||||
xsltproc \
|
||||
--nonet \
|
||||
--stringparam man.output.quietly 1 \
|
||||
--stringparam funcsynopsis.style ansi \
|
||||
--stringparam man.th.extra1.suppress 1 \
|
||||
--stringparam man.authors.section.enabled 0 \
|
||||
--stringparam man.copyright.section.enabled 0 \
|
||||
-o "${2}" \
|
||||
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
|
||||
"${1}" || die "manpage generation failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile
|
||||
do_xsltproc_command \
|
||||
"${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.xml" \
|
||||
"${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo "Skipping tests. This package is tested by dev-libs/glib"
|
||||
einfo "when merged with FEATURES=test"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all # no-op, but prevents QA warning
|
||||
doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
|
||||
}
|
@ -15,7 +15,7 @@ HOMEPAGE="https://www.gtk.org/"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
Loading…
x
Reference in New Issue
Block a user