Hi, Please find attached plruby-0.4.2.ebuild. plruby is an extension to postgresql to allow sql functions to be written in ruby. I suggest dev-ruby/plruby. This depends on ruby >= 1.4.4 and postgresql >= 7.1
Created attachment 34555 [details] plruby-0.4.2.ebuild (new package)
Hello David, I've confirmed the ebuild works well. But there are some mistakes about how to write ebuild. I'll give you some advices to write ebuild. First, Gentoo Foundation copyright is needed in header of an ebuild. Then, according to the readme file, this software license is not GPL-2 but Ruby\ . And I recommend you to use ruby.eclass. I'll atache rewritten ebuild for you. This ebuild needs the latest ruby.eclass, so you should do 'emerge sync' before emerging it. If you are happy about it, I'll commit.
Created attachment 34775 [details] plruby-0.4.2.ebuild
Thanks for your comments. I've tried this and it looks good to me. I'm very happy with it and would be pleased for you to commit it. Thanks
ok. I've just commited it. Thank for your contribution :)
Sorry, turns out this doesn't work after all. The ruby_econf function doesn't use EXTRA_ECONF when it is using an extconf.rb file to build from, which means the second ebuild here doesn't work. I propose replacing the EXTRA_ECONF line in your ebuild with this: src_compile() { ruby_econf --with-pgsql-include=/usr/include/postgresql --with-pgsql-lib=/usr/lib || die ruby_emake "$@" || die }
It works in my environment. current ruby.eclass uses EXTRA_ECONF with extconf.rb. Can you try 'emerge sync' and 'emerge plruby' again? (make sure PORTDIR_OVERLAY is not set.)
Ok, that's better now. Thanks