Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help a noob make an ebuild.
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
TheWart
Guru
Guru


Joined: 10 May 2002
Posts: 432
Location: Nashville,TN - USA

PostPosted: Thu Sep 18, 2003 8:25 pm    Post subject: Help a noob make an ebuild. Reply with quote

I really love the Velocity filemanager, as it is extremely fast, yet has lots of features....so I decided to make an ebuild for it.

(please keep in mind I have never done any computer programming besides some small shell scripts and html, so explain with that in mind :))

Anyway, this is what I have done so far:

made the folder 'app-misc/velocity-fm' in my PORTAGE_OVERLAY dir.

copied over the skel.ebuild and skel.changelog.

I edited them as best I could. I got the dependencies to show up, but when I emerge the program, it configure fine, it 'makes' fine, but it screws up when it 'make install.' (It is not the fault of the program as I can install it by hand)

Anyway, this is the error I get:

Code:

ocity/scripts/postscript-to-pdf
 /bin/install -c -m 644 pdf-to-postscript /var/tmp/portage/velocity-fm-0.1/image//usr/share/velocity/scripts/pdf-to-postscript
make  install-data-hook
make[3]: Entering directory `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
chmod a+x /usr/share/velocity/scripts/*
chmod: failed to get attributes of `/usr/share/velocity/scripts/*': No such file or directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
make: *** [install-recursive] Error 1
 
!!! ERROR: app-misc/velocity-fm-0.1 failed.
!!! Function src_install, Line 59, Exitcode 2
!!! (no error message)
 


And here is the ebuild:

Code:

#RDEPEND=""
                                                                                               
#S=${WORKDIR}/velocity-0.1.0
S=/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0
                                                                                               
src_compile() {
        ./configure \
                --host=${CHOST} \
                --prefix=/usr \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man || die "./configure failed"
        emake || die
        #make || die
}
                                                                                               
                                                                                               
src_install() {
        make DESTDIR=${D} install || die
        make \
                prefix=${D}/usr \
                mandir=${D}/usr/share/man \
                infodir=${D}/usr/share/info \
                mkdir usr/share/velocity/scripts
                install || die
}


Thanks
(also, are there any good tutorials on making ebuilds, as the one on the gentoo site seemed kind of just a basic overview)
_________________
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
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