On Tue, Jan 5, 2010 at 8:48 PM, Jeremy Olexa <darkside@gentoo.org> wrote:
> velociraptor wrote:
>>
>> On Tue, Jan 5, 2010 at 7:57 PM, Peter Ansell <ansell.peter@gmail.com>
>> wrote:
>>>
>>> 2010/1/6 Jeremy Olexa <darkside@gentoo.org>:
>>>>
>>>> velociraptor wrote:
>>>>>
>>>>> I was wondering, please, if the more experienced of you had any
>>>>> suggestions for ebuild guides that were more oriented towards
>>>>> alt-prefix users? Everything I've looked at thus far is very much
>>>>> oriented towards having a complete Gentoo system. Barring that,
>>>>> perhaps something a little more "step-by-step" tutorials, rather than
>>>>> theoretically oriented?
>>>>>
>>>>> I would like to create my own ebuild for Netatalk as I know this
>>>>> compiles fine on Solaris, and all the dependencies are currently
>>>>> available the Solaris alt-prefix portage tree.
>>>>>
>>>>> Thanks in advance--
>>>>> =Nadine=
>>>>>
>>>> Gentoo Prefix ebuilds are the same as Gentoo Linux except for the
>>>> changes
>>>> outlined in our techdocs[1]. It might be easier for people to answer if
>>>> you had a specific questions.
>>>
>>> I think it was a specific question. What steps do you use to create a
>>> prefix ebuild. That document is hard to understand in my opinion and I
>>> know what the prefix is supposed to do. It is definitely not a simple
>>> step by step guide for someone wanting to create an ebuild themselves
>>> as it is designed as a technical description to define the exact
>>> semantics of "EPREFIX" and related variables in different situations.
>>> It would do well to have some example ebuilds embedded into the
>>> document that utilise each of the variables.
>
> Yea, I'm not trying to be elitist or anything, but the changes needed for
> Gentoo Prefix ebuilds really require the understanding of Gentoo Linux
> ebuilds in general. Otherwise you don't know what D->ED really means, etc.
> Luckily, we provide a script that can do such conversions.
> http://www.gentoo.org/proj/en/gentoo-alt/prefix/ecopy.xml
>
>>
>> Thanks, Peter, that sums it up nicely. Any step-by-step recipe type
>> instance would be helpful, as I haven't been able to find something
>> like that for Gentoo, either. Don't get me wrong, Gentoo
>
> Start here: http://devmanual.gentoo.org/ebuild-writing/index.html
>
>> documentation excels in many ways beyond that of other Linux versions,
>> but in the area of ebuilds, the documentation seems very much focussed
>> on people with more development oriented skill sets. I'm no
>> developer, but I have been coaxing OSS to run on Solaris for a long
>> while.
>
> Then convert it to Gentoo Prefix. So, a basic example based on netatalk:
>
> - --with-bdb=/usr
> + --with-bdb=${EPREFIX}/usr
>
> -rm -rf "${D}/etc/pam.d"
> +rm -rf "${ED}/etc/pam.d"
>
> -mv "${D}"/usr/include/netatalk{,2}
> +mv "${ED}"/usr/include/netatalk{,2}
>
> -rm "${D}"/usr/bin/timeout "${D}"/usr/share/man/man1/timeout.1 || die
> +rm "${ED}"/usr/bin/timeout "${ED}"/usr/share/man/man1/timeout.1 || die
>
> And, from a my quick glance now, that should be it. (besides adding your
> arch keyword)
>
> Hope that clears some waters. Really the best documentation is examples,
> there are 2500+ examples in the prefix tree.
Thanks for taking the time to respond Jeremy. I'll have a dig around
again in the ebuild writing section, look at the script and the
ebuilds themselves and come back with any specific questions I have.
I'll take a snapshot before I start mucking about so I can roll back
easily should get myself into a complete mess.
=Nadine=