Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55751 - plruby-0.4.2.ebuild (new package)
Summary: plruby-0.4.2.ebuild (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: PgSQL Bugs
URL: http://moulon.inra.fr/ruby/plruby.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 22:21 UTC by David Mitchell
Modified: 2004-07-11 13:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
plruby-0.4.2.ebuild (new package) (plruby-0.4.2.ebuild,470 bytes, text/plain)
2004-06-30 22:23 UTC, David Mitchell
Details
plruby-0.4.2.ebuild (plruby-0.4.2.ebuild,472 bytes, text/plain)
2004-07-04 05:35 UTC, Masatomo Nakano (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Mitchell 2004-06-30 22:21:58 UTC
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
Comment 1 David Mitchell 2004-06-30 22:23:50 UTC
Created attachment 34555 [details]
plruby-0.4.2.ebuild (new package)
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-04 05:32:09 UTC
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.
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-04 05:35:48 UTC
Created attachment 34775 [details]
plruby-0.4.2.ebuild
Comment 4 David Mitchell 2004-07-04 14:19:59 UTC
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
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-04 14:58:42 UTC
ok.
I've just commited it.
Thank for your contribution :)
Comment 6 David Mitchell 2004-07-08 20:43:09 UTC
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
}
Comment 7 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-10 00:12:17 UTC
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.)
Comment 8 David Mitchell 2004-07-11 13:53:41 UTC
Ok, that's better now. Thanks