Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715 - sun-jdk-1.4.0.ebuild
Summary: sun-jdk-1.4.0.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-15 23:46 UTC by Daniel Mettler
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sun j2se 1.4.0 (final) ebuild (sun-jdk-1.4.0.ebuild,2.21 KB, application/octet-stream)
2002-02-15 23:48 UTC, Daniel Mettler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Mettler 2002-02-15 23:46:57 UTC
hia,

here is an ebuild for sun's j2se sdk 1.4.0 (final release) based on
sun-jdk-1.4_pre1.ebuild by luke holden <alterself@prodigy.net>.

changes:

* adjusted for the final release of j2se sdk 1.4.0
* use of the mozilla 6.1 plugin (instead of that of 6.0)
* fixed a typo in the ebuild description
* fixed/adjusted some error messages
* some spaces and tab cleanups

plugin tested with mozilla/galeon
javac tested with java sources
java/jvm tested with swingset2.jar and together controlcenter

remarks:

* one might consider to write the environment settings to e.g. /etc/env.d/20java
(instead of 21jdk) and symlink the mozilla plugin as
/usr/lib/mozilla/plugins/libjavaplugin_oji.so (instead of
/usr/lib/mozilla/plugins/libjavaplugin_oji140.so). currently one needs to
unmerge all jdk versions prior to 1.4_pre1 for the new settings to have any
impact (see the directory order of the path variable and the precedence of the
jdk 1.3 plugins).
* in gentoo, the current directory does not seem to be added to the classpath
variable by default (at least on my system). i suggest to change this as having
"." in the classpath is pretty common (at the end of classpath to avoid too easy
overriding of system classes). but security comes first, sure.
* this ebuild is definitely improvable (e.g. by installing the netscape 4.x
plugin too)
* this is my first ebuild patch - please review it carefully.

regards

dan

--- sun-jdk-1.4_pre1.ebuild     2002-02-10 22:30:10.000000000 +0000
+++ sun-jdk-1.4.0.ebuild        2002-02-16 03:45:42.000000000 +0000
@@ -1,13 +1,13 @@
 # Copyright 1999-2001 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License, v2 or later
 # Maintainer: Tools Team <tools@gentoo.org>
-# Author: Luke Holden <alterself@prodigy.net>
+# Author: Daniel Mettler <mettlerd@icu.unizh.ch>
 # /space/gentoo/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4_pre1.ebuild,v
1.1 2002/02/10 22:30:10 karltk Exp

-At="j2sdk-1_4_0-rc-linux-i386.bin"
+At="j2sdk-1_4_0-linux-i386.bin"
 S=${WORKDIR}/j2sdk1.4.0
 SRC_URI=""
-DESCRIPTION="Sun's J2EE Development Kit"
+DESCRIPTION="Sun's J2SE Development Kit, version 1.4.0"
 HOMEPAGE="http://java.sun.com/j2se/1.4/download.html"

 DEPEND="virtual/glibc
@@ -19,9 +19,9 @@

 src_unpack() {
        if [ ! -f ${DISTDIR}/${At} ] ; then
-               die "Please download ${At} from ${HOMEPAGE}"
+               die "Please download ${At} from ${HOMEPAGE} (select the \"Linux
GNUZIP Tar shell script\" package format of the SDK) and move it to ${DISTDIR}"
        fi
-       tail +239 ${DISTDIR}/${At} > install.sfx
+       tail +295 ${DISTDIR}/${At} > install.sfx
        chmod +x install.sfx
        ./install.sfx || die
        rm install.sfx
@@ -35,19 +35,19 @@
        for i in $dirs ; do
                cp -a $i ${D}/opt/${P}/
        done
-
+       
        dodoc COPYRIGHT README LICENSE
        dohtml README.html
-
+       
        doman man/man1/*.1
-
+       
        dodir /opt/${P}/share/
        cp -a demo src.zip ${D}/opt/${P}/share/
-
-        if [ "`use mozilla`" ] ; then                                           
-               dodir /usr/lib/mozilla/plugins                                  
-               dosym /opt/${P}/jre/plugin/i386/ns600/libjavaplugin_oji140.so
/usr/lib/mozilla/plugins/
-       fi                            
+       
+        if [ "`use mozilla`" ] ; then
+               dodir /usr/lib/mozilla/plugins
+               dosym /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji140.so
/usr/lib/mozilla/plugins/
+       fi

        dodir /etc/env.d
        echo "PATH=/opt/${P}/bin" > ${D}/etc/env.d/21jdk
@@ -59,11 +59,10 @@

 pkg_postinst () {
        if [ "`use mozilla`" ] ; then
-               einfo "The Mozilla browser plugin has been installed as
/usr/lib/mozilla/plugins/libjavaplugin_oji.so"
+               einfo "The Mozilla browser plugin has been installed as
/usr/lib/mozilla/plugins/libjavaplugin_oji140.so"
        else
                einfo "To install the Java plugin for Mozilla manually, do:"
-               einfo "ln -s
/opt/${P}/jre/plugin/i386/mozilla/libjavaplugin_oji.so /usr/lib/mozilla/plugins/"
-               einfo '(Make certain the directory /usr/lib/mozilla/plugins
exists first)'
-       fi                                                                      
-}                                                                               
-                                                                            
+               einfo "ln -s
/opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji140.so /usr/lib/mozilla/plugins/"
+               einfo "(Make certain the directory /usr/lib/mozilla/plugins
exists first)"
+       fi
+}
Comment 1 Daniel Mettler 2002-02-15 23:48:26 UTC
Created attachment 189 [details]
sun j2se 1.4.0 (final) ebuild
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-02-17 16:06:21 UTC
Tested cursorily and committed.