1 | # $Id: Portfile 23533 2007-04-04 01:22:44Z rhwood@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup ruby 1.0 |
---|
5 | |
---|
6 | ruby.setup plruby 0.5.0 extconf.rb {README.en docs/plruby.rb ex_trans.sql example.run plruby.html} |
---|
7 | categories-append databases |
---|
8 | |
---|
9 | maintainers sixtus@gmail.com |
---|
10 | description PL/Ruby for PostgreSQL |
---|
11 | long_description The procedural language PL/Ruby allows you to write stored procedures for PostgreSQL in Ruby |
---|
12 | |
---|
13 | homepage http://moulon.inra.fr/ruby/plruby.html |
---|
14 | master_sites ftp://moulon.inra.fr/pub/ruby/ |
---|
15 | |
---|
16 | checksums md5 77d006b6b24f61709cd68d77d88b113f |
---|
17 | |
---|
18 | depends_lib-append port:ruby port:postgresql82 |
---|
19 | |
---|
20 | configure.args-append extconf.rb --with-pgsql-include=${prefix}/include/postgresql82/ \ |
---|
21 | --with-pgsql-lib=${prefix}/lib/postgresql82/ |
---|
22 | |
---|
23 | variant safe_level0 { |
---|
24 | configure.args-append --with-safe-level=0 |
---|
25 | } |
---|
26 | |
---|
27 | post-activate { |
---|
28 | set BUNDLE [exec sh -c "ruby -e \" puts Dir.glob(\\\"{#{\\\$LOAD_PATH.join(',')}}/plruby.bundle\\\")\""] |
---|
29 | ui_msg "To install pl/ruby in your database, issue the following commands: |
---|
30 | -----------------------------------------------------------------\n" |
---|
31 | ui_msg " create function plruby_call_handler() returns language_handler \n as '${BUNDLE}' language 'C';" |
---|
32 | ui_msg " create trusted language 'plruby' handler plruby_call_handler lancompiler 'PL/Ruby';" |
---|
33 | ui_msg "\n-----------------------------------------------------------------" |
---|
34 | } |
---|