Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 55751
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PgSQL Bugs <pgsql-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: David Mitchell <david.mitchell@telogis.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
plruby-0.4.2.ebuild plruby-0.4.2.ebuild (new package) text/plain David Mitchell 2004-06-30 22:23 0000 470 bytes Details
plruby-0.4.2.ebuild plruby-0.4.2.ebuild text/plain Masatomo Nakano (RETIRED) 2004-07-04 05:35 0000 472 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 55751 depends on: Show dependency tree
Bug 55751 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-06-30 22:21 0000
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 From David Mitchell 2004-06-30 22:23:50 0000 -------
Created an attachment (id=34555) [details]
plruby-0.4.2.ebuild (new package)

------- Comment #2 From Masatomo Nakano (RETIRED) 2004-07-04 05:32:09 0000 -------
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 From Masatomo Nakano (RETIRED) 2004-07-04 05:35:48 0000 -------
Created an attachment (id=34775) [details]
plruby-0.4.2.ebuild

------- Comment #4 From David Mitchell 2004-07-04 14:19:59 0000 -------
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 From Masatomo Nakano (RETIRED) 2004-07-04 14:58:42 0000 -------
ok.
I've just commited it.
Thank for your contribution :)

------- Comment #6 From David Mitchell 2004-07-08 20:43:09 0000 -------
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 From Masatomo Nakano (RETIRED) 2004-07-10 00:12:17 0000 -------
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 From David Mitchell 2004-07-11 13:53:41 0000 -------
Ok, that's better now. Thanks

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug