Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 25 Jun 2020 14:22:28
Message-Id: 1593094932.e598e7c4b1d12bc49d06dc058c4c475fdd293a61.asturm@gentoo
1 commit: e598e7c4b1d12bc49d06dc058c4c475fdd293a61
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 25 14:21:32 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 14:22:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e598e7c4
7
8 gnome-python-common-r1.eclass: Remove last-rited eclass
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 eclass/gnome-python-common-r1.eclass | 107 -----------------------------------
13 1 file changed, 107 deletions(-)
14
15 diff --git a/eclass/gnome-python-common-r1.eclass b/eclass/gnome-python-common-r1.eclass
16 deleted file mode 100644
17 index f4a52bde814..00000000000
18 --- a/eclass/gnome-python-common-r1.eclass
19 +++ /dev/null
20 @@ -1,107 +0,0 @@
21 -# Copyright 1999-2014 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# @DEAD
25 -# @ECLASS: gnome-python-common-r1.eclass
26 -# @MAINTAINER:
27 -# GNOME team <gnome@g.o>
28 -# @AUTHOR:
29 -# Author: Michał Górny <mgorny@g.o>
30 -# Based on the work of: Arun raghaven <ford_prefect@g.o>
31 -# which in turn was based on the work of Jim Ramsay <lack@g.o>
32 -# @SUPPORTED_EAPIS: 5
33 -# @BLURB: Common functionality for building gnome-python* bindings
34 -# @DESCRIPTION:
35 -# This eclass provides python-r1 support for the GNOME2 library Python
36 -# bindings.
37 -
38 -: ${GNOME_ORG_MODULE:=gnome-python}
39 -: ${GNOME_TARBALL_SUFFIX:=bz2}
40 -: ${GNOME2_LA_PUNT:=yes}
41 -: ${GCONF_DEBUG:=no}
42 -
43 -# @ECLASS-VARIABLE: G_PY_BINDINGS
44 -# @DESCRIPTION:
45 -# The actual '--enable-<binding>' name. If multiple bindings are to
46 -# be enabled, must be an array.
47 -: ${G_PY_BINDINGS:=${PN%-python}}
48 -
49 -# @ECLASS-VARIABLE: EXAMPLES
50 -# @DEFAULT_UNSET
51 -# @DESCRIPTION:
52 -# The set of example files to be installed if the 'examples' USE flag
53 -# is set.
54 -
55 -case "${EAPI:-0}" in
56 - 0|1|2|3|4)
57 - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
58 - ;;
59 - 5)
60 - ;;
61 - *)
62 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
63 - ;;
64 -esac
65 -
66 -inherit eutils gnome2 python-r1
67 -
68 -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
69 -
70 -HOMEPAGE="http://pygtk.org/"
71 -
72 -RESTRICT="${RESTRICT} test"
73 -
74 -DOCS="AUTHORS ChangeLog NEWS README"
75 -
76 -if [[ ${GNOME_ORG_MODULE} != "gnome-python" ]]; then
77 - DOCS="${DOCS} MAINTAINERS"
78 -fi
79 -
80 -RDEPEND="~dev-python/${GNOME_ORG_MODULE}-base-${PV}[${PYTHON_USEDEP}]
81 - ${PYTHON_DEPS}"
82 -DEPEND="${RDEPEND}
83 - virtual/pkgconfig"
84 -
85 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
86 -
87 -gnome-python-common-r1_src_prepare() {
88 - gnome2_src_prepare
89 -
90 - # The .pc file is installed by respective gnome-python*-base package
91 - sed -i '/^pkgconfig_DATA/d' Makefile.in || die "sed failed"
92 - sed -i '/^pkgconfigdir/d' Makefile.in || die "sed failed"
93 -#
94 -# python_copy_sources
95 -}
96 -
97 -gnome-python-common-r1_src_configure() {
98 - local myconf=(
99 - --disable-allbindings
100 - "${G_PY_BINDINGS[@]/#/--enable-}"
101 - )
102 -
103 - ECONF_SOURCE=${S} \
104 - python_foreach_impl \
105 - gnome2_src_configure "${myconf[@]}" "${@}"
106 -}
107 -
108 -gnome-python-common-r1_src_compile() {
109 - python_foreach_impl default
110 -}
111 -
112 -gnome-python-common-r1_src_test() {
113 - python_foreach_impl default
114 -}
115 -
116 -# Do a regular gnome2 src_install and then install examples if required.
117 -# Set the variable EXAMPLES to provide the set of examples to be installed.
118 -# (to install a directory recursively, specify it with a trailing '/' - for
119 -# example, foo/bar/)
120 -gnome-python-common-r1_src_install() {
121 - python_foreach_impl gnome2_src_install
122 -
123 - if in_iuse examples && use examples; then
124 - docinto examples
125 - dodoc -r "${EXAMPLES[@]}"
126 - fi
127 -}