From owner-svn-ports-head@freebsd.org Fri Nov 2 15:12:09 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71F2610FAA80; Fri, 2 Nov 2018 15:12:09 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2771B70325; Fri, 2 Nov 2018 15:12:09 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0837148E5; Fri, 2 Nov 2018 15:12:09 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA2FC81E076893; Fri, 2 Nov 2018 15:12:08 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA2FC8V8076892; Fri, 2 Nov 2018 15:12:08 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201811021512.wA2FC8V8076892@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Fri, 2 Nov 2018 15:12:08 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: in head/www/py-libsass: . files X-SVN-Commit-Revision: 483815 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2018 15:12:09 -0000 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++'] +