pkgsrc/devel/ruby-rake/Makefile
taca 2c6f739ff0 Update ruby-rake to 10.1.1.
= Rake 10.1.0 Released

== Changes in Version 10.1

Here are new features in this version of Rake:

* Add support for variable length task argument lists. If more actual
  arguments are supplied than named arguments, then the extra
  arguments values will be in args.extras.

* Application name is not displayed in the help banner. (Previously
  "rake" was hardcoded, now rake-based applications can display their
  own names).

=== Bug Fixes (in 10.1)

Bug fixes include:

* Fix backtrace suppression issues.

* Rules now explicit get task arguments passed to them.

* Rename FileList#exclude? to FileList#exclude_from_list? to avoid
  conflict with new Rails method.

* Clean / Clobber tasks now report failure to remove files.

* Plus heaps of internal code cleanup.
2014-03-13 18:36:21 +00:00

51 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2014/03/13 18:36:21 taca Exp $
DISTNAME= rake-${VERS}
CATEGORIES= devel
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://rubyforge.org/projects/rake/
COMMENT= Ruby Make
LICENSE= mit
CONFLICTS+= rake-[0-9]*
USE_TOOLS+= gzip
FIX_PERM= doc/release_notes/rake-0.7.3.rdoc
VERS= 10.1.1
FILES_SUBST+= GEM_NAME=${GEM_NAME} RAKE_HACK=${RAKE_HACK} RAKEBIN=${RAKEBIN}
PLIST_SUBST+= RAKE_HACK=${RAKE_HACK} RAKEBIN=${RAKEBIN}
INSTALLATION_DIRS= ${PKGMANDIR}/man1
.include "../../lang/ruby/rubyversion.mk"
OVERRIDE_GEMSPEC+= :executables rake=${RAKEBIN} \
:files bin/rake=bin/${RAKEBIN} doc/rake.1.gz=doc/rake.1
.if defined(RUBY_RAKE_VERSION)
RAKEBIN= rake${RUBY_SUFFIX}-${PKGVERSION_NOREV}
. if ${RUBY_RAKE_VERSION} == ${VERS}
RAKE_HACK= .${PKGVERSION_NOREV}
RAKE_SPEC= ${GEM_HOME}/specifications/${GEM_NAME}.gemspec
. endif
.endif
RAKEBIN?= rake${RUBY_SUFFIX}
# rake.1.gz has one extra byte at EOF.
pre-configure:
cd ${WRKSRC}/doc && (gzip -dc rake.1.gz >rake.1 2>/dev/null || ${TRUE})
cd ${WRKSRC}; ${CHMOD} -x ${FIX_PERM}
cd ${WRKSRC}/bin && ${MV} rake ${RAKEBIN}
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/rake.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rake.1
.if !empty(RAKE_HACK)
${MV} ${DESTDIR}${PREFIX}/${RAKE_SPEC} \
${DESTDIR}${PREFIX}/${RAKE_SPEC}${RAKE_HACK}
.endif
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"