Skip to content

Commit

Permalink
Fix lessc after breakage by node 6 update.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosorio committed May 2, 2017
1 parent ff4f37d commit de0da7f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/lessc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
PORTNAME= lessc
PORTVERSION= 2.5.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= www devel

MAINTAINER= [email protected]
Expand Down
20 changes: 20 additions & 0 deletions www/lessc/files/patch-bin_lessc
Original file line number Diff line number Diff line change
@@ -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
+})();

0 comments on commit de0da7f

Please sign in to comment.