source: trunk/dports/ruby/rb-dbi/Portfile

Last change on this file was 137374, checked in by kimuraw@…, 2 years ago

ruby/rb-dbi: fix fetch and build error at r137366

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 137374 2015-06-10 15:43:11Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               ruby 1.0
5PortGroup       github 1.0
6
7github.setup    erikh ruby-dbi 0-1-1 rel-
8ruby.setup              {dbi ruby-dbi} 0.1.1 setup.rb {README doc examples}
9revision                2
10license                 BSD
11maintainers             nomaintainer
12description             The Ruby port of DBI
13long_description        A database independent interface for accessing \
14                                        databases, similar to Perl's DBI. Database drivers \
15                                        for it are now available as variants of this package.
16categories-append       databases
17checksums               md5 f64923a66b2d636af15b6791a4925a5e
18platforms               darwin
19
20# The conjuring with the dbi_conf_args variable to set configure.args is to cope
21# with the fact that setup.rb accepts a single "--with=<feature>,<feature>,..."
22# argument, with the last one overriding the rest.  We must therefore append to
23# the end of the string to get the desired variants, and for niceness we might
24# as well delete the obsoleted "--with" argument.
25
26set dbi_conf_args               --with=dbi
27configure.args-append   ${dbi_conf_args}
28
29variant dbd_mysql {
30        depends_lib-append      port:rb-mysql
31        configure.args-delete   ${dbi_conf_args}
32        append dbi_conf_args    ,dbd_mysql
33        configure.args-append   ${dbi_conf_args}
34}
35
36variant dbd_odbc {
37        depends_lib-append      port:rb-odbc
38        configure.args-delete   ${dbi_conf_args}
39        append dbi_conf_args    ,dbd_odbc
40        configure.args-append   ${dbi_conf_args}
41}
42
43variant dbd_pg {
44        depends_lib-append      port:rb-postgres
45        configure.args-delete   ${dbi_conf_args}
46        append dbi_conf_args    ,dbd_pg
47        configure.args-append   ${dbi_conf_args}
48}
49
50# dbd_proxy depends only on the fragment of the distributed Ruby library that is
51# part of the standard Ruby library as of version 1.8
52variant dbd_proxy {
53        configure.args-delete   ${dbi_conf_args}
54        append dbi_conf_args    ,dbd_proxy
55        configure.args-append   ${dbi_conf_args}
56}
Note: See TracBrowser for help on using the repository browser.