Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fare un ebuild....
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
HexDEF6
Guru
Guru


Joined: 26 May 2003
Posts: 451
Location: Trento

PostPosted: Sun Apr 11, 2004 10:59 pm    Post subject: Fare un ebuild.... Reply with quote

Sto tentando di fare un ebuild di un pacchetto:
de-jong-explorer
si tratta di un programmino per generare immagini (molto fico!)

per ora il codice dell'ebuild e' cosi':
Code:

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/media-gfx/de-jong-explorer/de-jon-explorer-0.5.ebuild,v 0.1
 
 
DESCRIPTION="provides a rendering of the Peter de Jong map"
 
HOMEPAGE="http://navi.cx"
 
SRC_URI="http://navi.cx/releases/${P}.tar.bz2"
 
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
USE_DESTDIR="1"
 
DEPEND=">=x11-libs/gtk+-2.0
        >=gnome-base/libglade-2.0.1"
 
src_compile() {
        emake || die
}
 
src_install() {
        insinto /usr/share/de-jong-explorer/data
        dodir /usr/share/de-jong-explorer
        dodir /usr/share/de-jong-explorer/data
        doins data/* data/
        exeinto /usr/share/de-jong-explorer
        doexe de-jong-explorer
 
}


siccome e' il mio primo ebuild ho alcune difficolta':
cosi' il programma si compila e si installa, ma per poterlo lanciare devo entrare nella dir /usr/share/de-jong-explorer
e se creo un simlink dell'eseguibile in /usr/bin il programma non funziona lo stesso :(
idee?

Grazie e ciao!
_________________
Fa quel che te faresi!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Mon Apr 12, 2004 12:06 am    Post subject: Reply with quote

Mettere l'exe in /usr/bin?
Quindi la linea
Code:
exeinto /usr/share/de-jong-explorer

diventera'
Code:
exeinto /usr/bin/de-jong-explorer

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
HexDEF6
Guru
Guru


Joined: 26 May 2003
Posts: 451
Location: Trento

PostPosted: Mon Apr 12, 2004 7:14 am    Post subject: Reply with quote

fedeliallalinea wrote:
Mettere l'exe in /usr/bin?
Quindi la linea
Code:
exeinto /usr/share/de-jong-explorer

diventera'
Code:
exeinto /usr/bin/de-jong-explorer


avevo gia provato... non funziona!
questo perche' l'exe va a cercare nella sottodir data alcuni file, e se questa dir non c'e' si rifiuta di andare!
Anche se lancio il comando cosi:
/usr/share/de-jong-explorer/de-jong-explorer
non funziona :(
prima devo fare un cd nella sua dir, e poi lanciare l'eseguibile

Ciao!
_________________
Fa quel che te faresi!
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Mon Apr 12, 2004 12:16 pm    Post subject: Re: Fare un ebuild.... Reply with quote

Code:

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


8)
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
HexDEF6
Guru
Guru


Joined: 26 May 2003
Posts: 451
Location: Trento

PostPosted: Mon Apr 12, 2004 2:30 pm    Post subject: Re: Fare un ebuild.... Reply with quote

FonderiaDigitale wrote:
Code:

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


8)


non credo funzioni, visto che compilando il sorgente a mano, se faccio make install mi dice:
make: *** No rule to make target `install'. Stop.

Ciao!
_________________
Fa quel che te faresi!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Mon Apr 12, 2004 2:31 pm    Post subject: Reply with quote

Io non ho mai fatto un ebuild ma non esiste anche la voce einstall?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Mon Apr 12, 2004 2:40 pm    Post subject: Reply with quote

HexDEF6 wrote:
Anche se lancio il comando cosi:
/usr/share/de-jong-explorer/de-jong-explorer
non funziona :(
prima devo fare un cd nella sua dir, e poi lanciare l'eseguibile


Perché non funziona? Che errore da?

...a mali estremi puoi fare un piccolo script o un alias che faccia da wrapper. Penso che:
Code:

alias dje = 'pushd /usr/share/de-jong-explorer/ && de-jong-explorer ; popd'

possa funzionare ;-)
_________________
Ciao da me!
Back to top
View user's profile Send private message
HexDEF6
Guru
Guru


Joined: 26 May 2003
Posts: 451
Location: Trento

PostPosted: Mon Apr 12, 2004 2:46 pm    Post subject: Reply with quote

mod: quotiamo con umanità e solo quando serve, grazie! -MyZelF

se avete voglia provate ad installarlo (il programma e' circa un centinaio di k e quindi si scarica velocemente)... il mio problema e' che e' il mio primo ebuild e l'ho iniziato dopo mezzanotte (e quindi con poca voglia di leggermi gli howto!)!!

Comunque se si lancia l'eseguibile senza essere nella dir giusta, va in segmentation fault!

Ciao!
_________________
Fa quel che te faresi!
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Mon Apr 12, 2004 4:40 pm    Post subject: Reply with quote

ma se il tuo problema e' fare l'ebuild... so che c'e' un programma che facilita il lavoro un bel po'.

se non mi sbaglio e'

* app-portage/abeni [ Masked ]
Latest version available: 0.0.9
Latest version installed: 0.0.9
Size of downloaded files: 129 kB
Homepage: http://abeni.sf.net/
Description: Integrated Development Environment for Gentoo Linux ebuilds
License: GPL-2

comunque ho aperto un thread tempo fa sull'argomento "fare ebuild velocemente", se cerchi un po' in questo forum lo trovi (non ricordo il titolo del post, sorry... forse era "script per fare ebuild" o cose similil....)

ciauz
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Mon Apr 12, 2004 4:52 pm    Post subject: Reply with quote

akiross wrote:
comunque ho aperto un thread tempo fa sull'argomento "fare ebuild velocemente", se cerchi un po' in questo forum lo trovi (non ricordo il titolo del post, sorry... forse era "script per fare ebuild" o cose similil....)

Intendeva questo
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Tue Apr 13, 2004 12:41 am    Post subject: Reply with quote

proverei volentieri, ma il file sorgente non e' raggiungibile.
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Tue Apr 13, 2004 8:56 am    Post subject: Reply with quote

akiross wrote:
ma se il tuo problema e' fare l'ebuild... so che c'e' un programma che facilita il lavoro un bel po'.

se non mi sbaglio e'

* app-portage/abeni [ Masked ]
Latest version available: 0.0.9
Latest version installed: 0.0.9
Size of downloaded files: 129 kB
Homepage: http://abeni.sf.net/
Description: Integrated Development Environment for Gentoo Linux ebuilds
License: GPL-2

comunque ho aperto un thread tempo fa sull'argomento "fare ebuild velocemente", se cerchi un po' in questo forum lo trovi (non ricordo il titolo del post, sorry... forse era "script per fare ebuild" o cose similil....)

ciauz

Che storia, il thread mi era sfuggito... ora corro a leggermelo!
E' un argomento moolto interessante :wink:
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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