/[gentoo-x86]/eclass/twisted.eclass
Gentoo

Diff of /eclass/twisted.eclass

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

Revision 1.2 Revision 1.3
1# Copyright 2005 Gentoo Foundation 1# Copyright 2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/twisted.eclass,v 1.2 2006/01/01 01:14:59 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/twisted.eclass,v 1.3 2006/02/13 22:28:07 marienz Exp $
4# 4#
5# Author: Marien Zwart <marienz@gentoo.org> 5# Author: Marien Zwart <marienz@gentoo.org>
6# 6#
7# eclass to aid installing and testing twisted packages. 7# eclass to aid installing and testing twisted packages.
8# 8#
32 # dir, install there, and run from there. 32 # dir, install there, and run from there.
33 local spath="usr/$(get_libdir)/python${PYVER}/site-packages/" 33 local spath="usr/$(get_libdir)/python${PYVER}/site-packages/"
34 mkdir -p "${T}/${spath}" 34 mkdir -p "${T}/${spath}"
35 cp -R "${ROOT}${spath}/twisted" "${T}/${spath}" || die 35 cp -R "${ROOT}${spath}/twisted" "${T}/${spath}" || die
36 if has_version ">=dev-lang/python-2.3"; then 36 if has_version ">=dev-lang/python-2.3"; then
37 ${python} setup.py install --root="${T}" --no-compile || die 37 ${python} setup.py install --root="${T}" --no-compile --force || die
38 else 38 else
39 ${python} setup.py install --root="${T}" || die 39 ${python} setup.py install --root="${T}" --force || die
40 fi 40 fi
41 cd "${T}/${spath}" || die 41 cd "${T}/${spath}" || die
42 local trialopts
43 if ! has_version ">=dev-python/twisted-2.2"; then
44 trialopts=-R
45 fi
42 PATH="${T}/usr/bin:${PATH}" PYTHONPATH="${T}/${spath}" \ 46 PATH="${T}/usr/bin:${PATH}" PYTHONPATH="${T}/${spath}" \
43 trial -R ${PN/-/.} || die "trial failed" 47 trial ${trialopts} ${PN/-/.} || die "trial failed"
44 cd "${S}" 48 cd "${S}"
45 rm -rf "${T}/${spath}" 49 rm -rf "${T}/${spath}"
46} 50}
47 51
48twisted_src_install() { 52twisted_src_install() {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20