source: trunk/dports/ruby/rb-plruby/Portfile @ 105120

Last change on this file since 105120 was 105120, checked in by jmr@…, 7 years ago

rb-plruby: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 105120 2013-04-11 03:20:43Z jmr@macports.org $
2
3PortSystem          1.0
4PortGroup           ruby 1.0
5
6ruby.setup          plruby 0.5.3 extconf.rb {README.en docs/plruby.rb ex_trans.sql example.run plruby.html} rubyforge:56891
7categories-append   databases
8license             {Ruby GPL-2}
9
10maintainers         nomaintainer
11platforms           darwin
12description         PL/Ruby for PostgreSQL
13long_description    The procedural language PL/Ruby allows you to write stored procedures for PostgreSQL in Ruby
14
15homepage            http://moulon.inra.fr/ruby/plruby.html
16
17checksums           md5     9411bb29e1aa5521c5327e4d916de934 \
18                    sha1    5c89ea18dcc07c285faae44a1bc0212ec2692e9a \
19                    rmd160  51897c169ba783375730983a292a01cdecf8ee35
20
21depends_lib-append  port:postgresql83
22
23configure.args-append extconf.rb  --with-pgsql-include=${prefix}/include/postgresql83/ \
24                                  --with-pgsql-lib=${prefix}/lib/postgresql83/
25
26variant safe_level0 {
27  configure.args-append --with-safe-level=0
28}
29
30post-activate {
31  ui_msg "To install pl/ruby in your database, issue the following commands:
32-----------------------------------------------------------------\n"
33  ui_msg "  create function plruby_call_handler() returns language_handler"
34  ui_msg "    as '${ruby.archlib}/plruby.bundle' language 'C';"
35  ui_msg "  create trusted language 'plruby' handler plruby_call_handler lancompiler 'PL/Ruby';"
36  ui_msg "\n-----------------------------------------------------------------"
37}
Note: See TracBrowser for help on using the repository browser.