Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild scripts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mihochan
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 296
Location: Melbourne again

PostPosted: Sat Apr 20, 2002 6:11 am    Post subject: ebuild scripts Reply with quote

Hi,

I'm trying to knock up a couple of ebuild scripts.
I have many ;) questions but for the moment the most crucial is,
How do I access the little add-ons I've put into the files directory? I'm supposing that there is a BASH variable which will take me there but what is it called?

Thanks

Tom
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Sat Apr 20, 2002 2:22 pm    Post subject: Reply with quote

Check out the man pages:
Code:
man 1 ebuild
man 5 ebuild


You should probably start you ebuild script using the /usr/portage/skel.ebuild ebuild as a template.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
mihochan
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 296
Location: Melbourne again

PostPosted: Mon Apr 22, 2002 1:20 am    Post subject: Reply with quote

Kyle,

I've had a look at both these man pages and been through the relevant pages on the Gentoo site but I'm still not much clearer on how to proceed.
If I place a file in /usr/portage/<section>/<app>/files
how should I access it in the ebuild script?

Tom
Back to top
View user's profile Send private message
tod
Developer
Developer


Joined: 17 Apr 2002
Posts: 136
Location: Ozarks, USA

PostPosted: Mon Apr 22, 2002 4:00 pm    Post subject: Reply with quote

Hi!

You can access the /usr/portage/<categaroy>/<foo>/files directory in the foo.ebuild by using the variable ${FILESDIR}. Note this is usually invoked in the src_unpack function of the ebuild most notably for applying small gentoo specific patches to get the package to build.

Please see the net-mail/evolution ebuild for a good example, also at

http://www.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/net-mail/evolution/evolution-1.0.3-r4.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup

You can also 'grep -Hr FILESDIR /usr/portage/*' to get a list of many more ebuild examples.

hth

tod
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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