/[gentoo-x86]/eclass/python-distutils-ng.eclass
Gentoo

Diff of /eclass/python-distutils-ng.eclass

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

Revision 1.8 Revision 1.9
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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/python-distutils-ng.eclass,v 1.8 2012/03/28 14:21:55 marienz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.9 2012/03/30 16:41:40 nelchael Exp $
4 4
5# @ECLASS: python-distutils-ng 5# @ECLASS: python-distutils-ng
6# @MAINTAINER: 6# @MAINTAINER:
7# Python herd <python@gentoo.org> 7# Python herd <python@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
23# each implementation, default function will run `setup.py build' 23# each implementation, default function will run `setup.py build'
24# - src_test - you can define python_test function that will be run for each 24# - src_test - you can define python_test function that will be run for each
25# implementation 25# implementation
26# - src_install - you can define python_install function that will be run for 26# - src_install - you can define python_install function that will be run for
27# each implementation and python_install_all that will be run in original 27# each implementation and python_install_all that will be run in original
28# directory (so it wil lnot contain any implementation-specific files) 28# directory (so it will not contain any implementation-specific files)
29 29
30# @ECLASS-VARIABLE: PYTHON_COMPAT 30# @ECLASS-VARIABLE: PYTHON_COMPAT
31# @DESCRIPTION: 31# @DESCRIPTION:
32# This variable contains a space separated list of implementations (see above) a 32# This variable contains a space separated list of implementations (see above) a
33# package is compatible to. It must be set before the `inherit' call. The 33# package is compatible to. It must be set before the `inherit' call. The
255 use "python_targets_${impl}" || continue 255 use "python_targets_${impl}" || continue
256 default_impl="${impl}" 256 default_impl="${impl}"
257 break 257 break
258 done 258 done
259 else 259 else
260 use "python_targets_${impl}" || \ 260 use "python_targets_${default_impl}" || \
261 die "default implementation ${default_impl} not enabled" 261 die "default implementation ${default_impl} not enabled"
262 fi 262 fi
263 263
264 [[ -n "${default_impl}" ]] || die "Could not select default implementation" 264 [[ -n "${default_impl}" ]] || die "Could not select default implementation"
265 265

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20