Index: head/www/lessc/Makefile =================================================================== --- head/www/lessc/Makefile (revision 439991) +++ head/www/lessc/Makefile (revision 439992) @@ -1,39 +1,40 @@ # Created by: Rodrigo Osorio # $FreeBSD$ PORTNAME= lessc PORTVERSION= 2.5.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= www devel MAINTAINER= rodrigo@FreeBSD.org COMMENT= Javascript CSS pre-processor LICENSE= APACHE20 BUILD_DEPENDS= npm>=0:www/npm RUN_DEPENDS= npm>=0:www/npm USE_GITHUB= yes GH_ACCOUNT= less GH_PROJECT= less.js # npm install both builds and installs. To avoid building in the stage phase, # allow npm to install in a temporary directory and move from there. # Moreover, only a fraction of what is installed by npm needs to be packaged do-build: ${MKDIR} ${WRKDIR}/build-lib (cd ${WRKDIR}/build-lib && \ ${SETENV} HOME=${WRKDIR} npm install ${WRKSRC}) do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/bin \ ${STAGEDIR}${PREFIX}/lib/node_modules/.bin ${MV} ${WRKDIR}/build-lib/node_modules/less \ ${STAGEDIR}${PREFIX}/lib/node_modules ${MV} ${WRKDIR}/build-lib/node_modules/.bin/lessc \ ${STAGEDIR}${PREFIX}/lib/node_modules/.bin (cd ${STAGEDIR}${PREFIX}/bin && \ ${LN} -s ../lib/node_modules/.bin/lessc lessc) .include Index: head/www/lessc/files/patch-bin_lessc =================================================================== --- head/www/lessc/files/patch-bin_lessc (nonexistent) +++ head/www/lessc/files/patch-bin_lessc (revision 439992) @@ -0,0 +1,20 @@ +--- bin/lessc.orig 2017-05-02 22:40:55 UTC ++++ bin/lessc +@@ -316,8 +316,8 @@ function printUsage() { + } + + if (sourceMapOptions.sourceMapRootpath === undefined) { +- var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename), +- pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename); ++ var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename || '.'), ++ pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename || '.'); + sourceMapOptions.sourceMapRootpath = path.relative(pathToMap, pathToInput); + } + +@@ -484,4 +484,4 @@ function printUsage() { + parseLessFile(false, buffer); + }); + } +-})(); +\ No newline at end of file ++})(); Property changes on: head/www/lessc/files/patch-bin_lessc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property