Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Old version of java-gnome on portage

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
ade05fr
Apprentice
Apprentice
Posts: 281
Joined: Mon Sep 18, 2006 10:56 am

Old version of java-gnome on portage

  • Quote

Post by ade05fr » Wed Nov 29, 2006 8:13 am

Hye everyone,

i tried to install java-gnome on my laptop but when i did emerge -av java-gnome there is an error :
"...jade: error while loading shared libraries: libosp.so.4: cannot open share object file: No such file or directory..."
I see in the site http://java-gnome.sourceforge.net/cgi-bin/bin/view that the latest version is java-gnome 2.16.1 but with emerge it tried to install the 2.14.3 so i think it's one of my problem.

how can i emerge the latest version ?

thank U
ade
Top
anthrax_
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Tue Oct 17, 2006 3:43 pm
Location: Poland

  • Quote

Post by anthrax_ » Wed Nov 29, 2006 11:55 am

try to emerge --sync
Top
ade05fr
Apprentice
Apprentice
Posts: 281
Joined: Mon Sep 18, 2006 10:56 am

  • Quote

Post by ade05fr » Wed Nov 29, 2006 12:33 pm

i already did an emerge sync
Top
xerxesmc
n00b
n00b
User avatar
Posts: 54
Joined: Sun Nov 19, 2006 6:25 pm
Location: Fulda/Hessen

  • Quote

Post by xerxesmc » Wed Apr 25, 2007 10:08 pm

ye theres a version 4 available already
i tried to make an ebuild but im noob on that, maybe someone can help me :D

Code: Select all

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

inherit eutils

DESCRIPTION="A package used to write GTK frontends in Java"
HOMEPAGE="http://java-gnome.sourceforge.net/"
SRC_URI="http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.0/java-gnome-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_unpack(){

        unpack ${A}
        cd ${S}

}

src_compile(){
        econf
        V=1 make || die "Compilation of java-gnome failed"
}

src_install(){

        make install || die "Installation of java-gnome failed"

}


configuration and compilation work but i cant install it, i get

Code: Select all

>>> Install java-gnome-4.0.2 into /var/tmp/portage/dev-java/java-gnome-4.0.2/image/ category dev-java
 tmp/native/gtk.o
make: -classpath: Kommando nicht gefunden
make: *** [tmp/native/gtk.o] Fehler 127
for more information check http://java-gnome.sourceforge.net/
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Thu Apr 26, 2007 12:08 am

This is been taken from the Gentoo Java Packaging Guide

Code: Select all

Code Listing 4.2: Example: Optional java support

inherit eutils java-pkg-opt-2

DESCRIPTION="Fictional example ebuild"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror//gentoo/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="java doc nls"

DEPEND="java? ( >=virtual/jdk-1.4 )"
RDEPEND="java? ( >=virtual/jre-1.4 )"

pkg_unpack() {
        unpack ${A}
        cd "${S}"

        epatch "${FILESDIR}/${P}.patch"
}

src_compile() {
        local myconf="$(use_enable java)"
        if use java; then
                myconf="${myconf} --with-javac-args=\"$(java-pkg_javac-args)\""
        fi

        econf $(use_enable nls) ${myconf} || die

        emake || die
}

src_install() {
        make install DESTDIR=${D} || die

        if use java; then
                java-pkg_newjar build/java/${P}.jar ${PN}.jar

                if use doc; then
                        java-pkg_dohtml -r doc/java
                fi
        fi
}
also of interest would be Gentoo Dev Manual
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
xerxesmc
n00b
n00b
User avatar
Posts: 54
Joined: Sun Nov 19, 2006 6:25 pm
Location: Fulda/Hessen

  • Quote

Post by xerxesmc » Thu Apr 26, 2007 2:38 pm

thx for the fast reply, but the compilation/installation is more the ancient way of "make'ing"

http://java-gnome.sourceforge.net/4.0/README.html

so as they say on their site a simple make install should make it, but doing so or doing a "make install DESTDIR=${D} || die" cause an error as follows

http://nopaste.php-q.net/291305

it seems like make assumes "-classpath" to be a command...
Top
xerxesmc
n00b
n00b
User avatar
Posts: 54
Joined: Sun Nov 19, 2006 6:25 pm
Location: Fulda/Hessen

  • Quote

Post by xerxesmc » Sat Apr 28, 2007 6:48 pm

this one works, when u have gcj USE-flag set for gcc

Code: Select all

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

inherit eutils

DESCRIPTION="A package used to write GTK frontends in Java"
HOMEPAGE="http://java-gnome.sourceforge.net/"
SRC_URI="http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.0/java-gnome-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_unpack(){

        unpack ${A}
        cd ${S}

}

src_compile(){
        econf
         make || die "Compilation of java-gnome failed"
}

src_install(){

        make install DESTDIR=${D} || die "Installation of java-gnome failed"

}
Top
xerxesmc
n00b
n00b
User avatar
Posts: 54
Joined: Sun Nov 19, 2006 6:25 pm
Location: Fulda/Hessen

  • Quote

Post by xerxesmc » Thu May 31, 2007 4:27 pm

afetr talking to Andrew Frederick Cowi, one of the devs of the java-gnome bindings here is the corresponding ebuild, have fun
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic