Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55611 - project looking glas (lg)
Summary: project looking glas (lg)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL: https://lg3d.dev.java.net/
Whiteboard:
Keywords:
Depends on: 55646
Blocks:
  Show dependency tree
 
Reported: 2004-06-29 13:35 UTC by Sveinung Kvilhaugsvik
Modified: 2004-07-31 10:18 UTC (History)
7 users (show)

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


Attachments
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1013 bytes, text/plain)
2004-06-29 16:58 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,996 bytes, text/plain)
2004-06-29 17:14 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.15 KB, text/plain)
2004-06-29 19:16 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.34 KB, text/plain)
2004-06-30 04:14 UTC, nosdr4g
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.28 KB, text/plain)
2004-06-30 07:23 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.15 KB, text/plain)
2004-06-30 09:07 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.28 KB, text/plain)
2004-06-30 09:45 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.40 KB, text/plain)
2004-07-01 03:45 UTC, nosdr4g
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.41 KB, text/plain)
2004-07-01 03:50 UTC, nosdr4g
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.41 KB, text/plain)
2004-07-02 16:39 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.44 KB, text/plain)
2004-07-03 13:38 UTC, Sveinung Kvilhaugsvik
Details
lookingglass-0.5.ebuild (lookingglass-0.5.ebuild,1.17 KB, text/plain)
2004-07-08 06:08 UTC, nosdr4g
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sveinung Kvilhaugsvik 2004-06-29 13:35:43 UTC
The sources are available from https://lg3d.dev.java.net/ Does anyone have time to write a ebuild for it?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sveinung Kvilhaugsvik 2004-06-29 16:58:24 UTC
Created attachment 34461 [details]
lookingglass-0.5.ebuild

Have done som work, but a lot is remaining.
(one dependency needs to be added, and even then I am not sure if it will work)
Comment 2 Sveinung Kvilhaugsvik 2004-06-29 17:14:09 UTC
Created attachment 34462 [details]
lookingglass-0.5.ebuild
Comment 3 Sveinung Kvilhaugsvik 2004-06-29 19:16:53 UTC
Created attachment 34465 [details]
lookingglass-0.5.ebuild

Bouth lg3d-dev and lg3d-session depends on a script, "setup", in the same
directory. So linking did no good. Instead, this script creates a script that
cd's to the scripts homedirs and executes them instead.
Comment 4 Sveinung Kvilhaugsvik 2004-06-29 19:21:08 UTC
PS! In case somone wants to finish this while I get some sleep: A instalation-guide is available at https://lg3d-core.dev.java.net/lg3dgettingstarted.html
Comment 5 Patrick 2004-06-30 02:33:26 UTC
The dependicies jai and sun-java3d can be uncommented.
There is a sun-java3d ebuild 

Find it here :

http://bugs.gentoo.org/show_bug.cgi?id=55646
Comment 6 nosdr4g 2004-06-30 04:14:34 UTC
Created attachment 34477 [details]
lookingglass-0.5.ebuild

move scripts out of /bin to /usr/bin
move program files from /usr/share/ to /opt
added a die script as looking glass doesnt play nicely when quitting
Comment 7 Sveinung Kvilhaugsvik 2004-06-30 07:23:30 UTC
Created attachment 34486 [details]
lookingglass-0.5.ebuild

Dependency uncommented. Thanks! :)
Comment 8 Sveinung Kvilhaugsvik 2004-06-30 09:07:17 UTC
Created attachment 34494 [details]
lookingglass-0.5.ebuild

forgot to remove a "
Comment 9 Sveinung Kvilhaugsvik 2004-06-30 09:40:19 UTC
Comment on attachment 34494 [details]
lookingglass-0.5.ebuild

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Looking Glas - 3D windows manager writen in Java"
HOMEPAGE="https://lg3d.dev.java.net/"
SRC_URI="https://lg3d-core.dev.java.net/files/documents/1834/5501/lg3d-${PV}.ta
r.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"

DEPEND=">=dev-java/sun-jdk-1.5.0_beta2
	dev-java/jai
	dev-java/sun-java3d"

src_install() {
cd $P/work/
dodir /opt
cp -R lg3d ${D}/opt
cd ${D}/opt/lg3d/bin
dodir /usr/bin
echo "#!/bin/sh" >> ${D}/usr/bin/lg3d-dev
echo "cd /opt/lg3d/bin" >> ${D}/usr/bin/lg3d-dev
echo "./lg3d-dev" >> ${D}/usr/bin/lg3d-dev
echo "#!/bin/sh" >> ${D}/usr/bin/lg3d-session
echo "cd /opt/lg3d/bin" >> ${D}/usr/bin/lg3d-session
echo "./lg3d-session" >> ${D}/usr/bin/lg3d-session
echo "#!/bin/sh" >> ${D}/usr/bin/lg3d-die
echo "killall -9 java" >> ${D}/usr/bin/lg3d-die
echo "killall -9 rmiregistry" >> ${D}/usr/bin/lg3d-die

chmod +x ${D}/usr/bin/lg3d-*
chmod u+s ${D}/opt/lg3d/ext/lg3d-x11/programs/Xserver/XFree86
dodir /etc/X11/Sessions
dosym /usr/bin/lg3d-session /etc/X11/Sessions/lookingglas
}


pkg_postinst() {
echo ""
echo "To run Looking Glass, the screen must be in 24-bit mode"
echo "To run in window, run lg3d-dev"
echo "To run as a session, run lg3d-session"
echo ""
}
Comment 10 Sveinung Kvilhaugsvik 2004-06-30 09:44:17 UTC
Comment on attachment 34494 [details]
lookingglass-0.5.ebuild

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Looking Glas - 3D windows manager writen in Java"
HOMEPAGE="https://lg3d.dev.java.net/"
SRC_URI="https://lg3d-core.dev.java.net/files/documents/1834/5501/lg3d-${PV}.ta
r.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"

DEPEND=">=dev-java/sun-jdk-1.5.0_beta2
	dev-java/jai
	dev-java/sun-java3d"

src_install() {
cd $P/work/
dodir /opt
cp -R lg3d ${D}/opt
cd ${D}/opt/lg3d/bin
dodir /usr/bin
echo "#!/bin/sh" >> ${D}/usr/bin/lg3d-dev
echo "cd /opt/lg3d/bin" >> ${D}/usr/bin/lg3d-dev
echo "./lg3d-dev" >> ${D}/usr/bin/lg3d-dev
echo "#!/bin/sh" >> ${D}/usr/bin/lg3d-session
echo "cd /opt/lg3d/bin" >> ${D}/usr/bin/lg3d-session
echo "./lg3d-session" >> ${D}/usr/bin/lg3d-session
echo "#!/bin/sh" >> ${D}/usr/bin/lg3d-die
echo "killall -9 java" >> ${D}/usr/bin/lg3d-die
echo "killall -9 rmiregistry" >> ${D}/usr/bin/lg3d-die

chmod +x ${D}/usr/bin/lg3d-*
chmod u+s ${D}/opt/lg3d/ext/lg3d-x11/programs/Xserver/XFree86
dodir /etc/X11/Sessions
dosym /usr/bin/lg3d-session /etc/X11/Sessions/lookingglas
}


pkg_postinst() {
echo ""
echo "To run Looking Glass, the screen must be in 24-bit mode"
echo "To run in window, run lg3d-dev"
echo "To run as a session, run lg3d-session"
echo ""
}
Comment 11 Sveinung Kvilhaugsvik 2004-06-30 09:45:49 UTC
Created attachment 34497 [details]
lookingglass-0.5.ebuild

must have uploaded wrong file...
Comment 12 Sveinung Kvilhaugsvik 2004-06-30 10:47:56 UTC
Can someone please remove comment 9 and 10? (and this comment)
Comment 13 nosdr4g 2004-07-01 03:45:50 UTC
Created attachment 34569 [details]
lookingglass-0.5.ebuild

explains what lg3d-die is for
fixes up the session symlink to lookingglass not lookingglas
Comment 14 nosdr4g 2004-07-01 03:50:41 UTC
Created attachment 34570 [details]
lookingglass-0.5.ebuild

fixed up my bad english
Comment 15 Sveinung Kvilhaugsvik 2004-07-02 16:39:54 UTC
Created attachment 34677 [details]
lookingglass-0.5.ebuild

fixed (some of) MY bad english :)
Comment 16 Sveinung Kvilhaugsvik 2004-07-03 13:38:18 UTC
Created attachment 34727 [details]
lookingglass-0.5.ebuild

Cosmetic changes to make it more likely this goes into portage.

btw, has anyone tryed this on other VM's than Suns?
Comment 17 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-07-07 16:03:10 UTC
I thought project looking glass was open sourced? Why doesn't this ebuild compile the project from source code? Does the license prohibit that?
Comment 18 nosdr4g 2004-07-07 16:43:32 UTC
you can get the source via cvs but you need an account at dev.java.net for that and you need to apply to be an observer..... so its probably just easier to use binary
Comment 19 nosdr4g 2004-07-08 06:08:55 UTC
Created attachment 35000 [details]
lookingglass-0.5.ebuild

removed lg3d-session and lg3d-dev scripts as /opt/lg3d/bin is in $path
moved lg3d-die to /opt/lg3d/bin for the same reason
Comment 20 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-07-10 01:38:20 UTC
One of the main strengths of Gentoo is the ability to customize your software
at installation time. This also includes patching the software with 
site-specific as they are compiled. This is not possible for binary-only
packages.

As you are probably aware of, we have adopted a policy of only including
ebuilds that build software from source code, provided the source code exists.

As Project Looking Glass is licensed under the GNU GPL, so the source code
must be available for it. I suggest making out a bug against the project on
dev.java.net, requesting a separate source drop alongside every binary drop.
This has worked well in the past for other projects on dev.java.net.
Comment 21 Sveinung Kvilhaugsvik 2004-07-10 20:25:26 UTC
Just asked them: https://lg3d.dev.java.net/issues/show_bug.cgi?id=3
Comment 22 Rene Androsch 2004-07-19 15:58:23 UTC
Thanks for this ebuild.
Will it work with a sun-jdk version 1.4.2_* ?
Comment 23 Sveinung Kvilhaugsvik 2004-07-19 20:53:06 UTC
Officially not. (You could always try it, and report here if you can make it work) It did not work with the stable blackdown in portage, as a sidenote.
Comment 24 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-31 09:33:17 UTC
a looking glass ebuild has been added to the tree as
x11-misc/lookingglass-bin
it will be package.mask'ed for a few days, as it needs an update to java-config which is not yet available
Comment 25 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-31 10:18:11 UTC
All there now :-)