f8cbb363d5
devel/ruby-rd-mode pacakge, too. = CHANGES :0.6.18 * bin/rd2 UTF-8 support. * support Ruby 1.9. * makerdtools.rb fixed some bugs. * fixed install dot.rd2rc problem * fixed some bugs. :0.6.17 * utils/rd-mode.el patch from <shirai@p1jp.com> :0.6.16 * utils/rd-mode.el font-face patch from HIRAOKA by MoonWolf <moonwolf@moonwolf.com> :0.6.15 * re-packaging by MoonWolf <moonwolf@moonwolf.com>
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2005/11/03 05:21:18 taca Exp $
|
|
|
|
DISTNAME= rdtool-0.6.18
|
|
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= textproc ruby
|
|
MASTER_SITES= http://www.moonwolf.com/ruby/archive/
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= http://www2.pos.to/~tosh/ruby/rdtool/
|
|
COMMENT= RD (Ruby Document) converter to HTML/man/etc
|
|
|
|
# Since rd2 commands depends its name and it can't rename, we cannot
|
|
# install multiple ruby??-rd2 package (unless supported by pkgview.
|
|
CONFLICTS+= ruby[1-9][0-9]-rdtool-*
|
|
|
|
USE_RUBY_DIST_SUBDIR= yes
|
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
.if ${RUBY_VER} == "16"
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-optparse>=0.7:../../devel/ruby-optparse
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-strscan>=0.6.1:../../devel/ruby-strscan
|
|
.endif
|
|
|
|
USE_RUBY_SETUP= yes
|
|
USE_PKGINSTALL= yes
|
|
REPLACE_RUBY= bin/rd2 bin/rdswap.rb
|
|
|
|
CONF_FILES+= ${RUBY_SITELIBDIR}/rd/dot.rd2rc ${PKG_SYSCONFDIR}/dot.rd2rc
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_STAGE.path= post-configure
|
|
SUBST_FILES.path= bin/rd2
|
|
SUBST_SED.path= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|"
|
|
SUBST_MESSAGE.path= "Fixing PKG_SYSCONFDIR paths."
|
|
|
|
DOCS_RD= README.rd README.rd.ja doc/rd-draft.rd doc/rd-draft.rd.ja
|
|
DOCS= ${DOCS_RD} ${DOCS_RD:S/.rd/.html/}
|
|
|
|
post-build:
|
|
.for f in ${DOCS_RD}
|
|
cd ${WRKSRC}; ${RUBY} -I./lib bin/rd2 -r lib/rd/rd2html-lib.rb ${f} \
|
|
> ${f:S/.rd/.html/}
|
|
.endfor
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/rdswap.rb ${PREFIX}/bin/rdswap
|
|
${INSTALL_DATA} ${WRKSRC}/lib/rd/dot.rd2rc \
|
|
${RUBY_SITELIBDIR}/rd/dot.rd2rc
|
|
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/rd
|
|
.for f in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/rd
|
|
${INSTALL_DATA} ${WRKSRC}/lib/rd/dot.rd2rc \
|
|
${RUBY_EXAMPLESDIR}/rd/dot.rd2rc
|
|
|
|
.include "../../lang/ruby/modules.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|