| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/javatoolkit/javatoolkit-0.3.0-r7.ebuild,v 1.1 2012/07/31 14:46:27 sera Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
PYTHON_COMPAT="jython2_5 python2_5 python2_6 python2_7"
|
| 8 |
|
| 9 |
inherit eutils multilib python-distutils-ng
|
| 10 |
|
| 11 |
DESCRIPTION="Collection of Gentoo-specific tools for Java"
|
| 12 |
HOMEPAGE="http://www.gentoo.org/proj/en/java/"
|
| 13 |
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
| 14 |
|
| 15 |
LICENSE="GPL-2"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
| 18 |
IUSE=""
|
| 19 |
|
| 20 |
# PYTHON_USE_WITH="xml(+)" not yet available. #426768
|
| 21 |
COMMON_DEP="
|
| 22 |
python_targets_jython2_5? ( >=dev-java/jython-2.5.2-r1:2.5 )
|
| 23 |
python_targets_python2_5? ( dev-lang/python:2.5[xml] )
|
| 24 |
python_targets_python2_6? ( dev-lang/python:2.6[xml] )
|
| 25 |
python_targets_python2_7? ( dev-lang/python:2.7[xml] )"
|
| 26 |
RDEPEND="${COMMON_DEP}"
|
| 27 |
DEPEND="${COMMON_DEP}"
|
| 28 |
|
| 29 |
python_prepare_all() {
|
| 30 |
epatch "${FILESDIR}/${P}-python2.6.patch"
|
| 31 |
epatch "${FILESDIR}/${P}-no-pyxml.patch"
|
| 32 |
|
| 33 |
# can't pass --install-scripts to setup.py in python-distutils-ng-src_install
|
| 34 |
cat > setup.cfg <<- EOF
|
| 35 |
[install]
|
| 36 |
install-scripts = "${EPREFIX}"/usr/$(get_libdir)/${PN}/bin
|
| 37 |
EOF
|
| 38 |
}
|