diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-07-31 15:39:18 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-07-31 15:39:18 +0000 |
commit | 59585233f291332258712c50a69caad42db510ce (patch) | |
tree | c51295a08558bc56b72041fd6c282f09f3bb4e79 /x11-misc/lookingglass-bin | |
parent | =x11-misc/lookingglass-bin-0.5 (diff) | |
download | gentoo-2-59585233f291332258712c50a69caad42db510ce.tar.gz gentoo-2-59585233f291332258712c50a69caad42db510ce.tar.bz2 gentoo-2-59585233f291332258712c50a69caad42db510ce.zip |
initial import
Diffstat (limited to 'x11-misc/lookingglass-bin')
-rw-r--r-- | x11-misc/lookingglass-bin/ChangeLog | 11 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/Manifest | 8 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/files/digest-lookingglass-bin-0.5 | 1 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/files/displayserver.patch | 21 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/files/lg3d-dev | 46 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/files/lg3d-dev.patch | 20 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/files/lg3d-session | 46 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/files/setup.patch | 12 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/lookingglass-bin-0.5.ebuild | 56 | ||||
-rw-r--r-- | x11-misc/lookingglass-bin/metadata.xml | 12 |
10 files changed, 233 insertions, 0 deletions
diff --git a/x11-misc/lookingglass-bin/ChangeLog b/x11-misc/lookingglass-bin/ChangeLog new file mode 100644 index 000000000000..e4966e8914d6 --- /dev/null +++ b/x11-misc/lookingglass-bin/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for x11-misc/lookingglass-bin +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/lookingglass-bin/ChangeLog,v 1.1 2004/07/31 15:39:18 axxo Exp $ + +*lookingglass-bin-0.5 (31 Jul 2004) + + 31 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +metadata.xml, + +files/displayserver.patch, +files/lg3d-dev, +files/lg3d-dev.patch, + +files/lg3d-session, +files/setup.patch, +lookingglass-bin-0.5.ebuild: + initial import, requested in 55611, ebuild mostly by me, thanks too + Sveinung Kvilhaugsvik <sveinung@HotPOP.com> and <nosdr4g@hotmail.com> diff --git a/x11-misc/lookingglass-bin/Manifest b/x11-misc/lookingglass-bin/Manifest new file mode 100644 index 000000000000..142c4bff979e --- /dev/null +++ b/x11-misc/lookingglass-bin/Manifest @@ -0,0 +1,8 @@ +MD5 ef8cad5fe27c9f0b63296005b53e8a6f lookingglass-bin-0.5.ebuild 1321 +MD5 4eab4a2a65e10445b60c38d572d32f90 metadata.xml 1303 +MD5 9453465d4068db6beb83f7ecd83877bd files/displayserver.patch 965 +MD5 c512448b1cfd702cd4c35db2a4ee2dab files/lg3d-dev.patch 1019 +MD5 f9c1e87c14a5a0e1953fc8d592075e2d files/digest-lookingglass-bin-0.5 61 +MD5 91f1438b05137e9aa3d97bcb466b67af files/setup.patch 473 +MD5 c2b7f23ab0e6d18c4224155b3431c4a4 files/lg3d-session 1541 +MD5 69f715f50e4361ffe65e4ac7875c38a6 files/lg3d-dev 1537 diff --git a/x11-misc/lookingglass-bin/files/digest-lookingglass-bin-0.5 b/x11-misc/lookingglass-bin/files/digest-lookingglass-bin-0.5 new file mode 100644 index 000000000000..800a82ed0ab5 --- /dev/null +++ b/x11-misc/lookingglass-bin/files/digest-lookingglass-bin-0.5 @@ -0,0 +1 @@ +MD5 d1659f049cc88c21e6434a985cb8482c lg3d-0.5.tar.gz 7961798 diff --git a/x11-misc/lookingglass-bin/files/displayserver.patch b/x11-misc/lookingglass-bin/files/displayserver.patch new file mode 100644 index 000000000000..ebb40b4173e1 --- /dev/null +++ b/x11-misc/lookingglass-bin/files/displayserver.patch @@ -0,0 +1,21 @@ +--- bin/displayserver 2004-06-27 06:25:06.000000000 +0200 ++++ bin/displayserver 2004-07-29 11:53:51.160475080 +0200 +@@ -13,6 +13,12 @@ + + echo $path >> /tmp/lgserver.log + ++set lp="`java-config -i sun-java3d,jai`" ++set cp="`java-config -p sun-java3d,jai`:${CLASSPATH}" ++ ++echo java.library.path ${lp} >> /tmp/lgserver.log ++echo classpath ${cp} >> /tmp/lgserver.log ++ + + pkill -f "rmiregistry ${RMI_PORT}" + sleep 1 +@@ -26,4 +32,4 @@ + # Add lib/i386 to path so we can find cep + set path=( ${scriptdir}/../lib/i386 $path ) + +-java -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log | grep "SEVERE\|WARNING" - ++java -cp ${cp} -Djava.library.path=${lp} -Dj3d.sortShape3DBounds="true" -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log diff --git a/x11-misc/lookingglass-bin/files/lg3d-dev b/x11-misc/lookingglass-bin/files/lg3d-dev new file mode 100644 index 000000000000..dd71232df718 --- /dev/null +++ b/x11-misc/lookingglass-bin/files/lg3d-dev @@ -0,0 +1,46 @@ +#!/bin/bash +# Copyright (c) 2004, Thomas Matthijs <axxo@gentoo.org> +# Copyright (c) 2004, Gentoo Foundation +# +# Licensed under the GNU General Public License, v2 + +# From java-utils.eclass +get-vm-version() { + local version=$(java-config -f | sed -r "s/^[a-zA-Z-]+//") + echo ${version} +} + +is-vm-version-ge() { + local user_major=${1-0} + local user_minor=${2-0} + local user_patch=${3-0} + local user_version=${user_major}.${user_minor}.${user_patch} + + local vm_version=`get-vm-version` + + local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)" + local vm_major=$(echo ${vm_version} | sed -r "s/${ver_rx}/\1/") + local vm_minor=$(echo ${vm_version} | sed -r "s/${ver_rx}/\2/") + local vm_patch=$(echo ${vm_version} | sed -r "s/${ver_rx}/\3/") + local vm_extra=$(echo ${vm_version} | sed -r "s/${ver_rx}/\4/") + + if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt ${user_minor} ] ; then + echo "Detected a JDK >= ${user_version}" + return 0 + elif [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -ge ${user_minor} ] && [ ${vm_patch} -ge ${user_patch} ] ; then + echo "Detected a JDK >= ${user_version}" + return 0 + else + echo "Detected a JDK < ${user_version}" + return 1 + fi +} + +if ! is-vm-version-ge 1 5; then + echo "You current jdk is not >= 1.5" + echo "Please use java-config to select a 1.5" + exit 1 +fi + +cd /opt/lg3d/ +exec bin/lg3d-dev $@ diff --git a/x11-misc/lookingglass-bin/files/lg3d-dev.patch b/x11-misc/lookingglass-bin/files/lg3d-dev.patch new file mode 100644 index 000000000000..edd02f329cdb --- /dev/null +++ b/x11-misc/lookingglass-bin/files/lg3d-dev.patch @@ -0,0 +1,20 @@ +--- bin/lg3d-dev 2004-07-28 21:09:27.432202120 +0200 ++++ bin/lg3d-dev 2004-07-28 21:33:44.272728696 +0200 +@@ -22,6 +22,11 @@ + + echo $path >> /tmp/lgserver.log + ++set lp="`java-config -i sun-java3d,jai`" ++set cp="`java-config -p sun-java3d,jai`:${CLASSPATH}" ++ ++echo java.library.path ${lp} >> /tmp/lgserver.log ++echo classpath ${cp} >> /tmp/lgserver.log + + pkill rmiregistry + sleep 1 +@@ -30,4 +35,4 @@ + + setenv DISP_CONFIG -Dlg.displayconfigurl=file://${scriptdir}/../etc/lg3d/displayconfig/j3d1x1 + +-java -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} -Dorg.jdesktop.jz.jzcoresrc=$LGCORESRC org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log | grep "SEVERE\|WARNING" - ++java -cp ${cp} -Djava.library.path=${lp} -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} -Dorg.jdesktop.jz.jzcoresrc=$LGCORESRC org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log | grep "SEVERE\|WARNING" - diff --git a/x11-misc/lookingglass-bin/files/lg3d-session b/x11-misc/lookingglass-bin/files/lg3d-session new file mode 100644 index 000000000000..263cd3a3175e --- /dev/null +++ b/x11-misc/lookingglass-bin/files/lg3d-session @@ -0,0 +1,46 @@ +#!/bin/bash +# Copyright (c) 2004, Thomas Matthijs <axxo@gentoo.org> +# Copyright (c) 2004, Gentoo Foundation +# +# Licensed under the GNU General Public License, v2 + +# From java-utils.eclass +get-vm-version() { + local version=$(java-config -f | sed -r "s/^[a-zA-Z-]+//") + echo ${version} +} + +is-vm-version-ge() { + local user_major=${1-0} + local user_minor=${2-0} + local user_patch=${3-0} + local user_version=${user_major}.${user_minor}.${user_patch} + + local vm_version=`get-vm-version` + + local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)" + local vm_major=$(echo ${vm_version} | sed -r "s/${ver_rx}/\1/") + local vm_minor=$(echo ${vm_version} | sed -r "s/${ver_rx}/\2/") + local vm_patch=$(echo ${vm_version} | sed -r "s/${ver_rx}/\3/") + local vm_extra=$(echo ${vm_version} | sed -r "s/${ver_rx}/\4/") + + if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt ${user_minor} ] ; then + echo "Detected a JDK >= ${user_version}" + return 0 + elif [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -ge ${user_minor} ] && [ ${vm_patch} -ge ${user_patch} ] ; then + echo "Detected a JDK >= ${user_version}" + return 0 + else + echo "Detected a JDK < ${user_version}" + return 1 + fi +} + +if ! is-vm-version-ge 1 5; then + echo "You current jdk is not >= 1.5" + echo "Please use java-config to select a 1.5" + exit 1 +fi + +cd /opt/lg3d/ +exec bin/lg3d-session $@ diff --git a/x11-misc/lookingglass-bin/files/setup.patch b/x11-misc/lookingglass-bin/files/setup.patch new file mode 100644 index 000000000000..7bc54b9cfc40 --- /dev/null +++ b/x11-misc/lookingglass-bin/files/setup.patch @@ -0,0 +1,12 @@ +--- bin/setup 2004-06-27 06:25:06.000000000 +0200 ++++ bin/setup 2004-07-29 11:41:01.000000000 +0200 +@@ -38,7 +38,8 @@ + # Use the default remote config by default + if ( ${?LGCONFIG} == 0 ) then + # setenv LGCONFIG file://${scriptdir}/lgconfig_x_remote.xml +- setenv LGCONFIG ++ setenv LGCONFIG file://${scriptdir}/../etc/lg3d/lgconfig_1p_nox.xml ++ #setenv LGCONFIG + endif + + setenv CLASSPATH ${lgdir}/lib/ext/lg3d-core.jar:${lgdir}/ext/escher-0.2.2.jar:${lgdir}/ diff --git a/x11-misc/lookingglass-bin/lookingglass-bin-0.5.ebuild b/x11-misc/lookingglass-bin/lookingglass-bin-0.5.ebuild new file mode 100644 index 000000000000..0914c8a0bf28 --- /dev/null +++ b/x11-misc/lookingglass-bin/lookingglass-bin-0.5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/lookingglass-bin/lookingglass-bin-0.5.ebuild,v 1.1 2004/07/31 15:39:18 axxo Exp $ + +inherit eutils + +DESCRIPTION="Looking Glass - 3D window manager writen in Java" +HOMEPAGE="https://lg3d.dev.java.net/" +SRC_URI="https://lg3d-core.dev.java.net/files/documents/1834/5501/lg3d-${PV}.tar.gz" +LICENSE="GPL-2" +IUSE="doc" +SLOT="0" +KEYWORDS="~x86" +DEPEND="" +RDEPEND=">=dev-java/sun-jdk-1.5.0_beta2 + >=dev-java/jai-bin-1.1.2-r3 + >=dev-java/sun-java3d-bin-1.32-r1 + || ( + app-shells/tcsh + app-shells/csh + ) + >=dev-java/java-config-1.2.10" + +S=${WORKDIR}/lg3d + +src_unpack() { + unpack ${A} && cd ${S} + epatch ${FILESDIR}/lg3d-dev.patch + epatch ${FILESDIR}/displayserver.patch + #epatch ${FILESDIR}/setup.patch +} + +src_compile() { :; } + +src_install() { + dodir /opt/lg3d /etc/ /opt/lg3d/etc/ + mv bin ext ext-unbundled lib resources ${D}/opt/lg3d/ + mv etc/lg3d ${D}/etc/ + use doc && dodoc LICENSE.txt + use doc && dohtml -r docs/ + + dodir /etc/X11/Sessions + dosym /opt/lg3d/bin/lg3d-session /etc/X11/Sessions/lookingglass + dosym /etc/lg3d /opt/lg3d/etc + into /opt + dobin ${FILESDIR}/lg3d-dev ${FILESDIR}/lg3d-session +} + + +pkg_postinst() { + echo + ewarn "To run Looking Glass, the screen must be in 24-bit mode" + ewarn "To run in window, run lg3d-dev" + ewarn "To run as a session, run lg3d-session" + echo +} diff --git a/x11-misc/lookingglass-bin/metadata.xml b/x11-misc/lookingglass-bin/metadata.xml new file mode 100644 index 000000000000..fda4f50be5da --- /dev/null +++ b/x11-misc/lookingglass-bin/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>axxo@gentoo.org</email> +</maintainer> +<longdescription>Project Looking Glass is based on Java technology and explores bringing a richer user experience to the desktop and applications via 3D windowing and visualization capabilities. It is an open development project based on and evolved from Sun Microsystems' advanced technology project. It will support running unmodified existing applications in a 3D space, as well as APIs for 3D window manager and application development. At the moment, existing application integration is supported for Linux platforms. + +The project intends to break two boundaries -- the 2D-ness of the current desktop environment and the way the desktop environment evolves. Project Looking Glass is in its infancy. We need to explore lots of ideas and possibilities. We're releasing the Project Looking Glass code to the whole community to explore every aspect of the technology rather than restricting access to a privileged few. We believe this open development is an excellent model to pursue this exciting and vast opportunity. So, your involvement is eagerly anticipated. +</longdescription> +</pkgmetadata> |