[gentoo-commits] gentoo-x86 commit in eclass: ChangeLog gnome-python-common-r1.eclass

2014-05-26 Thread Michal Gorny (mgorny)
mgorny  14/05/26 17:20:14

  Modified: ChangeLog
  Added:gnome-python-common-r1.eclass
  Log:
  Convert gnome-python-common.eclass to use python-r1, and clean it up a lot.

Revision  ChangesPath
1.1275   eclass/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1275&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1275&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1274&r2=1.1275

Index: ChangeLog
===
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1274
retrieving revision 1.1275
diff -u -r1.1274 -r1.1275
--- ChangeLog   26 May 2014 16:13:35 -  1.1274
+++ ChangeLog   26 May 2014 17:20:14 -  1.1275
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1274 2014/05/26 
16:13:35 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1275 2014/05/26 
17:20:14 mgorny Exp $
+
+  26 May 2014; Michał Górny 
+  +gnome-python-common-r1.eclass:
+  Convert gnome-python-common.eclass to use python-r1, and clean it up a lot.
 
   26 May 2014; Michał Górny  python-r1.eclass,
   python-single-r1.eclass, python-utils-r1.eclass:



1.1  eclass/gnome-python-common-r1.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-python-common-r1.eclass?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-python-common-r1.eclass?rev=1.1&content-type=text/plain

Index: gnome-python-common-r1.eclass
===
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome-python-common-r1.eclass,v 1.1 
2014/05/26 17:20:14 mgorny Exp $

# @ECLASS: gnome-python-common-r1
# @MAINTAINER:
# GNOME team 
# @AUTHOR:
# Author: Michał Górny 
# Based on the work of: Arun raghaven 
# which in turn was based on the work of Jim Ramsay 
# @BLURB: Common functionality for building gnome-python* bindings
# @DESCRIPTION:
# This eclass provides python-r1 support for the GNOME2 library Python
# bindings.

: ${GNOME_ORG_MODULE:=gnome-python}
: ${GNOME_TARBALL_SUFFIX:=bz2}
: ${GNOME2_LA_PUNT:=yes}
: ${GCONF_DEBUG:=no}

# @ECLASS-VARIABLE: G_PY_BINDINGS
# @DESCRIPTION:
# The actual '--enable-' name. If multiple bindings are to
# be enabled, must be an array.
: ${G_PY_BINDINGS:=${PN%-python}}

# @ECLASS-VARIABLE: EXAMPLES
# @DEFAULT_UNSET
# @DESCRIPTION:
# The set of example files to be installed if the 'examples' USE flag
# is set.

case "${EAPI:-0}" in
0|1|2|3|4)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
5)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
esac

inherit eutils gnome2 python-r1

EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install

HOMEPAGE="http://pygtk.org/";

RESTRICT="${RESTRICT} test"

DOCS="AUTHORS ChangeLog NEWS README"

if [[ ${GNOME_ORG_MODULE} != "gnome-python" ]]; then
DOCS="${DOCS} MAINTAINERS"
fi

RDEPEND="~dev-python/${GNOME_ORG_MODULE}-base-${PV}
${PYTHON_DEPS}"
DEPEND="${RDEPEND}
virtual/pkgconfig"

REQUIRED_USE=${PYTHON_REQUIRED_SUE}

gnome-python-common-r1_src_prepare() {
gnome2_src_prepare

# The .pc file is installed by respective gnome-python*-base package
sed -i '/^pkgconfig_DATA/d' Makefile.in || die "sed failed"
sed -i '/^pkgconfigdir/d' Makefile.in || die "sed failed"
#
#   python_copy_sources
}

gnome-python-common-r1_src_configure() {
local myconf=(
--disable-allbindings
"${G_PY_BINDINGS[@]/#/--enable-}"
)

ECONF_SOURCE=${S} \
python_parallel_foreach_impl \
gnome2_src_configure "${myconf[@]}" "${@}"
}

gnome-python-common-r1_src_compile() {
python_foreach_impl default
}

gnome-python-common-r1_src_test() {
python_foreach_impl default
}

# Do a regular gnome2 src_install and then install examples if required.
# Set the variable EXAMPLES to provide the set of examples to be installed.
# (to install a directory recursively, specify it with a trailing '/' - for
# example, foo/bar/)
gnome-python-common-r1_src_install() {
python_foreach_impl gnome2_src_install

if in_iuse examples && use examples; then
docinto examples
dodoc -r "${EXAMPLES[@]}"
fi
}






[gentoo-commits] gentoo-x86 commit in eclass: ChangeLog gnome-python-common-r1.eclass

2014-09-27 Thread Pacho Ramos (pacho)
pacho   14/09/27 16:15:19

  Modified: ChangeLog gnome-python-common-r1.eclass
  Log:
  Fix typo (#523856 by Kent Fredric)

Revision  ChangesPath
1.1377   eclass/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1377&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1377&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1376&r2=1.1377

Index: ChangeLog
===
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1376
retrieving revision 1.1377
diff -u -r1.1376 -r1.1377
--- ChangeLog   26 Sep 2014 17:56:29 -  1.1376
+++ ChangeLog   27 Sep 2014 16:15:19 -  1.1377
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1376 2014/09/26 
17:56:29 grknight Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1377 2014/09/27 
16:15:19 pacho Exp $
+
+  27 Sep 2014; Pacho Ramos  gnome-python-common-r1.eclass:
+  Fix typo (#523856 by Kent Fredric)
 
   26 Sep 2014; Brian Evans  mysql-multilib.eclass:
   Fix up invalid general IUSE with underscores



1.2  eclass/gnome-python-common-r1.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-python-common-r1.eclass?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-python-common-r1.eclass?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome-python-common-r1.eclass?r1=1.1&r2=1.2

Index: gnome-python-common-r1.eclass
===
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome-python-common-r1.eclass,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gnome-python-common-r1.eclass   26 May 2014 17:20:14 -  1.1
+++ gnome-python-common-r1.eclass   27 Sep 2014 16:15:19 -  1.2
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome-python-common-r1.eclass,v 1.1 
2014/05/26 17:20:14 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome-python-common-r1.eclass,v 1.2 
2014/09/27 16:15:19 pacho Exp $
 
 # @ECLASS: gnome-python-common-r1
 # @MAINTAINER:
@@ -61,7 +61,7 @@
 DEPEND="${RDEPEND}
virtual/pkgconfig"
 
-REQUIRED_USE=${PYTHON_REQUIRED_SUE}
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
 
 gnome-python-common-r1_src_prepare() {
gnome2_src_prepare