Installing 3rd party on gentoo box

Written by  //  05/05/2009  //  Isio-gawanyo  //  Zima maoni

3rd party ebuilds:
Notice:
You might need gcc greate than 4.2 with gcj enabled.

Install overlay using layman, this means downloading the installation files like ebuilds or so.It wasted me hours to figure out.
Notice the experimental overlay arent available on official list, so fast lets add the java-experimental overlay to the list
edit layman.cfg and add the following below the default list:
#
overlays : http://www.gentoo.org/proj/en/overlays/layman-global.txt
file:///usr/portage/local/layman/my-list.txt

Open up a broser http://www.gentoo.org/proj/en/overlays/layman-global.txt
Copy this list, and paste it on /usr/portage/local/layman/my-list.txt, my-list.txt doesnt exist your need to create it.
Add the java-experimental overlay, what i did was to copy the java-overlay and edit it.Forgive me for other lines that I didnt edit here.
It means contact not correct and status with other things arent correct.Ok add the following…
#
name="java-experimental"
src="http://overlays.gentoo.org/svn/proj/java/java-experimental/dev-java/"
contact = "java@gentoo.org"
status = "official"
type="svn">

http://overlays.gentoo.org/proj/java


The only java overlay available via layman. This overlays contains
ebuilds that are expected to work when you emerge them. The ebuilds also
need to use the generation 2 eclasses.

-Add the java-experimental overlay to your system.
# layman -a java-experimental

Probably #layman –fetch needed here, or #layman -S or so if still the error “overlay doesnt exist”

Installation of icedtea:
Create the directory dev-java and copy installation files downloaded by layman.

#mkdir /usr/local/portage/dev-java/
#cp -rv /usr/portage/local/layman/java-experimental/icedtea/ /usr/local/portage/dev-java/

check the ebuild with digest
#ebuild icedtea-1.6.ebuild digest

Unmask the the ebuild:
#echo “dev-java/icedtea” >> /etc/portage/package.keywords

Install your package
#emerge -av icedtea

Example we want to install dev-java/icedtea using svn:
-Create a directory dev-java under /usr/local/portage
#mkdir /usr/local/portage/dev-java/
-Move to the directory
cd /usr/local/portage/dev-java/
Fetch the ebuild with the files for installation
#svn co http://gimpel.ath.cx/svn/gimpel/dev-java/icedtea-bin/

Enjoy the howto!

Reference:

http://www.gentoo.org/proj/en/overlays/userguide.xml

http://gentoo-wiki.com/HOWTO_AMD64/java

http://gentoo-wiki.com/TIP_Overlays

http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds

http://forums.gentoo.org/viewtopic-t-615533-highlight-.html

Comments are closed.