Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[emerge] faire un ebuild (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
GentooUser@Clubic
l33t
l33t


Joined: 01 Nov 2004
Posts: 829

PostPosted: Wed Nov 24, 2004 6:23 pm    Post subject: [emerge] faire un ebuild (résolu) Reply with quote

J'ai trouvé un petit logiciel pour gnome qui semble actuellement non maintenu, mais qui marche encore avec Gnome 2.8 http://gcm.sourceforge.net.
Il nessesite d'être installé dans /usr pour l'intégration au panel et comme installer un programme dans /usr sans passer par portage c'est pô propre (/usr/local est la pour ça) j'aimerai faire un ebuild mais comment.

J'ai fait plusieurs essais (avec le tutorial) mais sans résultat (j'ai supprimé le fichier mais dés que je le refait je le poste avec les erreurs obtenue).

En attendant si je prend tout les conseils et bon liens au sujet de la création d'un ubuild :)


EDIT: dejà j'ai ce message quand je fait ebuild digest

Code:
ebuild fetch /usr/local/portage/gnome-extra/gcm/gcm-2.0.4.ebuild
!!! Name error in : missing a version or name part.
!!! Error: PF is null ''; exiting.
j'ai pourtant bien mon fichier gcm-2.0.4.tar.gz das /usr/portage/distfiles

mon ebuild
Code:

DESCRIPTION="Clipboard manager for GNOME2"
HOMEPAGE="http://gcm.sourceforge.net/"
SRC_URI="http://jaist.dl.sourceforge.net/sourceforge/gcm/${P}.tar.gz"

inherit gnome2 eutils

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

DOCS="ABOUT-NLS AUTHORS ChangeLog COPYING COPYRIGHT INSTALL NEWS README TODO"

DEPEND=">=x11-libs/gtk+-2
        >=dev-libs/glib-2
        >=gnome-base/libgnome-2
        >=gnome-base/libgnomeui-2"

src_unpack() {
        unpack ${A}
}

src_install() {
        gnome2_src_install
}
[/code]

Last edited by GentooUser@Clubic on Thu Nov 25, 2004 12:47 am; edited 1 time in total
Back to top
View user's profile Send private message
GentooUser@Clubic
l33t
l33t


Joined: 01 Nov 2004
Posts: 829

PostPosted: Wed Nov 24, 2004 11:24 pm    Post subject: Reply with quote

Bon voila la version actuelle

Code:
DESCRIPTION="Clipboard manager for GNOME2"
HOMEPAGE="http://gcm.sourceforge.net/"
SRC_URI="http://jaist.dl.sourceforge.net/sourceforge/gcm/${P}.tar.gz"

inherit eutils

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

DEPEND=">=x11-libs/gtk+-2.0
        >=gnome-base/libgnome-2.0
        >=gnome-base/gconf-2.0"

src_unpack() {
    unpack ${A} || die "unpack failure"
}

src_compile() {
    econf || die "config failure"
    emake || die "compile failure"
}

src_install() {
    einstall || die "install failure"
    dodoc ABOUT-NLS AUTHORS ChangeLog COPYING COPYRIGHT INSTALL NEWS README TODO
}
Et ça bloque sur l'installation des shemas GConf, je peut pas me baser sur l'eclass gnome2 sinon emerge veut a tout prix telecharger gcm-2.0.4.tar.bz2 :?: et pour l'install des shemas je sait pas faire :cry:
Back to top
View user's profile Send private message
gim
Guru
Guru


Joined: 29 Apr 2003
Posts: 418
Location: milky-way

PostPosted: Thu Nov 25, 2004 12:10 am    Post subject: Reply with quote

GentooUser@Clubic wrote:
Et ça bloque sur l'installation des shemas GConf, je peut pas me baser sur l'eclass gnome2 sinon emerge veut a tout prix telecharger gcm-2.0.4.tar.bz2 :?: et pour l'install des shemas je sait pas faire :cry:


Ça c'est pas un gros problème.... disons que tu peux toujours downloader + gunzip + bzip2 et placer ça dans /usr/portage/distfiles.
Back to top
View user's profile Send private message
GentooUser@Clubic
l33t
l33t


Joined: 01 Nov 2004
Posts: 829

PostPosted: Thu Nov 25, 2004 12:47 am    Post subject: Reply with quote

En effet ça marche :lol: merci

voila donc l'ebuild qui marche (a condition de mettre l'archive contenant les sources en .tar.bz2 dans /usr/portage/distfiles)
Code:
DESCRIPTION="Clipboard manager for GNOME2"
HOMEPAGE="http://gcm.sourceforge.net/"
SRC_URI="http://jaist.dl.sourceforge.net/sourceforge/gcm/${P}.tar.gz"

inherit gnome2 eutils

DOCS="ABOUT-NLS AUTHORS ChangeLog COPYING COPYRIGHT INSTALL NEWS README TODO"

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

DEPEND=">=x11-libs/gtk+-2.0
        >=gnome-base/libgnome-2.0
        >=gnome-base/gconf-2.0
        >=dev-libs/libxml2-2.0"


src_unpack() {
        unpack ${A} || die "unpack failure"
}

src_install() {
        gnome2_src_install
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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