svn commit: r439992 - in head/www/lessc: . files

Rodrigo Osorio rodrigo at FreeBSD.org
Tue May 2 22:56:15 UTC 2017


Author: rodrigo
Date: Tue May  2 22:56:14 2017
New Revision: 439992
URL: https://svnweb.freebsd.org/changeset/ports/439992

Log:
  Fix lessc after breakage by node 6 update.
  
  https://github.com/less/less.js/issues/2881

Added:
  head/www/lessc/files/
  head/www/lessc/files/patch-bin_lessc   (contents, props changed)
Modified:
  head/www/lessc/Makefile

Modified: head/www/lessc/Makefile
==============================================================================
--- head/www/lessc/Makefile	Tue May  2 22:23:52 2017	(r439991)
+++ head/www/lessc/Makefile	Tue May  2 22:56:14 2017	(r439992)
@@ -4,6 +4,7 @@
 PORTNAME=	lessc
 PORTVERSION=	2.5.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	www devel
 
 MAINTAINER=	rodrigo at FreeBSD.org

Added: head/www/lessc/files/patch-bin_lessc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/lessc/files/patch-bin_lessc	Tue May  2 22:56:14 2017	(r439992)
@@ -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
++})();


More information about the svn-ports-all mailing list