attached.
Created attachment 44539 [details] ruby.eclass.5
Thanks for writing the manpage. After reading the FUNCTIONS section, I updated ruby_emake to accept ${MAKEOPTS} and ${EXTRA_EMAKE}. (I didn't add ${RUBY_EMAKE} this time because I don't think any ebuild will change this var at the moment) Thanks for the input. Would you update the manpage accordingly? Everything else looks fine.
usata, Are ruby_econf, ruby_emake, erubydoc, and ruby_einstall used anywhere besides ruby_src_compile and ruby_src_install? In other words, were they meant to be used by ebuilds? If not then I will remove them. Now that you've modified ruby_emake() to respect $MAKEOPTS and $EXTRA_EMAKE, I'm not really sure what to put for the function description, since afaics that was the only thing that distinguished it from emake.
I cannot say which function is used in ebuild and which isn't because they are wrappers and nearly every ruby ebuild use them. If you inherit ruby and write "econf", ruby's econf will be called. Also, erubydoc is used in several ebuilds, so they all are meant to be used in ebuilds. (Not explicitly by "ruby_econf" but "econf") The difference between ruby_emake and emake is that ruby_emake detects Makefile named "makefiles" in addition to the default "GNUmakefile", "makefile" and "Makefile". (I cannot remember but some ruby packages definitely use "makefiles" for Makefile name)
I know that they are *implicitly* used via ruby_src_{compile,install}. I probably should've specified "explicit use" in my question ;p Asked in another way, does the ruby team consider those functions "for internal use only" by the eclass? If so, I'll remove those functions. If not, I'll fix the ruby_emake snippet and repost it.
Ah, okay. As for explicit use, only erubydoc and ruby_einstall would be useful (and actually used in several ruby ebuilds) for writing ebuilds. ruby_emake and ruby_econf are considered to be used within ruby_src_compile(). If you need something for econf/emake, you can use ${RUBY_ECONF} to pass extra argument to ruby_econf, and "ruby_src_compile foo bar" syntax to pass "foo bar" to ruby_emake. Of course in this case you can write src_compile() { econf || die emake foo bar || die } but I do not want to advertise ruby_econf strongly because many think econf executes "./configure blah" and ruby_econf breaks this assumption. (The majority of ruby packages have extconf.rb or setup.rb for configure script) To conclude, ruby_econf and ruby_emake could be omitted from the manpage.
Created attachment 44769 [details] ruby.eclass.5 revised.
Thanks for the update. prepall is also an internal function which is not intended to be redefined in any ebuilds, so if you remove internal functions please remove prepall as well. (I should have noticed that earlier, sorry)
Created attachment 44917 [details] ruby.eclass.5 fixed (again ;p).
ruby: are we happy with the latest revision then ?
Thanks ka0ttic, I'm very happy with the manpage.
now in cvs