Date: Fri, 2 Nov 2018 15:12:08 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483815 - in head/www/py-libsass: . files Message-ID: <201811021512.wA2FC8V8076892@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++'] +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811021512.wA2FC8V8076892>