mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
Added extra/openjdk6
This commit is contained in:
parent
154d065de6
commit
eb73515e0e
9 changed files with 554 additions and 0 deletions
220
extra/openjdk6/PKGBUILD
Normal file
220
extra/openjdk6/PKGBUILD
Normal file
|
@ -0,0 +1,220 @@
|
|||
# $Id: PKGBUILD 109497 2011-02-10 07:39:42Z andyrtr $
|
||||
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
||||
# Contributor: Jan de Groot <jgc@archlinux.org>
|
||||
|
||||
# PlugApps: Kevin Mihelich <kevin@plugapps.com>
|
||||
# - Run autogen.sh instead of configure
|
||||
# - Fix a bunch of random compile-time problems
|
||||
# - facedesk x200
|
||||
#
|
||||
# Don't try this at home.
|
||||
|
||||
plugrel=1
|
||||
noautobuild=1
|
||||
|
||||
pkgname=('openjdk6' 'openjdk6-src')
|
||||
pkgbase="openjdk6"
|
||||
#_date=20100715
|
||||
_javaver=6
|
||||
_icedteaver=1.9.6
|
||||
_openjdk_version=b20
|
||||
_openjdk_date=21_jun_2010
|
||||
#pkgver=${_javaver}.${_openjdk_version}_0.hg_${_date}
|
||||
pkgver=${_javaver}.${_openjdk_version}_${_icedteaver}
|
||||
pkgrel=1
|
||||
url='http://icedtea.classpath.org'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('custom')
|
||||
makedepends=('gcc-libs' 'xdg-utils' 'hicolor-icon-theme' 'ca-certificates-java' 'libxtst' 'alsa-lib' 'giflib' 'libxp' 'gtk2'
|
||||
'nspr' 'zlib' 'freetype2' 'libjpeg>=8' 'libx11' 'libcups' 'patch' 'xalan-java' 'xulrunner>=1.9.2'
|
||||
'apache-ant' 'autoconf' 'unzip' 'rhino' 'mercurial' 'zip' 'cpio')
|
||||
options=('!emptydirs') # 'force') # force needed for hg shots
|
||||
source=(http://icedtea.classpath.org/download/source/icedtea6-${_icedteaver}.tar.gz
|
||||
#ftp://ftp.archlinux.org/other/openjdk6/icedtea6-${_date}.tar.xz
|
||||
http://download.java.net/openjdk/jdk6/promoted/${_openjdk_version}/openjdk-6-src-${_openjdk_version}-${_openjdk_date}.tar.gz
|
||||
https://jaxp.dev.java.net/files/documents/913/150648/jdk6-jaxp-b20.zip
|
||||
https://jax-ws.dev.java.net/files/documents/4202/150724/jdk6-jaxws-b20.zip
|
||||
https://jax-ws.dev.java.net/files/documents/4202/150725/jdk6-jaf-b20.zip
|
||||
fix_jdk_cmds_path.diff
|
||||
fix_corba_cmds_path.diff
|
||||
aatext_by_default.diff
|
||||
fontconfig-paths.diff
|
||||
nonreparenting-wm.diff
|
||||
openjdk6.profile
|
||||
openjdk6.profile.csh)
|
||||
noextract=(openjdk-6-src-${_openjdk_version}-${_openjdk_date}.tar.gz)
|
||||
md5sums=('865af3f871ded848f4aa909075ebe856'
|
||||
'0b36adbf67e4f261e1b827ed4be4f447'
|
||||
'22e95fbdb9fb7d8b6b6fc0a1d76d1fbd'
|
||||
'91adfd41e6f001add4f92ae31216b1e3'
|
||||
'bc95c133620bd68c161cac9891592901'
|
||||
'5da3e39fa60985576c4f37d1491efbe2'
|
||||
'f7e7a212e50abb56a6ef1a2b1bd27405'
|
||||
'ef60d567c0d9bad111212851220deafd'
|
||||
'ee1afda124d5927345014ab382ef581e'
|
||||
'409812b5675f9678b1c9e1a12a945a9a'
|
||||
'74c4a7adc782edd087802bf92ae3d6d0'
|
||||
'fdf295e2f186dfa4d308691a3d7ac8c5')
|
||||
|
||||
# source PKGBUILD && mksource
|
||||
mksource() {
|
||||
mkdir /tmp/icedtea6-${_date}
|
||||
pushd /tmp/icedtea6-${_date}
|
||||
#hg -v clone http://icedtea.classpath.org/hg/icedtea6 || return 1
|
||||
# use specific release branch
|
||||
hg -v clone http://icedtea.classpath.org/hg/release/icedtea6-1.8/ || return 1
|
||||
rm -rf icedtea6/.hg*
|
||||
tar -cvJf /tmp/icedtea6-${_date}/icedtea6-${_date}.tar.xz *
|
||||
popd
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
unset JAVA_HOME
|
||||
unset CLASSPATH
|
||||
|
||||
[ -z "${ANT_HOME}" ] && . /etc/profile.d/apache-ant.sh
|
||||
|
||||
_jvmdir=/usr/lib/jvm/java-${_javaver}-openjdk
|
||||
|
||||
cd ${srcdir}/icedtea6-${_icedteaver}
|
||||
|
||||
ln -s ${srcdir}/openjdk-6-src-${_openjdk_version}-${_openjdk_date}.tar.gz .
|
||||
|
||||
cp ${srcdir}/*.diff ${srcdir}/icedtea6-${_icedteaver}/patches/
|
||||
|
||||
autoreconf -i
|
||||
|
||||
export DISTRIBUTION_PATCHES="patches/fix_jdk_cmds_path.diff patches/aatext_by_default.diff patches/fontconfig-paths.diff patches/fix_corba_cmds_path.diff patches/nonreparenting-wm.diff"
|
||||
|
||||
export ALT_PARALLEL_COMPILE_JOBS="${MAKEFLAGS/-j}"
|
||||
export HOTSPOT_BUILD_JOBS="${ALT_PARALLEL_COMPILE_JOBS}"
|
||||
unset MAKEFLAGS
|
||||
|
||||
if [ -x ${_jvmdir}/bin/javac ]; then
|
||||
JCONF="--with-openjdk"
|
||||
elif [ -x /opt/java/bin/javac ]; then
|
||||
JCONF="--with-openjdk"
|
||||
else
|
||||
echo "No supported java installation found, install either openjdk6 or jdk"
|
||||
return 1
|
||||
fi
|
||||
|
||||
./autogen.sh --with-parallel-jobs=${HOTSPOT_BUILD_JOBS} \
|
||||
--with-xalan2-jar=/usr/share/java/xalan.jar \
|
||||
--with-ant-home=/usr/share/java/apache-ant \
|
||||
--with-pkgversion=ArchLinux-${pkgver}-${pkgrel}-$CARCH $JCONF \
|
||||
--with-jaxp-drop-zip=${srcdir}/jdk6-jaxp-b20.zip \
|
||||
--with-jaxws-drop-zip=${srcdir}/jdk6-jaxws-b20.zip \
|
||||
--with-jaf-drop-zip=${srcdir}/jdk6-jaf-b20.zip \
|
||||
--enable-zero
|
||||
|
||||
LD_PRELOAD="" make || return 1
|
||||
}
|
||||
|
||||
package_openjdk6() {
|
||||
pkgdesc='Free Java environment based on OpenJDK 6.0 with IcedTea6 replacing binary plugs.'
|
||||
backup=(etc/profile.d/openjdk6.sh)
|
||||
depends=('gcc-libs' 'xdg-utils' 'hicolor-icon-theme' 'ca-certificates-java' 'libxtst')
|
||||
optdepends=('xulrunner: for the browser plugin'
|
||||
'gtk2: for the browser plugin'
|
||||
'alsa-lib: for sound'
|
||||
'giflib: for gif format support')
|
||||
conflicts=('java-environment' 'java-runtime')
|
||||
provides=('java-environment=6' 'java-runtime=6')
|
||||
install=openjdk6.install
|
||||
|
||||
if [ "${CARCH}" = "x86_64" ]; then
|
||||
_arch=amd64
|
||||
else
|
||||
_arch=arm
|
||||
fi
|
||||
|
||||
_javaver=6
|
||||
_jvmdir=/usr/lib/jvm/java-${_javaver}-openjdk
|
||||
|
||||
cd ${srcdir}/icedtea6-${_icedteaver}
|
||||
install -m755 -d ${pkgdir}/${_jvmdir}/jre
|
||||
|
||||
pushd ${srcdir}/icedtea6-${_icedteaver}/openjdk.build/j2sdk-image
|
||||
|
||||
# Install main files.
|
||||
cp -a bin include lib ${pkgdir}/${_jvmdir}/ || return 1
|
||||
cp -a jre/bin jre/lib ${pkgdir}/${_jvmdir}/jre/ || return 1
|
||||
|
||||
mv ${pkgdir}/${_jvmdir}/jre/lib/fontconfig.Ubuntu.properties.src \
|
||||
${pkgdir}/${_jvmdir}/jre/lib/fontconfig.properties.src || return 1
|
||||
mv ${pkgdir}/${_jvmdir}/jre/lib/fontconfig.Ubuntu.bfc \
|
||||
${pkgdir}/${_jvmdir}/jre/lib/fontconfig.bfc || return 1
|
||||
rm -f ${pkgdir}/${_jvmdir}/jre/lib/fontconfig.*.bfc
|
||||
rm -f ${pkgdir}/${_jvmdir}/jre/lib/fontconfig.*.properties.src
|
||||
|
||||
# Install man pages.
|
||||
install -m755 -d ${pkgdir}/usr/share/man/man1
|
||||
install -m644 man/man1/*.1 ${pkgdir}/usr/share/man/man1/ || return 1
|
||||
|
||||
# Install demos and samples.
|
||||
cp -a demo ${pkgdir}/${_jvmdir}/ || return 1
|
||||
install -m755 -d sample/rmi
|
||||
mv bin/java-rmi.cgi sample/rmi || return 1
|
||||
cp -a sample ${pkgdir}/${_jvmdir}/ || return 1
|
||||
popd
|
||||
|
||||
# Install icons and menu entries.
|
||||
for s in 16 24 32 48 ; do
|
||||
install -m755 -d ${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps
|
||||
install -m644 openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
|
||||
${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/java.png || return 1
|
||||
done
|
||||
|
||||
# Install desktop files.
|
||||
install -m755 -d ${pkgdir}/usr/share/{applications,pixmaps}
|
||||
install -m644 javaws.png ${pkgdir}/usr/share/pixmaps || return 1
|
||||
install -m644 {javaws,jconsole,policytool}.desktop ${pkgdir}/usr/share/applications || return 1
|
||||
|
||||
# link the mozilla-plugin - test it here http://www.java.com/en/download/help/testvm.xml
|
||||
install -m755 -d ${pkgdir}/usr/lib/mozilla/plugins/
|
||||
ln -sf ${_jvmdir}/jre/lib/${_arch/i586/i386}/IcedTeaPlugin.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
|
||||
|
||||
# link binaries into /usr/bin
|
||||
install -m755 -d ${pkgdir}/usr/bin
|
||||
pushd ${pkgdir}/${_jvmdir}/bin
|
||||
for file in *; do
|
||||
ln -sf ${_jvmdir}/bin/${file} \
|
||||
${pkgdir}/usr/bin || return 1
|
||||
done
|
||||
popd
|
||||
|
||||
# link JKS keystore from ca-certificates-java
|
||||
rm -f ${pkgdir}/${_jvmdir}/jre/lib/security/cacerts
|
||||
ln -sf /etc/ssl/certs/java/cacerts "${pkgdir}/${_jvmdir}/jre/lib/security/cacerts"
|
||||
|
||||
# set some variables
|
||||
install -m755 -d ${pkgdir}/etc/profile.d
|
||||
install -m755 ${srcdir}/openjdk6.profile ${pkgdir}/etc/profile.d/openjdk6.sh || return 1
|
||||
install -m755 ${srcdir}/openjdk6.profile.csh ${pkgdir}/etc/profile.d/openjdk6.csh || return 1
|
||||
|
||||
# install license
|
||||
install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
||||
}
|
||||
|
||||
package_openjdk6-src() {
|
||||
pkgdesc='Free Java environment based on OpenJDK 6.0 Source Bundle'
|
||||
depends=('openjdk6')
|
||||
|
||||
if [ "${CARCH}" = "x86_64" ]; then
|
||||
_arch=amd64
|
||||
else
|
||||
_arch=arm
|
||||
fi
|
||||
|
||||
_javaver=6
|
||||
_jvmdir=/usr/lib/jvm/java-${_javaver}-openjdk
|
||||
|
||||
cd ${srcdir}/icedtea6-${_icedteaver}
|
||||
install -m755 -d ${pkgdir}/${_jvmdir}/jre
|
||||
|
||||
pushd ${srcdir}/icedtea6-${_icedteaver}/openjdk.build/j2sdk-image
|
||||
# Install src.zip file
|
||||
cp -a src.zip ${pkgdir}/${_jvmdir}/ || return 1
|
||||
}
|
35
extra/openjdk6/aatext_by_default.diff
Normal file
35
extra/openjdk6/aatext_by_default.diff
Normal file
|
@ -0,0 +1,35 @@
|
|||
--- openjdk/jdk/src/share/classes/sun/awt/SunToolkit.java.old 2008-01-08 20:23:56.000000000 +0200
|
||||
+++ openjdk/jdk/src/share/classes/sun/awt/SunToolkit.java 2008-02-24 12:39:19.000000000 +0200
|
||||
@@ -1875,7 +1875,6 @@
|
||||
*/
|
||||
private static boolean useSystemAAFontSettings() {
|
||||
if (!checkedSystemAAFontSettings) {
|
||||
- useSystemAAFontSettings = true; /* initially set this true */
|
||||
String systemAAFonts = null;
|
||||
Toolkit tk = Toolkit.getDefaultToolkit();
|
||||
if (tk instanceof SunToolkit) {
|
||||
@@ -1883,20 +1882,10 @@
|
||||
(String)AccessController.doPrivileged(
|
||||
new GetPropertyAction("awt.useSystemAAFontSettings"));
|
||||
}
|
||||
- if (systemAAFonts != null) {
|
||||
- useSystemAAFontSettings =
|
||||
- Boolean.valueOf(systemAAFonts).booleanValue();
|
||||
- /* If it is anything other than "true", then it may be
|
||||
- * a hint name , or it may be "off, "default", etc.
|
||||
- */
|
||||
- if (!useSystemAAFontSettings) {
|
||||
- desktopFontHints = getDesktopAAHintsByName(systemAAFonts);
|
||||
- }
|
||||
- }
|
||||
- /* If its still true, apply the extra condition */
|
||||
- if (useSystemAAFontSettings) {
|
||||
- useSystemAAFontSettings = lastExtraCondition;
|
||||
- }
|
||||
+ if (systemAAFonts == null || Boolean.parseBoolean(systemAAFonts))
|
||||
+ systemAAFonts = "on";
|
||||
+ desktopFontHints = getDesktopAAHintsByName(systemAAFonts);
|
||||
+ useSystemAAFontSettings = desktopFontHints != null;
|
||||
checkedSystemAAFontSettings = true;
|
||||
}
|
||||
return useSystemAAFontSettings;
|
33
extra/openjdk6/fix_corba_cmds_path.diff
Normal file
33
extra/openjdk6/fix_corba_cmds_path.diff
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- openjdk/corba/make/common/shared/Defs-utils.gmk.old 2008-04-13 13:26:12.000000000 +0300
|
||||
+++ openjdk/corba/make/common/shared/Defs-utils.gmk 2008-04-14 15:35:13.000000000 +0300
|
||||
@@ -86,10 +86,10 @@
|
||||
CHMOD = $(UTILS_COMMAND_PATH)chmod
|
||||
CMP = $(UTILS_USR_BIN_PATH)cmp
|
||||
COMM = $(UTILS_USR_BIN_PATH)comm
|
||||
-COMPRESS = $(UTILS_USR_BIN_PATH)compress
|
||||
+COMPRESS = $(UTILS_COMMAND_PATH)compress
|
||||
CP = $(UTILS_COMMAND_PATH)cp
|
||||
CPIO = $(UTILS_COMMAND_PATH)cpio
|
||||
-CUT = $(UTILS_USR_BIN_PATH)cut
|
||||
+CUT = $(UTILS_COMMAND_PATH)cut
|
||||
DATE = $(UTILS_COMMAND_PATH)date
|
||||
DF = $(UTILS_COMMAND_PATH)df
|
||||
DIFF = $(UTILS_USR_BIN_PATH)diff
|
||||
@@ -136,7 +136,7 @@
|
||||
TAR = $(UTILS_COMMAND_PATH)tar
|
||||
TEST = $(UTILS_USR_BIN_PATH)test
|
||||
TOUCH = $(UTILS_COMMAND_PATH)touch
|
||||
-TR = $(UTILS_USR_BIN_PATH)tr
|
||||
+TR = $(UTILS_COMMAND_PATH)tr
|
||||
TRUE = $(UTILS_COMMAND_PATH)true
|
||||
UNAME = $(UTILS_COMMAND_PATH)uname
|
||||
UNIQ = $(UTILS_USR_BIN_PATH)uniq
|
||||
@@ -186,7 +186,7 @@
|
||||
# others have it in /usr/bin.
|
||||
SORT=$(firstword $(wildcard $(UTILS_COMMAND_PATH)sort) \
|
||||
$(wildcard $(UTILS_USR_BIN_PATH)sort))
|
||||
- NAWK = $(USRBIN_PATH)gawk
|
||||
+ NAWK = $(UTILS_COMMAND_PATH)gawk
|
||||
# Intrinsic unix command, with backslash-escaped character interpretation
|
||||
ECHO = /bin/echo -e
|
||||
# These are really in UTILS_USR_BIN_PATH on Linux (only sccs is not)
|
33
extra/openjdk6/fix_jdk_cmds_path.diff
Normal file
33
extra/openjdk6/fix_jdk_cmds_path.diff
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- openjdk/jdk/make/common/shared/Defs-utils.gmk.old 2008-04-13 13:33:23.000000000 +0300
|
||||
+++ openjdk/jdk/make/common/shared/Defs-utils.gmk 2008-04-14 15:37:34.000000000 +0300
|
||||
@@ -76,10 +76,10 @@
|
||||
CHMOD = $(UTILS_COMMAND_PATH)chmod
|
||||
CMP = $(UTILS_USR_BIN_PATH)cmp
|
||||
COMM = $(UTILS_USR_BIN_PATH)comm
|
||||
-COMPRESS = $(UTILS_USR_BIN_PATH)compress
|
||||
+COMPRESS = $(UTILS_COMMAND_PATH)compress
|
||||
CP = $(UTILS_COMMAND_PATH)cp
|
||||
CPIO = $(UTILS_COMMAND_PATH)cpio
|
||||
-CUT = $(UTILS_USR_BIN_PATH)cut
|
||||
+CUT = $(UTILS_COMMAND_PATH)cut
|
||||
DATE = $(UTILS_COMMAND_PATH)date
|
||||
DF = $(UTILS_COMMAND_PATH)df
|
||||
DIFF = $(UTILS_USR_BIN_PATH)diff
|
||||
@@ -126,7 +126,7 @@
|
||||
TAR = $(UTILS_COMMAND_PATH)tar
|
||||
TEST = $(UTILS_USR_BIN_PATH)test
|
||||
TOUCH = $(UTILS_COMMAND_PATH)touch
|
||||
-TR = $(UTILS_USR_BIN_PATH)tr
|
||||
+TR = $(UTILS_COMMAND_PATH)tr
|
||||
TRUE = $(UTILS_COMMAND_PATH)true
|
||||
UNAME = $(UTILS_COMMAND_PATH)uname
|
||||
UNIQ = $(UTILS_USR_BIN_PATH)uniq
|
||||
@@ -173,7 +173,7 @@
|
||||
BASENAME=$(firstword $(wildcard $(UTILS_COMMAND_PATH)basename) \
|
||||
$(wildcard $(UTILS_USR_BIN_PATH)basename))
|
||||
|
||||
- NAWK = $(USRBIN_PATH)gawk
|
||||
+ NAWK = $(UTILS_COMMAND_PATH)gawk
|
||||
# Intrinsic unix command, with backslash-escaped character interpretation
|
||||
ECHO = /bin/echo -e
|
||||
# These are really in UTILS_USR_BIN_PATH on Linux (only sccs is not)
|
134
extra/openjdk6/fontconfig-paths.diff
Normal file
134
extra/openjdk6/fontconfig-paths.diff
Normal file
|
@ -0,0 +1,134 @@
|
|||
--- openjdk/jdk/src/solaris/classes/sun/awt/fontconfigs/linux.fontconfig.Ubuntu.properties 2009-05-29 22:45:23.024341869 +0000
|
||||
+++ openjdk/jdk/src/solaris/classes/sun/awt/fontconfigs/linux.fontconfig.Ubuntu.properties.new 2009-05-29 22:55:13.681366890 +0000
|
||||
@@ -275,73 +275,61 @@
|
||||
|
||||
# Font File Names
|
||||
|
||||
-filename.DejaVu_Sans=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
|
||||
-filename.DejaVu_Sans_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
|
||||
-filename.DejaVu_Sans_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
|
||||
-filename.DejaVu_Sans_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf
|
||||
-
|
||||
-filename.DejaVu_Sans_Mono=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
|
||||
-filename.DejaVu_Sans_Mono_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
|
||||
-filename.DejaVu_Sans_Mono_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf
|
||||
-filename.DejaVu_Sans_Mono_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
|
||||
-
|
||||
-filename.DejaVu_Serif=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
|
||||
-filename.DejaVu_Serif_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
|
||||
-filename.DejaVu_Serif_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Oblique.ttf
|
||||
-filename.DejaVu_Serif_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldOblique.ttf
|
||||
-
|
||||
-filename.AR_PL_UMing_CN=/usr/share/fonts/truetype/arphic/uming.ttc
|
||||
-filename.AR_PL_UMing_HK=/usr/share/fonts/truetype/arphic/uming.ttc
|
||||
-filename.AR_PL_UMing_TW=/usr/share/fonts/truetype/arphic/uming.ttc
|
||||
-filename.AR_PL_ShanHeiSun_Uni=/usr/share/fonts/truetype/arphic/uming.ttf
|
||||
-
|
||||
-filename.WenQuanYi_Zen_Hei=/usr/share/fonts/truetype/wqy/wqy-zenhei.ttf
|
||||
-filename.Baekmuk_Batang=/usr/share/fonts/truetype/baekmuk/batang.ttf
|
||||
-filename.UnBatang=/usr/share/fonts/truetype/unfonts/UnBatang.ttf
|
||||
-filename.UnBatang_Bold=/usr/share/fonts/truetype/unfonts/UnBatangBold.ttf
|
||||
-filename.Baekmuk_Gulim=/usr/share/fonts/truetype/baekmuk/gulim.ttf
|
||||
-filename.UnDotum=/usr/share/fonts/truetype/unfonts/UnDotum.ttf
|
||||
-filename.UnDotum_Bold=/usr/share/fonts/truetype/unfonts/UnDotumBold.ttf
|
||||
-filename.Kochi_Gothic=/usr/share/fonts/truetype/kochi/kochi-gothic.ttf
|
||||
-filename.Sazanami_Gothic=/usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf
|
||||
-filename.Kochi_Mincho=/usr/share/fonts/truetype/kochi/kochi-mincho.ttf
|
||||
-filename.Sazanami_Mincho=/usr/share/fonts/truetype/sazanami/sazanami-mincho.ttf
|
||||
-filename.VL_Gothic=/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf
|
||||
-filename.VL_PGothic=/usr/share/fonts/truetype/vlgothic/VL-PGothic-Regular.ttf
|
||||
-
|
||||
-filename.Lohit_Bengali=/usr/share/fonts/truetype/ttf-bengali-fonts/lohit_bn.ttf
|
||||
-filename.Lohit_Gujarati=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_gu.ttf
|
||||
-filename.Lohit_Hindi=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_hi.ttf
|
||||
-filename.Lohit_Kannda=/usr/share/fonts/truetype/ttf-kannada-fonts/lohit_kn.ttf
|
||||
-#filename.Lohit_Malayalam=/usr/share/fonts/lohit-malayalam/lohit_ml.ttf
|
||||
-filename.Lohit_Oriya=/usr/share/fonts/truetype/ttf-oriya-fonts/lohit_or.ttf
|
||||
-filename.Lohit_Punjabi=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf
|
||||
-filename.Lohit_Tamil=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf
|
||||
-filename.Lohit_Telugu=/usr/share/fonts/truetype/ttf-telugu-fonts/lohit_te.ttf
|
||||
-filename.LKLUG=/usr/share/fonts/truetype/ttf-sinhala-lklug/lklug.ttf
|
||||
-
|
||||
-filename.LuxiSans-Regular=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisr.ttf
|
||||
-filename.LuxiSans-Bold=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisb.ttf
|
||||
-filename.LuxiSans-Oblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisri.ttf
|
||||
-filename.LuxiSans-BoldOblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisbi.ttf
|
||||
-filename.LuxiMono-Regular=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximr.ttf
|
||||
-filename.LuxiMono-Bold=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximb.ttf
|
||||
-filename.LuxiMono-Oblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximri.ttf
|
||||
-filename.LuxiMono-BoldOblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximbi.ttf
|
||||
-filename.LuxiSerif-Regular=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirr.ttf
|
||||
-filename.LuxiSerif-Bold=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirb.ttf
|
||||
-filename.LuxiSerif-Oblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirri.ttf
|
||||
-filename.LuxiSerif-BoldOblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirbi.ttf
|
||||
-
|
||||
-# AWT X11 font paths
|
||||
-awtfontpath.latin-1=/usr/share/fonts/X11/Type1
|
||||
-awtfontpath.umingcn=/usr/share/fonts/truetype/arphic
|
||||
-awtfontpath.uminghk=/usr/share/fonts/truetype/arphic
|
||||
-awtfontpath.umingtw=/usr/share/fonts/truetype/arphic
|
||||
-awtfontpath.shanheisun=/usr/share/fonts/truetype/arphic
|
||||
-awtfontpath.wqy-zenhei=/usr/share/fonts/truetype/wqy
|
||||
-awtfontpath.japanese-kochi=/usr/share/fonts/truetype/kochi
|
||||
-awtfontpath.japanese-sazanami=/usr/share/fonts/truetype/sazanami
|
||||
-awtfontpath.japanese-vlgothic=/usr/share/fonts/truetype/vlgothic
|
||||
-awtfontpath.korean-baekmuk=/usr/share/fonts/truetype/baekmuk
|
||||
-awtfontpath.korean-un=/usr/share/fonts/truetype/unfonts
|
||||
+filename.DejaVu_Sans=/usr/share/fonts/TTF/DejaVuSans.ttf
|
||||
+filename.DejaVu_Sans_Bold=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
|
||||
+filename.DejaVu_Sans_Oblique=/usr/share/fonts/TTF/DejaVuSans-Oblique.ttf
|
||||
+filename.DejaVu_Sans_Bold_Oblique=/usr/share/fonts/TTF/DejaVuSans-BoldOblique.ttf
|
||||
+
|
||||
+filename.DejaVu_Sans_Mono=/usr/share/fonts/TTF/DejaVuSansMono.ttf
|
||||
+filename.DejaVu_Sans_Mono_Bold=/usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf
|
||||
+filename.DejaVu_Sans_Mono_Oblique=/usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf
|
||||
+filename.DejaVu_Sans_Mono_Bold_Oblique=/usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf
|
||||
+
|
||||
+filename.DejaVu_Serif=/usr/share/fonts/TTF/DejaVuSerif.ttf
|
||||
+filename.DejaVu_Serif_Bold=/usr/share/fonts/TTF/DejaVuSerif-Bold.ttf
|
||||
+filename.DejaVu_Serif_Oblique=/usr/share/fonts/TTF/DejaVuSerif-Oblique.ttf
|
||||
+filename.DejaVu_Serif_Bold_Oblique=/usr/share/fonts/TTF/DejaVuSerif-BoldOblique.ttf
|
||||
+
|
||||
+filename.AR_PL_UMing_CN=/usr/share/fonts/TTF/uming.ttc
|
||||
+filename.AR_PL_UMing_HK=/usr/share/fonts/TTF/uming.ttc
|
||||
+filename.AR_PL_UMing_TW=/usr/share/fonts/TTF/uming.ttc
|
||||
+filename.AR_PL_ShanHeiSun_Uni=/usr/share/TTF/uming.ttf
|
||||
+
|
||||
+filename.WenQuanYi_Zen_Hei=/usr/share/fonts/TTF/wqy-zenhei.ttf
|
||||
+filename.Baekmuk_Batang=/usr/share/fonts/TTF/batang.ttf
|
||||
+filename.UnBatang=/usr/share/fonts/TTF/UnBatang.ttf
|
||||
+filename.UnBatang_Bold=/usr/share/fonts/TTF/UnBatangBold.ttf
|
||||
+filename.Baekmuk_Gulim=/usr/share/fonts/TTF/gulim.ttf
|
||||
+filename.UnDotum=/usr/share/fonts/TTF/UnDotum.ttf
|
||||
+filename.UnDotum_Bold=/usr/share/fonts/TTF/UnDotumBold.ttf
|
||||
+filename.Kochi_Gothic=/usr/share/fonts/TTF/kochi-gothic.ttf
|
||||
+filename.Sazanami_Gothic=/usr/share/fonts/TTF/sazanami-gothic.ttf
|
||||
+filename.Kochi_Mincho=/usr/share/fonts/TTF/kochi-mincho.ttf
|
||||
+filename.Sazanami_Mincho=/usr/share/fonts/TTF/sazanami-mincho.ttf
|
||||
+filename.VL_Gothic=/usr/share/fonts/TTF/VL-Gothic-Regular.ttf
|
||||
+filename.VL_PGothic=/usr/share/fonts/TTF/VL-PGothic-Regular.ttf
|
||||
+
|
||||
+filename.Lohit_Bengali=/usr/share/fonts/TTF/lohit_bn.ttf
|
||||
+filename.Lohit_Gujarati=/usr/share/fonts/TTF/lohit_gu.ttf
|
||||
+filename.Lohit_Hindi=/usr/share/fonts/TTF/lohit_hi.ttf
|
||||
+filename.Lohit_Kannda=/usr/share/fonts/TTF/lohit_kn.ttf
|
||||
+#filename.Lohit_Malayalam=/usr/share/fonts/TTF/lohit_ml.ttf
|
||||
+filename.Lohit_Oriya=/usr/share/fonts/TTF/lohit_or.ttf
|
||||
+filename.Lohit_Punjabi=/usr/share/fonts/TTF/lohit_pa.ttf
|
||||
+filename.Lohit_Tamil=/usr/share/fonts/TTF/lohit_ta.ttf
|
||||
+filename.Lohit_Telugu=/usr/share/fonts/TTF/lohit_te.ttf
|
||||
+filename.LKLUG=/usr/share/fonts/TTF/lklug.ttf
|
||||
+
|
||||
+filename.LuxiSans-Regular=/usr/share/fonts/TTF/luxisr.ttf
|
||||
+filename.LuxiSans-Bold=/usr/share/fonts/TTF/luxisb.ttf
|
||||
+filename.LuxiSans-Oblique=/usr/share/fonts/TTF/luxisri.ttf
|
||||
+filename.LuxiSans-BoldOblique=/usr/share/fonts/TTF/luxisbi.ttf
|
||||
+filename.LuxiMono-Regular=/usr/share/fonts/TTF/luximr.ttf
|
||||
+filename.LuxiMono-Bold=/usr/share/fonts/TTF/luximb.ttf
|
||||
+filename.LuxiMono-Oblique=/usr/share/fonts/TTF/luximri.ttf
|
||||
+filename.LuxiMono-BoldOblique=/usr/share/fonts/TTF/luximbi.ttf
|
||||
+filename.LuxiSerif-Regular=/usr/share/fonts/TTF/luxirr.ttf
|
||||
+filename.LuxiSerif-Bold=/usr/share/fonts/TTF/luxirb.ttf
|
||||
+filename.LuxiSerif-Oblique=/usr/share/fonts/TTF/luxirri.ttf
|
||||
+filename.LuxiSerif-BoldOblique=/usr/share/fonts/TTF/luxirbi.ttf
|
||||
+
|
66
extra/openjdk6/nonreparenting-wm.diff
Normal file
66
extra/openjdk6/nonreparenting-wm.diff
Normal file
|
@ -0,0 +1,66 @@
|
|||
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XWM.java b/jdk/src/solaris/classes/sun/awt/X11/XWM.java
|
||||
index 68d1ff7..878327e 100644
|
||||
--- openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java
|
||||
+++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java
|
||||
@@ -98,11 +98,14 @@ class XWM implements MWMConstants, XUtilConstants {
|
||||
ICE_WM = 10,
|
||||
METACITY_WM = 11,
|
||||
COMPIZ_WM = 12,
|
||||
- LG3D_WM = 13;
|
||||
+ LG3D_WM = 13,
|
||||
+ OTHER_NONREPARENTING_WM = 14;
|
||||
public String toString() {
|
||||
switch (WMID) {
|
||||
case NO_WM:
|
||||
return "NO WM";
|
||||
+ case OTHER_NONREPARENTING_WM:
|
||||
+ return "Other non-reparenting WM";
|
||||
case OTHER_WM:
|
||||
return "Other WM";
|
||||
case OPENLOOK_WM:
|
||||
@@ -564,7 +567,7 @@ class XWM implements MWMConstants, XUtilConstants {
|
||||
}
|
||||
|
||||
static boolean isNonReparentingWM() {
|
||||
- return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM);
|
||||
+ return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.OTHER_NONREPARENTING_WM);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -764,9 +767,17 @@ class XWM implements MWMConstants, XUtilConstants {
|
||||
* supports WIN or _NET wm spec.
|
||||
*/
|
||||
else if (l_net_protocol.active()) {
|
||||
- awt_wmgr = XWM.OTHER_WM;
|
||||
+ if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
|
||||
+ awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
|
||||
+ } else {
|
||||
+ awt_wmgr = XWM.OTHER_WM;
|
||||
+ }
|
||||
} else if (win.active()) {
|
||||
- awt_wmgr = XWM.OTHER_WM;
|
||||
+ if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
|
||||
+ awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
|
||||
+ } else {
|
||||
+ awt_wmgr = XWM.OTHER_WM;
|
||||
+ }
|
||||
}
|
||||
/*
|
||||
* Check for legacy WMs.
|
||||
@@ -777,6 +788,8 @@ class XWM implements MWMConstants, XUtilConstants {
|
||||
awt_wmgr = XWM.MOTIF_WM;
|
||||
} else if (isOpenLook()) {
|
||||
awt_wmgr = XWM.OPENLOOK_WM;
|
||||
+ } else if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
|
||||
+ awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
|
||||
} else {
|
||||
awt_wmgr = XWM.OTHER_WM;
|
||||
}
|
||||
@@ -1298,6 +1311,7 @@ class XWM implements MWMConstants, XUtilConstants {
|
||||
res = new Insets(28, 6, 6, 6);
|
||||
break;
|
||||
case NO_WM:
|
||||
+ case OTHER_NONREPARENTING_WM:
|
||||
case LG3D_WM:
|
||||
res = zeroInsets;
|
||||
break;
|
21
extra/openjdk6/openjdk6.install
Normal file
21
extra/openjdk6/openjdk6.install
Normal file
|
@ -0,0 +1,21 @@
|
|||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
||||
if [ ! -f /etc/ssl/certs/java/cacerts ]; then
|
||||
/usr/sbin/init-jks-keystore
|
||||
fi
|
||||
echo "when you use a non-reparenting window manager"
|
||||
echo "set _JAVA_AWT_WM_NONREPARENTING=1 in"
|
||||
echo "/etc/profile.d/openjdk6.sh"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
||||
if [ ! -f /etc/ssl/certs/java/cacerts ]; then
|
||||
/usr/sbin/init-jks-keystore
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
post_remove() {
|
||||
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
||||
}
|
6
extra/openjdk6/openjdk6.profile
Normal file
6
extra/openjdk6/openjdk6.profile
Normal file
|
@ -0,0 +1,6 @@
|
|||
export J2SDKDIR=/usr/lib/jvm/java-6-openjdk
|
||||
export J2REDIR=$J2SDKDIR/jre
|
||||
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
|
||||
|
||||
# enable this for non-reparenting window managers
|
||||
#export _JAVA_AWT_WM_NONREPARENTING=1
|
6
extra/openjdk6/openjdk6.profile.csh
Normal file
6
extra/openjdk6/openjdk6.profile.csh
Normal file
|
@ -0,0 +1,6 @@
|
|||
setenv J2SDKDIR "/usr/lib/jvm/java-6-openjdk"
|
||||
setenv J2REDIR "$J2SDKDIR/jre"
|
||||
setenv JAVA_HOME "/usr/lib/jvm/java-6-openjdk"
|
||||
|
||||
# enable this for non-reparenting window managers
|
||||
#setenv _JAVA_AWT_WM_NONREPARENTING 1
|
Loading…
Reference in a new issue