852712577b
naming scheme of the other multi-version packages. Add support for the coorresponding RUBY_VERSIONS_INCOMPATIBLE list.
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2016/09/08 15:19:17 joerg Exp $
|
|
|
|
DISTNAME= rake-${VERS}
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= https://github.com/ruby/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.4.2
|
|
|
|
RUBY_VERSIONS_ACCEPTED= 18 21 22
|
|
|
|
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"
|