pkgsrc/lang/ruby/rdoc.mk
taca 104cea6dfe Update ruby-rdoc package to 3.12.
=== 3.12 / 2011-12-15

* Minor enhancements
  * Added DEVELOPERS document which contains an overview of how RDoc works and
    how to add new features to RDoc.
  * Improved title for HTML output to include <code>--title</code> in the
    title element.
  * <code>rdoc --pipe</code> now understands <code>--markup</code>.
  * RDoc now supports irc-scheme hyperlinks.  Issue #83 by trans.

* Bug fixes
  * Fix title on HTML output for pages.
  * Fixed parsing of non-indented HEREDOC.
  * Fixed parsing of <code>%w[]</code> and other % literals.  Issue #84 by
    Erik Hollensbe
  * Fixed arrow replacement in HTML output munging the spaceship operator.
    Issue #85 by eclectic923.
  * Verbatim sections with ERB that match the ruby code whitelist are no
    longer syntax-highlighted.  Issue #86 by eclectic923
  * Line endings on windows are normalized immediately after reading with
    binmode.  Issue #87 by Usa Nakamura
  * RDoc better understands directives for comments.  Comment directives can
    now be found anywhere in multi-line comments.  Issue #90 by Ryan Davis
  * Tidy links to methods show the label again.  Issue #88 by Simon Chiang
  * RDoc::Parser::C can now find comments directly above
    +rb_define_class_under+.  Issue #89 by Enrico
  * In rdoc, backspace and ansi formatters, labels and notes without bodies
    are now shown.
  * In rdoc, backspace and ansi formatters, whitespace between label or note
    and the colon is now stripped.
2011-12-16 11:48:33 +00:00

66 lines
1.7 KiB
Makefile

# $NetBSD: rdoc.mk,v 1.10 2011/12/16 11:48:33 taca Exp $
.if !defined(_RUBY_RDOC_MK)
_RUBY_RDOC_MK= # defined
#
# === Package-settable variables ===
#
# RUBY_RDOC_REQD
# Specify later version of rdoc. Ruby base packages contain:
#
# ruby18-base: rdoc 1.0.1 - 20041108
# ruby19-base: rdoc 2.5.8
# ruby193-base: rdoc 3.9.4
#
# If a package has a trouble with these version, please specify the
# version of rdoc to RDOC_REQD.
#
#
# current rdoc versions.
#
RUBY_RDOC_VERSION= 3.12
.if !empty(RUBY_RDOC_REQD)
RUBY18_RDOC_VERS= 1.0.1
RUBY19_RDOC_VERS= 2.5.8
RUBY193_RDOC_VERS= 3.9.4
_RDOC_REQD_MAJOR= ${RUBY_RDOC_REQD:C/\.[0-9\.]+$//}
_RDOC_REQD_MINORS= ${RUBY_RDOC_REQD:C/^([0-9]+)\.*//}
. if ${RUBY_VER} == "18"
_RUBY_RDOC_MAJOR= ${RUBY18_RDOC_VERS:C/\.[0-9\.]+$//}
_RUBY_RDOC_MINORS= ${RUBY18_RDOC_VERS:C/^([0-9]+)\.*//}
. elif ${RUBY_VER} == "19"
_RUBY_RDOC_MAJOR= ${RUBY19_RDOC_VERS:C/\.[0-9\.]+$//}
_RUBY_RDOC_MINORS= ${RUBY19_RDOC_VERS:C/^([0-9]+)\.*//}
.elif ${RUBY_VER} == "193"
_RUBY_RDOC_MAJOR= ${RUBY193_RDOC_VERS:C/\.[0-9\.]+$//}
_RUBY_RDOC_MINORS= ${RUBY193_RDOC_VERS:C/^([0-9]+)\.*//}
.else
PKG_FAIL_REASON+= "Unknown Ruby version specified: ${RUBY_VER}."
. endif
_RUBY_RDOC_REQD= NO
. if ${_RDOC_REQD_MAJOR} > ${_RUBY_RDOC_MAJOR}
_RUBY_RDOC_REQD= YES
. elif ${_RDOC_REQD_MAJOR} == ${_RUBY_RDOC_MAJOR}
. if !empty(_RUBY_RDOC_MINORS) && ${_RDOC_REQD_MINORS} > ${_RUBY_RDOC_MINORS}
_RUBY_RDOC_REQD= YES
. endif
. endif
. if empty(_RUBY_RDOC_REQD:M[nN][oO])
RDOC= ${PREFIX}/bin/rdoc
. if empty(RUBY_BUILD_RI:M[nN][oO]) && empty(RUBY_BUILD_RDOC:M[nN][oO])
# rdoc will be required at runtime, too.
DEPENDS+= ${RUBY_PKGPREFIX}-rdoc>=${RUBY_RDOC_REQD}:../../devel/ruby-rdoc
. endif
. endif
.endif
.endif