/[gentoo-x86]/dev-java/java-config/java-config-2.1.11-r3.ebuild
Gentoo

Contents of /dev-java/java-config/java-config-2.1.11-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu May 10 18:33:56 2012 UTC (2 years, 3 months ago) by aballier
Branch: MAIN
Changes since 1.9: +2 -2 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha103/cvs/Linux x86_64)

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/java-config/java-config-2.1.11-r3.ebuild,v 1.9 2012/05/10 16:50:07 sera Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="*:2.6"
7 SUPPORT_PYTHON_ABIS="1"
8
9 inherit distutils eutils fdo-mime gnome2-utils
10
11 DESCRIPTION="Java environment configuration tool"
12 HOMEPAGE="http://www.gentoo.org/proj/en/java/"
13 SRC_URI="mirror://gentoo/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="2"
17 KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
18 IUSE=""
19
20 DEPEND=""
21 RDEPEND=">=dev-java/java-config-wrapper-0.15"
22 # https://bugs.gentoo.org/show_bug.cgi?id=315229
23 PDEPEND=">=virtual/jre-1.5"
24 # Tests fail when java-config isn't already installed.
25 RESTRICT="test"
26 RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython"
27
28 PYTHON_MODNAME="java_config_2"
29
30 src_prepare() {
31 distutils_src_prepare
32 epatch "${FILESDIR}/${P}-python3.patch"
33 epatch "${FILESDIR}/python-abi-support.patch"
34
35 cp config/jdk-defaults-{x86,amd64}-fbsd.conf || die #415397
36 echo "*= icedtea-7 icedtea-6 icedtea-bin-7 icedtea-bin-6" \
37 > config/jdk-defaults-arm.conf || die #305773
38 }
39
40 src_test() {
41 testing() {
42 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" src/run-test-suite.py
43 }
44 python_execute_function testing
45 }
46
47 src_install() {
48 distutils_src_install
49 rm -rf "${D}"/usr/share/mimelnk #350459
50
51 insinto /usr/share/java-config-2/config/
52 newins config/jdk-defaults-${ARCH}.conf jdk-defaults.conf || die "arch config not found"
53 }
54
55 pkg_postrm() {
56 distutils_pkg_postrm
57 fdo-mime_desktop_database_update
58 gnome2_icon_cache_update
59 }
60
61 pkg_postinst() {
62 distutils_pkg_postinst
63 fdo-mime_desktop_database_update
64 gnome2_icon_cache_update
65 }

  ViewVC Help
Powered by ViewVC 1.1.20