Ticket #11406: Portfile

File Portfile, 1.4 KB (added by sixtus@…, 17 years ago)

Updated to 0.5.0 and psql 8.2, added variant

Line 
1# $Id: Portfile 23533 2007-04-04 01:22:44Z rhwood@macports.org $
2
3PortSystem          1.0
4PortGroup           ruby 1.0
5
6ruby.setup          plruby 0.5.0  extconf.rb {README.en docs/plruby.rb ex_trans.sql example.run plruby.html}
7categories-append   databases
8
9maintainers         sixtus@gmail.com
10description         PL/Ruby for PostgreSQL
11long_description    The procedural language PL/Ruby allows you to write stored procedures for PostgreSQL in Ruby
12
13homepage            http://moulon.inra.fr/ruby/plruby.html
14master_sites        ftp://moulon.inra.fr/pub/ruby/
15
16checksums           md5 77d006b6b24f61709cd68d77d88b113f
17
18depends_lib-append  port:ruby port:postgresql82
19
20configure.args-append extconf.rb  --with-pgsql-include=${prefix}/include/postgresql82/ \
21                                  --with-pgsql-lib=${prefix}/lib/postgresql82/
22
23variant safe_level0 {
24  configure.args-append --with-safe-level=0
25}
26
27post-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}