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

Contents of /dev-java/java-config/java-config-2.1.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Sep 18 15:39:29 2012 UTC (2 years, 1 month ago) by chithanh
Branch: MAIN
Changes since 1.12: +2 -2 lines
Drop arm keywords on versions which don't build on arm. bug #305773.

(Portage version: 2.2.0_alpha127/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.10.ebuild,v 1.12 2012/01/04 18:22:13 sera Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8
9 inherit fdo-mime gnome2-utils distutils eutils
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 ppc ppc64 x86 ~x86-fbsd"
18 IUSE=""
19
20 DEPEND=""
21 RDEPEND=">=dev-java/java-config-wrapper-0.15"
22 # Tests fail when java-config isn't already installed.
23 RESTRICT="test"
24 RESTRICT_PYTHON_ABIS="3.* *-jython"
25
26 PYTHON_MODNAME="java_config_2"
27
28 src_prepare() {
29 sed -e "s/if not self.dry_run/& and not os.path.exists(s)/" -i setup.py || die "sed failed"
30 }
31
32 src_test() {
33 testing() {
34 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" src/run-test-suite.py
35 }
36 python_execute_function testing
37 }
38
39 src_install() {
40 distutils_src_install
41
42 insinto /usr/share/java-config-2/config/
43 newins config/jdk-defaults-${ARCH}.conf jdk-defaults.conf || die "arch config not found"
44 }
45
46 pkg_postrm() {
47 distutils_pkg_postrm
48 fdo-mime_desktop_database_update
49 gnome2_icon_cache_update
50 }
51
52 pkg_postinst() {
53 distutils_pkg_postinst
54 fdo-mime_desktop_database_update
55 gnome2_icon_cache_update
56 }

  ViewVC Help
Powered by ViewVC 1.1.20