2008/11/17 Harry Putnam <[EMAIL PROTECTED]>:
> I really just want to add an epatch line to an existing ebuild but it
> appears some protocols need to be followed to generate the manifest
> and probably lots of other stuff.
>
> Can anyone point me to something?

Create an overlay and within that use the same structure as in the
portage tree like /path/to/overlay/category/yourpackage/

Make the overlay known to portage by editing /etc/make.conf
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /path/to/overlay"

Copy the ebuild you want to patch to the created directory. Create a
"files" directory within that directory and put your patch there. Note
that if the previous ebuild already needed this directory because of
other patches and files you need to copy them to that files directory
too.

Edit the ebuild by adding the epatch line to src_unpack (patches go to
src_unpack and not src_install) or add the src_unpack function if it
is not already there like below.

src_unpack() {
        unpack ${A}
        cd "${S}"
        epatch "${FILESDIR}"/your.patch
}

Then execute "ebuild yourpackage.ebuild manifest". Now you can try
"ebuild yourpackage.ebuild unpack" to run the unpack phase of the
ebuild to see if everything works.

-- 
Regards,
Daniel

Reply via email to