/[gentoo-x86]/dev-java/icedtea-bin/icedtea-bin-6.1.10.4-r1.ebuild
Gentoo

Contents of /dev-java/icedtea-bin/icedtea-bin-6.1.10.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Mar 3 21:25:31 2012 UTC (2 years, 8 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, security bug #404095.

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

1 caster 1.2 # Copyright 1999-2012 Gentoo Foundation
2 sera 1.1 # Distributed under the terms of the GNU General Public License v2
3 caster 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-6.1.10.4-r1.ebuild,v 1.2 2012/02/13 21:33:33 caster Exp $
4 sera 1.1
5     EAPI="4"
6    
7     inherit java-vm-2 prefix
8    
9     dist="http://dev.gentoo.org/~caster/distfiles/"
10     TARBALL_VERSION="${PV}"
11    
12     DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
13     HOMEPAGE="http://icedtea.classpath.org"
14     SRC_URI="
15     amd64? ( ${dist}/${PN}-core-${TARBALL_VERSION}-amd64.tar.bz2 )
16     x86? ( ${dist}/${PN}-core-${TARBALL_VERSION}-x86.tar.bz2 )
17     doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.bz2 )
18     examples? (
19     amd64? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-amd64.tar.bz2 )
20     x86? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-x86.tar.bz2 )
21     )
22     nsplugin? (
23     amd64? ( ${dist}/${PN}-nsplugin-${TARBALL_VERSION}-amd64.tar.bz2 )
24     x86? ( ${dist}/${PN}-nsplugin-${TARBALL_VERSION}-x86.tar.bz2 )
25     )
26     source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.bz2 )"
27    
28     LICENSE="GPL-2-with-linking-exception"
29     SLOT="6"
30     KEYWORDS="~amd64 ~x86"
31    
32 caster 1.2 IUSE="+X +alsa cjk +cups doc examples nsplugin source"
33 sera 1.1 REQUIRED_USE="nsplugin? ( X )"
34     RESTRICT="strip"
35    
36 caster 1.2 ALSA_COMMON_DEP="
37     >=media-libs/alsa-lib-1.0.20"
38     CUPS_COMMON_DEP="
39     >=net-print/cups-1.4"
40     X_COMMON_DEP="
41     dev-libs/glib
42     >=media-libs/freetype-2.3.9:2
43     >=x11-libs/gtk+-2.20.1:2
44     >=x11-libs/libX11-1.3
45     >=x11-libs/libXext-1.1
46     >=x11-libs/libXi-1.3
47     >=x11-libs/libXtst-1.1"
48    
49     COMMON_DEP="
50     >=media-libs/giflib-4.1.6-r1
51     >=media-libs/libpng-1.5
52 sera 1.1 >=sys-devel/gcc-4.3
53     >=sys-libs/glibc-2.11.2
54 caster 1.2 >=sys-libs/zlib-1.2.3-r1
55 sera 1.1 virtual/jpeg
56 caster 1.2 nsplugin? (
57     >=dev-libs/atk-1.30.0
58     >=dev-libs/glib-2.20.5:2
59     >=dev-libs/nspr-4.8
60     >=x11-libs/cairo-1.8.8
61     >=x11-libs/pango-1.24.5
62    
63     )"
64    
65     RDEPEND="${COMMON_DEP}
66 sera 1.1 X? (
67 caster 1.2 ${X_COMMON_DEP}
68 sera 1.1 media-fonts/dejavu
69     cjk? (
70     media-fonts/arphicfonts
71     media-fonts/baekmuk-fonts
72     media-fonts/lklug
73     media-fonts/lohit-fonts
74     media-fonts/sazanami
75     )
76     )
77 caster 1.2 alsa? ( ${ALSA_COMMON_DEP} )
78     cups? ( ${CUPS_COMMON_DEP} )"
79 sera 1.1
80     src_install() {
81     local dest="/opt/${P}"
82     local ddest="${ED}/${dest}"
83     dodir "${dest}"
84    
85 caster 1.2 # Ensures HeadlessGraphicsEnvironment is used.
86     if ! use X; then
87     rm -r jre/lib/$(get_system_arch)/xawt || die
88     fi
89    
90 sera 1.1 # doins can't handle symlinks.
91     cp -pRP bin include jre lib man "${ddest}" || die
92    
93     # Remove on next bump as the needed marks are already set by icedtea ebuild.
94     java-vm_set-pax-markings "${ddest}"
95    
96     dodoc ../doc/{ASSEMBLY_EXCEPTION,THIRD_PARTY_README}
97    
98     if use doc; then
99     dohtml -r ../doc/html/*
100     fi
101    
102     if use examples; then
103     cp -pRP share/{demo,sample} "${ddest}" || die
104     fi
105    
106     if use source; then
107     cp src.zip "${ddest}" || die
108     fi
109    
110     if use nsplugin; then
111     cp -pPR ../icedtea-web-bin-${SLOT} "${ddest}"/.. || die
112     install_mozilla_plugin "/opt/icedtea-web-bin-${SLOT}/$(get_libdir)/IcedTeaPlugin.so"
113     docinto icedtea-web
114     dodoc ../doc/icedtea-web/*
115     fi
116    
117     # Remove after next bump, handled by icedtea ebuild. Bug 390663
118     cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
119     eprefixify "${T}"/fontconfig.Gentoo.properties
120     insinto "${dest}"/jre/lib
121     doins "${T}"/fontconfig.Gentoo.properties
122    
123     set_java_env
124     java-vm_revdep-mask "${dest}"
125     }
126    
127     pkg_preinst() {
128     if has_version "<=dev-java/icedtea-bin-1.10.4:${SLOT}"; then
129     # portage would preserve the symlink otherwise, related to bug #384397
130     rm -f "${EROOT}/usr/lib/jvm/icedtea6-bin"
131     elog "To unify the layout and simplify scripts, the identifier of Icedtea-bin-6*"
132     elog "has changed from 'icedtea6-bin' to 'icedtea-bin-6' starting from version 6.1.10.4"
133     elog "If you had icedtea6-bin as system VM, the change should be automatic, however"
134     elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
135     elog "and the same holds for any user VM settings. Sorry for the inconvenience."
136     fi
137     }
138    
139     pkg_postinst() {
140     # Set as default VM if none exists
141     java-vm-2_pkg_postinst
142    
143     if use nsplugin; then
144     elog "The icedtea-bin-${SLOT} browser plugin can be enabled using eselect java-nsplugin"
145     elog "Note that the plugin works only in browsers based on xulrunner-1.9.1+"
146     elog "such as Firefox 3.5+ and recent Chromium versions."
147     fi
148     }

  ViewVC Help
Powered by ViewVC 1.1.20