/[gentoo-x86]/eclass/gnome-python-common.eclass
Gentoo

Diff of /eclass/gnome-python-common.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gnome-python-common.eclass,v 1.10 2010/05/31 21:01:47 eva Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gnome-python-common.eclass,v 1.11 2010/06/11 08:35:12 pacho Exp $
4 4
5# Original Author: Arun Raghavan <ford_prefect@gentoo.org> (based on the 5# Original Author: Arun Raghavan <ford_prefect@gentoo.org> (based on the
6# gnome-python-desktop eclass by Jim Ramsay <lack@gentoo.org>) 6# gnome-python-desktop eclass by Jim Ramsay <lack@gentoo.org>)
7# 7#
8# Purpose: Provides common functionality required for building the gnome-python* 8# Purpose: Provides common functionality required for building the gnome-python*
102gnome-python-common_src_configure() { 102gnome-python-common_src_configure() {
103 python_execute_function -s gnome2_src_configure "$@" 103 python_execute_function -s gnome2_src_configure "$@"
104} 104}
105 105
106gnome-python-common_src_compile() { 106gnome-python-common_src_compile() {
107 if has ${EAPI:-0} 0 1; then
107 has ${EAPI:-0} 0 1 && gnome-python-common_src_configure "$@" 108 gnome-python-common_src_configure "$@"
109 building() {
110 emake "$@"
111 }
112 python_execute_function -s building "$@"
113 else
108 python_src_compile "$@" 114 python_src_compile "$@"
115 fi
109} 116}
110 117
111gnome-python-common_src_test() { 118gnome-python-common_src_test() {
119 if has ${EAPI:-0} 0 1; then
120 testing() {
121 if emake -j1 -n check &> /dev/null; then
122 emake -j1 check "$@"
123 elif emake -j1 -n test &> /dev/null; then
124 emake -j1 test "$@"
125 fi
126 }
127 python_execute_function -s testing "$@"
128 else
112 python_src_test "$@" 129 python_src_test "$@"
130 fi
113} 131}
114 132
115# Do a regular gnome2 src_install and then install examples if required. 133# Do a regular gnome2 src_install and then install examples if required.
116# Set the variable EXAMPLES to provide the set of examples to be installed. 134# Set the variable EXAMPLES to provide the set of examples to be installed.
117# (to install a directory recursively, specify it with a trailing '/' - for 135# (to install a directory recursively, specify it with a trailing '/' - for

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20