source: trunk/dports/ruby/rb-sqlite/Portfile @ 8395

Last change on this file since 8395 was 8395, checked in by rshaw, 15 years ago

Update to stable release 1.3.1.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.12 2004/09/20 23:04:41 rshaw Exp $
2PortSystem              1.0
3PortGroup               ruby 1.0
4
5ruby.setup              {sqlite sqlite-ruby} 1.3.1 basic_install.rb {README samples} \
6                                rubyforge:1072
7maintainers             rshaw@opendarwin.org
8description             Interface to the SQLite DB engine from Ruby
9long_description        Provides an interface for the SQLite DB engine. This \
10                                        differs from the 'ruby-sqlite' project (also on RAA) \
11                                        in that it is more complete, and from the ruby DBI \
12                                        version of SQLite in that it is SQLite specific, so \
13                                        you can do things that would otherwise be more \
14                                        difficult via DBI. If you want portability between \
15                                        backends, use DBI. If you want ease of use with \
16                                        SQLite, use this.
17categories-append       databases
18checksums               md5 441d3d5507f2472e3560ab7e987ce1b4
19platforms               darwin
20
21depends_lib-append              lib:libsqlite:sqlite
22
23post-patch {
24        reinplace "s|ruby extconf.rb|${ruby.bin} -rvendor-specific extconf.rb|" \
25                ${worksrcpath}/install.rb
26        reinplace "s|make install|& DESTDIR=${destroot}|" \
27                ${worksrcpath}/install.rb
28        reinplace "s|make|& RUBY=${ruby.bin}|" \
29                ${worksrcpath}/install.rb
30}
31
32test.run                yes
33test {
34        if {[file exists ${destroot}${ruby.lib}/sqlite.rb]} {
35                cd ${worksrcpath}
36                set cmd "${ruby.bin} \
37                        -I${destroot}${ruby.lib} \
38                        -I${destroot}${ruby.archlib}"
39                system "${cmd} samples/define_db.rb"
40                system "${cmd} samples/advanced.rb"
41                system "${cmd} samples/queries.rb"
42                #system "${cmd} samples/pragma.rb"
43        } else {
44                ui_error "Must run 'destroot' prior to 'test' for port ${name}!"
45                exit 1
46        }
47}
48test.target
49
Note: See TracBrowser for help on using the repository browser.