* [gentoo-java] dev-java/sun-jdk-1.7.0.0_alpha28 Experimental Overlay
@ 2008-06-07 13:53 Fabian Fingerle
2008-06-07 16:21 ` Fabian Fingerle
0 siblings, 1 reply; 3+ messages in thread
From: Fabian Fingerle @ 2008-06-07 13:53 UTC (permalink / raw
To: gentoo-java
[-- Attachment #1: Type: text/plain, Size: 817 bytes --]
Hi,
download for dev-java/sun-jdk-1.7.0.0_alpha26 has moved in Experimental
Overlay, because there is the next build from 2008-06-05: Build b28
old build b26 download:
http://www.java.net/download/jdk7/archive/b26/binaries/jdk-7-ea-bin-b26-linux-x64-24_apr_2008.bin
http://www.java.net/download/jdk7/archive/b26/binaries/jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin
new build b28 download:
http://www.java.net/download/jdk7/binaries/jdk-7-ea-bin-b28-linux-x64-05_jun_2008.bin
http://www.java.net/download/jdk7/binaries/jdk-7-ea-bin-b28-linux-i586-05_jun_2008.bin
perhaps somebody could fix the ebuild/submit
dev-java/sun-jdk-1.7.0.0_alpha28-ebuild to svn ...
Yours
Fabian
--
_GPG_ 3D17 CAC8 1955 1908 65ED 5C51 FDA3 6A09 AB41 AB85
_chaos events near stuttgart_ www.datensalat.eu
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-java] dev-java/sun-jdk-1.7.0.0_alpha28 Experimental Overlay
2008-06-07 13:53 [gentoo-java] dev-java/sun-jdk-1.7.0.0_alpha28 Experimental Overlay Fabian Fingerle
@ 2008-06-07 16:21 ` Fabian Fingerle
2008-06-08 6:47 ` Serkan Kaba
0 siblings, 1 reply; 3+ messages in thread
From: Fabian Fingerle @ 2008-06-07 16:21 UTC (permalink / raw
To: gentoo-java
[-- Attachment #1.1: Type: text/plain, Size: 297 bytes --]
Hi,
My first ebuild is attached:
sun-jdk-1.7.0.0_alpha28.ebuild
Full dev-java/sun-jdk
sun-jdk-1.7.0.0_alpha28.tar.bz2
how to submit changes in future?
Yours
Fabian
--
_GPG_ 3D17 CAC8 1955 1908 65ED 5C51 FDA3 6A09 AB41 AB85
_chaos events near stuttgart_ www.datensalat.eu
[-- Attachment #1.2: sun-jdk-1.7.0.0_alpha28.ebuild --]
[-- Type: application/octet-stream, Size: 4933 bytes --]
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0.05.ebuild,v 1.2 2005/10/10 16:23:12 betelgeuse Exp $
inherit java-vm-2 eutils pax-utils
MY_PV=${PV/_beta*/}
MY_PVL=${MY_PV%.*}_${MY_PV##*.}
MY_PVA=${MY_PV//./_}
ALPHA=${PV#*_alpha}
DATE="05_jun_2008"
MY_RPV=${MY_PV%.*}
BASE_URL="http://www.java.net/download/jdk7/binaries/"
x86file="jdk-7-ea-bin-b${ALPHA}-linux-i586-${DATE}.bin"
amd64file="jdk-7-ea-bin-b${ALPHA}-linux-x64-${DATE}.bin"
S="${WORKDIR}/jdk${MY_RPV}"
DESCRIPTION="Sun's Java Development Kit"
HOMEPAGE="https://jdk7.dev.java.net/"
SRC_URI="x86? ( ${BASE_URL}/$x86file ) amd64? ( ${BASE_URL}/$amd64file )"
SLOT="1.7"
LICENSE="sun-prerelease-jdk7"
KEYWORDS="~amd64 ~x86"
RESTRICT="nostrip fetch"
IUSE="X alsa doc nsplugin examples"
DEPEND="sys-apps/sed"
RDEPEND="doc? ( =dev-java/java-sdk-docs-1.6.0* )
alsa? ( media-libs/alsa-lib )
x86? ( =virtual/libstdc++-3.3 )
X? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXmu
x11-libs/libXp
x11-libs/libXtst
)
"
JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/server/libjvm.so
opt/${P}/jre/lib/i386/client/libjvm.so
opt/${P}/jre/lib/i386/motif21/libmawt.so
opt/${P}/jre/lib/i386/libdeploy.so"
pkg_nofetch() {
einfo "Please download:"
einfo "${A} from ${BASE_URL}${A}"
einfo "Then place it in ${DISTDIR}"
einfo "tip: wget ${BASE_URL}${A} -O ${DISTDIR}/${A}"
ewarn "By downloading and installing, you are agreeing to the terms"
ewarn "of Sun's prerelease license."
}
src_unpack() {
# Do a little voodoo to extract the distfile
# Find the ELF in the script
testExp=$(echo -e '\0105\0114\0106')
startAt=$(grep -aonm 1 ${testExp} ${DISTDIR}/${A} | cut -d: -f1)
# Extract and run it
tail -n +${startAt} ${DISTDIR}/${A} > install.sfx
chmod +x install.sfx
./install.sfx >/dev/null || die
rm install.sfx
local packed_jars="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar \
jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar \
jre/lib/javaws.jar jre/lib/deploy.jar"
if [ -f ${S}/bin/unpack200 ]; then
UNPACK_CMD=${S}/bin/unpack200
chmod +x $UNPACK_CMD
sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $UNPACK_CMD
for i in $packed_jars; do
PACK_FILE=${S}/$(dirname $i)/$(basename $i .jar).pack
if [ -f ${PACK_FILE} ]; then
echo " unpacking: $i"
$UNPACK_CMD ${PACK_FILE} ${S}/$i
rm -f ${PACK_FILE}
fi
done
rm -f ${UNPACK_CMD}
else
die "unpack not found"
fi
${S}/bin/java -client -Xshare:dump
}
src_install() {
local dirs="bin include jre lib man"
# Set PaX markings on all JDK/JRE executables to allow code-generation on
# the heap by the JIT compiler.
pax-mark m $(list-paxables ${S}{,/jre}/bin/*)
dodir /opt/${P}
cp -pPR ${dirs} "${D}/opt/${P}/" || die "failed to copy"
dodoc COPYRIGHT LICENSE README.html || die
dohtml README.html || die
dodir /opt/${P}/share/
if use examples; then
cp -pPR demo sample ${D}/opt/${P}/share/ || die
fi
cp -pPR src.zip ${D}/opt/${P}/ || die
if use nsplugin; then
local plugin_dir="ns7-gcc29"
if has_version '>=sys-devel/gcc-3' ; then
plugin_dir="ns7"
fi
if use x86 ; then
install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
else
eerror "No plugin available for amd64 arch"
fi
fi
# create dir for system preferences
dodir /opt/${P}/jre/.systemPrefs
# Create files used as storage for system preferences.
touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock
chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock
touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile
chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile
# install control panel for Gnome/KDE
sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
-e "s/\(Name=Java\)/\1 Control Panel/" \
${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \
${T}/sun_java-${SLOT}.desktop
domenu ${T}/sun_java-${SLOT}.desktop
set_java_env
}
pkg_postinst() {
# Set as default VM if none exists
java-vm-2_pkg_postinst
if ! use X; then
local xwarn="virtual/x11 and/or"
fi
echo
ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed."
ewarn "Be careful which Java libraries you attempt to use."
echo
einfo " Be careful: ${P}'s Java compiler uses"
einfo " '-source 1.7' as default. This means that some keywords "
einfo " such as 'enum' are not valid identifiers any more in that mode,"
einfo " which can cause incompatibility with certain sources."
einfo " Additionally, some API changes may cause some breakages."
echo
elog "Beginning with 1.5.0.10 the hotspot vm can use epoll"
elog "The epoll-based implementation of SelectorProvider is not selected by"
elog "default."
elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
elog ""
}
[-- Attachment #1.3: sun-jdk-1.7.0.0_alpha28.tar.bz2 --]
[-- Type: application/x-bzip, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-java] dev-java/sun-jdk-1.7.0.0_alpha28 Experimental Overlay
2008-06-07 16:21 ` Fabian Fingerle
@ 2008-06-08 6:47 ` Serkan Kaba
0 siblings, 0 replies; 3+ messages in thread
From: Serkan Kaba @ 2008-06-08 6:47 UTC (permalink / raw
To: Fabian Fingerle; +Cc: gentoo-java
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The best method would be submitting the ebuild via Bugzilla.
Fabian Fingerle yazmış:
| Hi,
|
| My first ebuild is attached:
| sun-jdk-1.7.0.0_alpha28.ebuild
|
| Full dev-java/sun-jdk
| sun-jdk-1.7.0.0_alpha28.tar.bz2
|
| how to submit changes in future?
|
| Yours
| Fabian
|
|
- --
Sincerely,
Serkan KABA
Gentoo/Java
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkhLgJ8ACgkQRh6X64ivZaIHfQCfZlq9sUJ7gvjDPwApTWPVBMwv
0b0An1CUBcgIvu/lWK13EaCl2zg1IkvL
=Rwe7
-----END PGP SIGNATURE-----
--
gentoo-java@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-08 6:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 13:53 [gentoo-java] dev-java/sun-jdk-1.7.0.0_alpha28 Experimental Overlay Fabian Fingerle
2008-06-07 16:21 ` Fabian Fingerle
2008-06-08 6:47 ` Serkan Kaba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox