svn commit: r483815 - in head/www/py-libsass: . files

Mark Linimon linimon at FreeBSD.org
Fri Nov 2 15:12:09 UTC 2018


Author: linimon
Date: Fri Nov  2 15:12:08 2018
New Revision: 483815
URL: https://svnweb.freebsd.org/changeset/ports/483815

Log:
  This port needs USES=c++11-lang.  Additionally, it unconditionally uses
  libc++ if it's compiled on FreeBSD, so fix that too.
  
  PR:		231714
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/www/py-libsass/Makefile
  head/www/py-libsass/files/patch-setup.py

Modified: head/www/py-libsass/Makefile
==============================================================================
--- head/www/py-libsass/Makefile	Fri Nov  2 15:07:09 2018	(r483814)
+++ head/www/py-libsass/Makefile	Fri Nov  2 15:12:08 2018	(r483815)
@@ -13,12 +13,10 @@ COMMENT=	Straightforward binding of libsass for Python
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_powerpc64=	fails to compile: cc1plus: error: unrecognized command line option -std=c++0x
-
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
 LIB_DEPENDS=	libsass.so:textproc/libsass
 
-USES=		localbase python
+USES=		compiler:c++11-lang localbase python
 USE_PYTHON=	autoplist distutils
 
 MAKE_ENV=	SYSTEM_SASS=1

Modified: head/www/py-libsass/files/patch-setup.py
==============================================================================
--- head/www/py-libsass/files/patch-setup.py	Fri Nov  2 15:07:09 2018	(r483814)
+++ head/www/py-libsass/files/patch-setup.py	Fri Nov  2 15:12:08 2018	(r483815)
@@ -1,11 +1,29 @@
---- setup.py.orig	2017-11-16 05:28:26 UTC
+--- setup.py.orig	2018-09-16 19:57:43 UTC
 +++ setup.py
 @@ -37,7 +37,7 @@ def _maybe_clang(flags):
          compiler.linker_so[0] = os.environ['CXX']
          return compiler
      distutils.sysconfig.customize_compiler = customize_compiler
 -    flags[:] = ['-c', '-O3'] + flags + ['-stdlib=libc++']
-+    flags[:] = ['-c'] + flags + ['-stdlib=libc++']
++    flags[:] = ['-c'] + flags
  
  
  def _maybe_macos(flags):
+@@ -59,7 +59,7 @@ if system_sass:
+     _maybe_macos(flags)
+ 
+     if platform.system() == 'FreeBSD':
+-        link_flags = ['-fPIC', '-lc++']
++        link_flags = ['-fPIC']
+     else:
+         link_flags = ['-fPIC', '-lstdc++']
+     libraries = ['sass']
+@@ -173,7 +173,7 @@ else:
+                         f.write(cencode_body)
+ 
+         if platform.system() == 'FreeBSD':
+-            link_flags = ['-fPIC', '-lc++']
++            link_flags = ['-fPIC']
+         else:
+             link_flags = ['-fPIC', '-lstdc++']
+ 


More information about the svn-ports-all mailing list