* Now installable with ruby19 or ruby193. = Rake Changelog == Master (for 0.9.3) * The rake test loader now removes arguments it has processed. Issue #51 * Rake::TaskArguments now responds to #values_at * RakeFileUtils.verbose_flag = nil silences output the same as 0.8.7 * Rake tests are now directory-independent * Rake tests are no longer require flexmock * Commands constant is no longer polluting top level namespace. == Version 0.9.2 * Unknown == Version 0.9.1 * Added deprecation warnings to the Rake DSL methods. == Version 0.9.0 * *Incompatible* *change*: Rake DSL commands ('task', 'file', etc.) are no longer private methods in Object. If you need to call 'task :xzy' inside your class, include Rake::DSL into the class. The DSL is still available at the top level scope (via the top level object which extends Rake::DSL). * Rake now warns when the deprecated :needs syntax used. * Rake history is now UTF-8 encoded. * Rake now uses case-insensitive comparisons to find the Rakefile on Windows. Based on patch by Roger Pack. * Rake now requires (instead of loads) files in the test task. Patch by Cezary Baginski. * Fixed typos. Patches by Sean Scot August Moon and R.T. Lechow. * Rake now prints the Rakefile directory only when it's different from the current directory. Patch by Alex Chaffee. * Improved rakefile_location discovery on Windows. Patch by James Tucker. * Rake now recognizes "Windows Server" as a windows system. Patch by Matthias Lüdtke * Rake::RDocTask is deprecated. Use RDoc::Task from RDoc 2.4.2+ (require 'rdoc/task') * Rake::GemPackageTask is deprecated. Use Gem::PackageTask (require 'rubygems/package_task') * Rake now outputs various messages to $stderr instead of $stdout. * Rake no longer emits warnings for Config. Patch by Santiago Pastorino. * Split rake.rb into individual files. * Support for the --where (-W) flag for showing where a task is defined. * Fixed quoting in test task. (http://onestepback.org/redmine/issues/show/44, http://www.pivotaltracker.com/story/show/1223138) * Fixed the silent option parsing problem. (http://onestepback.org/redmine/issues/show/47) * Fixed :verbose=>false flag on sh and ruby commands. * Rake command line options may be given by default in a RAKEOPT environment variable. * Errors in Rake will now display the task invocation chain in effect at the time of the error. * Accepted change by warnickr to not expand test patterns in shell (allowing more files in the test suite). * Fixed that file tasks did not perform prereq lookups in scope (Redmine #57).
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2012/03/17 13:57:59 taca Exp $
|
|
|
|
DISTNAME= rake-0.9.2.2
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= http://rubyforge.org/projects/rake/
|
|
COMMENT= Ruby Make
|
|
LICENSE= mit
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
CONFLICTS+= rake-[0-9]*
|
|
|
|
USE_TOOLS+= gzip
|
|
FIX_PERM= doc/release_notes/rake-0.7.3.rdoc \
|
|
lib/rake/ruby182_test_unit_fix.rb
|
|
|
|
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 ${RUBY_VER} == 18
|
|
RAKEBIN=rake${RUBY_VER}
|
|
.else
|
|
RAKEBIN=rake${RUBY_VER}-${PKGVERSION_NOREV}
|
|
.if ${RUBY_VER} == 193
|
|
RAKE_HACK= .${PKGVERSION_NOREV}
|
|
RAKE_SPEC= ${GEM_HOME}/specifications/${GEM_NAME}.gemspec
|
|
.endif
|
|
.endif
|
|
|
|
# rake.1.gz has one extra byte at EOF.
|
|
pre-configure:
|
|
cd ${WRKSRC}/doc && (gzip -d rake.1.gz 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"
|