Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: emerge something that isn't in portage (with ebuilds)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
tom56
Guru
Guru


Joined: 27 Apr 2004
Posts: 325
Location: united kingdom

PostPosted: Tue Aug 10, 2004 5:24 pm    Post subject: HOWTO: emerge something that isn't in portage (with ebuilds) Reply with quote

HOWTO: emerge something that isn't in portage (with ebuilds)

Today I wanted to install a strategy game called NiL, but it wasn't in portage. It took a lot of searching but i found out how to install it. Here is a guide that will work with all programs, as I couldn't find an existing one.

1. Double check that the program isn't in portage.
2. Find if anyone has made an "ebuild" for the program. This can usually be done by going to the program's website, searching bugs.gentoo.org, by searching this site, or google, in that order. If no one has, then you will need to make an ebuild yourself. There are plenty of guides on how to do this, search around. If someone has already made an ebuild, download it, and proceed to step 3.
3. Become root.
4. Create the directory "/usr/local/portage".
5. Put the following line in your make.conf
Code:
PORTDIR_OVERLAY="/usr/local/portage"

6. cd into /usr/local/portage, and create a category directory there. Use whichever of the following best suits your program:
Code:
app-accessibility
app-admin
app-antivirus
app-arch
app-benchmarks
app-cdr
app-crypt
app-dicts
app-doc
app-editors
app-emacs
app-emulation
app-gnustep
app-i18n
app-laptop
app-macos
app-misc
app-office
app-pda
app-portage
app-sci
app-shells
app-text
app-vim
app-xemacs
dev-ada
dev-cpp
dev-db
dev-dotnet
dev-embedded
dev-games
dev-haskell
dev-java
dev-lang
dev-libs
dev-lisp
dev-ml
dev-perl
dev-php
dev-python
dev-ruby
dev-scheme
dev-tcltk
dev-tex
dev-util
fresco-base
games-action
games-arcade
games-board
games-emulation
games-engines
games-fps
games-kids
games-misc
games-mud
games-puzzle
games-roguelike
games-rpg
games-server
games-simulation
games-sports
games-strategy
games-util
gnome-base
gnome-extra
gnustep-apps
gnustep-base
gnustep-libs
kde-base
mail-client
mail-filter
mail-mta
media-fonts
media-gfx
media-libs
media-plugins
media-radio
media-sound
media-tv
media-video
net-analyzer
net-dialup
net-dns
net-firewall
net-fs
net-ftp
net-im
net-irc
net-libs
net-mail
net-misc
net-nds
net-news
net-p2p
net-print
net-wireless
net-www
net-zope
sec-polic
sys-apps
sys-boot
sys-cluster
sys-darwin
sys-devel
sys-fs
sys-kernel
sys-libs
www-servers
x11-base
x11-libs
x11-misc
x11-plugins
x11-terms
x11-themes
x11-wm
xfce-base
xfce-extra
For example if your program is a strategy-game (like mine) you would:
Code:
mkdir games-strategy

7. cd into the new directory
8. Create another directory there, named after the program. For example, for the game I downloaded (called nil) i did:
Code:
mkdir nil

9. Move the ebuild into that directory.
10. You will probably (though this is not always nescessary) now need to run this command:
Code:
ebuild /path/to/program.ebuild digest
For example, for my game the command was:
Code:
ebuild /usr/local/portage/games-strategy/nil/nil-20040123.1600.ebuild digest

11. Congratulations! You can now emerge the program as normal! See here for the correct use of emerge. Remember, if you run a stable system, that the program will be marked as unstable, and you will have to place it in your package.keywords before it will install! If you are unsure how to do this (or why we do this), see the link above.

EDIT: Responding to comments posted.


Last edited by tom56 on Tue Aug 10, 2004 10:09 pm; edited 3 times in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Tue Aug 10, 2004 6:21 pm    Post subject: Reply with quote

Just some additions...
3 can be done later, and 6 is not needed at all. For 2, bugs.gentoo.org also contains plenty of ebuilds. Furthermore, if the ebuild follows the guidelines and you're not running an unstable system, an entry in /etc/portage/package.keywords will be needed before you can emerge the program in 11.
Back to top
View user's profile Send private message
thrasher6670
Apprentice
Apprentice


Joined: 04 Aug 2003
Posts: 269
Location: London, Ontario

PostPosted: Tue Aug 10, 2004 6:28 pm    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds
_________________
Gentoo-Portage.com - Where the portage meets the web
Gentoo Wiki
Back to top
View user's profile Send private message
tom56
Guru
Guru


Joined: 27 Apr 2004
Posts: 325
Location: united kingdom

PostPosted: Tue Aug 10, 2004 9:53 pm    Post subject: Reply with quote

Earthwings wrote:
Just some additions...
3 can be done later, and 6 is not needed at all. For 2, bugs.gentoo.org also contains plenty of ebuilds. Furthermore, if the ebuild follows the guidelines and you're not running an unstable system, an entry in /etc/portage/package.keywords will be needed before you can emerge the program in 11.

i know that 3 can be done later, but if it is done then, the directories that are created have the correct owner permissions. i was unsure about whether to include step 6, but i decided to do it in the end. that way you don't put it into the wrong directory. i will change that step though, as you are right, it would take a long time. i will add bugs.gentoo.org (though google usually finds those). i am aware that all downloaded ebuilds are unstable, but assumed most people would know how to deal with that. i will add a link at the end on the correct use of emerge.
Back to top
View user's profile Send private message
tucolino
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2003
Posts: 90

PostPosted: Thu Sep 09, 2004 4:17 pm    Post subject: Reply with quote

i think there are a few posts or howtos out there. however, this was the first one i found. excellent. thanks. installed everything easily.

tuco
_________________
Alvaro Ramirez
http://www.xenodium.com/blog
eye candy corner
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum