Use USE_RUBY_INSTALL instead of using do-install target.
[pkgsrc.git] / textproc / ruby-nqxml / Makefile
1 # $NetBSD: Makefile,v 1.5 2005/03/06 17:19:07 taca Exp $
2 #
3
4 DISTNAME=       nqxml-1.1.3p1
5 PKGNAME=        ${RUBY_PKGPREFIX}-${DISTNAME:S/p/./}
6 PKGREVISION=    1
7 CATEGORIES=     textproc ruby
8 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=nqxml/} \
9                 http://rrr.jin.gr.jp/download/
10
11 MAINTAINER=     neumann@s-direktnet.de
12 HOMEPAGE=       http://nqxml.sourceforge.net/
13 COMMENT=        XML parser written in pure Ruby
14
15 NO_BUILD=       yes
16 NO_CONFIGURE=   yes
17 USE_RUBY_INSTALL= yes
18
19 DOC=            README
20 EXAMPLES=       data.xml doc.xml dumpXML.rb parseTestStream.rb \
21                 parseTestTree.rb printEntityClassNames.rb \
22                 reverseTags.rb reverseText.rb write.rb \
23                 write.rb writeManualDoc.rb writeParsedDoc.rb
24 CONTRIB_LIB=    autodis_1.rb autodis_2.rb
25 TESTS=          dispatchertester.rb oasis.rb streamingparsertester.rb test.rb \
26                 testresource.rb tokenizertester.rb treeparsertester.rb \
27                 writertester.rb
28 REPLACE_RUBY_DIRS=      ${WRKSRC}/examples ${WRKSRC}/tests
29
30 post-install:
31         ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/nqxml
32 .for f in ${DOC}
33         ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/nqxml
34 .endfor
35         ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/nqxml/contrib
36 .for f in ${EXAMPLES}
37         ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/nqxml
38 .endfor
39 .for f in ${CONTRIB_LIB}
40         ${INSTALL_DATA} ${WRKSRC}/contrib/${f} \
41                 ${RUBY_EXAMPLESDIR}/nqxml/contrib
42 .endfor
43         ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/nqxml/tests
44 .for f in ${TESTS}
45         ${INSTALL_DATA} ${WRKSRC}/tests/${f} ${RUBY_EXAMPLESDIR}/nqxml/tests
46 .endfor
47
48 .include "../../lang/ruby/modules.mk"
49 .include "../../mk/bsd.pkg.mk"