Don't simply assign to CONFIGURE_ARGS with "=" but "+=".
[pkgsrc.git] / databases / ruby-DBI / Makefile
1 # $NetBSD: Makefile,v 1.9 2005/03/06 17:19:05 taca Exp $
2
3 DISTNAME=       ruby-dbi-all-${RUBY_DBI_VERSION}
4 PKGNAME=        ${RUBY_PKGPREFIX}-DBI-${RUBY_DBI_VERSION}
5 PKGREVISION=    1
6 CATEGORIES=     databases ruby
7 MASTER_SITES=   ${RUBY_DBI_MASTER_SITES}
8
9 MAINTAINER=     tech-pkg@NetBSD.org
10 HOMEPAGE=       ${RUBY_DBI_HOMEPAGE}
11 COMMENT=        DBI for ruby
12
13 USE_RUBY_SETUP=         yes
14 CONFIGURE_ARGS+=        --with=dbi
15
16 REPLACE_RUBY=   test/testdbi.rb
17 DOCS=           ChangeLog LICENSE
18 DOCS_DBI=       DBD_SPEC DBI_SPEC ToDo index.rd sf_logo.html \
19                 html/ChangeLog.html html/DBD_SPEC.html html/DBI_SPEC.html \
20                 html/ToDo.html html/index.html html/rubyStyle.css
21 EXAMPLES=       examples/persistence.rb
22 TESTS=          README testdbi.rb example/config.sh example/example.cfg \
23                 example/setup.sh example/teardown.sh
24
25 post-install:
26         ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/dbi/html
27 .for FILE in ${DOCS}
28         ${INSTALL_DATA} ${WRKSRC}/${FILE} ${RUBY_DOCDIR}/dbi/${FILE}
29 .endfor
30 .for FILE in ${DOCS_DBI}
31         ${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${RUBY_DOCDIR}/dbi/${FILE}
32 .endfor
33         ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/dbi/test/example
34 .for FILE in ${EXAMPLES}
35         ${INSTALL_DATA} ${WRKSRC}/${FILE} ${RUBY_EXAMPLESDIR}/dbi
36 .endfor
37 .for FILE in ${TESTS}
38         ${INSTALL_DATA} ${WRKSRC}/test/${FILE} \
39                 ${RUBY_EXAMPLESDIR}/dbi/test/${FILE}
40 .endfor
41         ${INSTALL_DATA_DIR} ${RUBY_SITELIBDIR}/DBD
42         ${INSTALL_DATA_DIR} ${RUBY_SITEARCHLIBDIR}/DBD
43
44 .include "Makefile.common"
45 .include "../../lang/ruby/modules.mk"
46 .include "../../mk/bsd.pkg.mk"