public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2016-02-12 18:55 Steve Arnold
  0 siblings, 0 replies; 12+ messages in thread
From: Steve Arnold @ 2016-02-12 18:55 UTC (permalink / raw
  To: gentoo-commits

commit:     c9a88e4f6912f37f398e80689176b22a42956d71
Author:     Stephen L Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 12 18:54:48 2016 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Fri Feb 12 18:55:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a88e4f

dev-util/cccc: update to latest release (3.1.5)

This version also adds a simple test, and adds use flags for detailed
software docs and metrics, plus a lovely (optional) MFC patch.

Package-Manager: portage-2.2.26

 dev-util/cccc/Manifest             |  2 +-
 dev-util/cccc/cccc-3.1.4-r1.ebuild | 48 --------------------------
 dev-util/cccc/cccc-3.1.5.ebuild    | 71 ++++++++++++++++++++++++++++++++++++++
 dev-util/cccc/metadata.xml         | 16 +++++++--
 4 files changed, 86 insertions(+), 51 deletions(-)

diff --git a/dev-util/cccc/Manifest b/dev-util/cccc/Manifest
index 6f70191..42d83a8 100644
--- a/dev-util/cccc/Manifest
+++ b/dev-util/cccc/Manifest
@@ -1 +1 @@
-DIST cccc-3.1.4.tar.gz 632007 SHA256 27b3eca9a83a66799332363a80cc4bcd6db9869eddbda1a59a25cdace3ff4dbf SHA512 54b8838e228cd435497bac1fd3f1fe3bf2043871fe1046dd80b4382b08a7b249009aa5b06d5318868bbded31c31b45ec705c70abf3969f02b9680c3adb72a231 WHIRLPOOL bc432ad8247bf2da146db7d7a58af1c7344f5701198d8d9da8bc6e0491aa18fa901e70bb009aceb0356dc52059959d0045c848ec8f3bfe30aeb09cff973e18e2
+DIST cccc-3.1.5.tar.gz 662760 SHA256 6fe91eae83ad0ff4c1fe4277aabb6e7554a4dec1bb266b5657c064ef48a23142 SHA512 61544669a75ff7bd99c6ff5bb1e6ec163f2a09f4538493fe60e8f9f95eab7ba19ad6d39b6717ae010a223b8efe48c497a4feb8ead218e350ee2ab91b9c52c969 WHIRLPOOL 085d897eec29bc6de7fee35261bcde2228bb76e85799a6528d7ff9364712489368ad5f899f8c170169fb9b01931e4b846fd5c63b98b640c733640d10685c100f

diff --git a/dev-util/cccc/cccc-3.1.4-r1.ebuild b/dev-util/cccc/cccc-3.1.4-r1.ebuild
deleted file mode 100644
index 4a2492e..0000000
--- a/dev-util/cccc/cccc-3.1.4-r1.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils toolchain-funcs flag-o-matic
-
-DESCRIPTION="Source code metrics (line counts, complexity, etc) for Java and C++"
-HOMEPAGE="http://cccc.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="doc"
-
-RDEPEND=""
-DEPEND="${RDEPEND}"
-
-MAKEOPTS="-j1"
-
-src_prepare() {
-	# fix new C++ syntax error
-	epatch "${FILESDIR}"/${P}-whitespace-and-unqualified-lookup.patch
-
-	sed -i -e "/^CFLAGS/s|=|+=|" pccts/antlr/makefile
-	sed -i -e "/^CFLAGS/s|=|+=|" pccts/dlg/makefile
-	sed -i -e "/^CFLAGS/s|=|+=|" \
-			-e "/^LD_OFLAG/s|-o|-o |" \
-			-e "/^LDFLAGS/s|=|+=|" cccc/posixgcc.mak
-	#LD_OFLAG: ld on Darwin needs a space after -o
-}
-
-src_compile() {
-	emake CCC=$(tc-getCXX) LD=$(tc-getCXX) pccts
-
-	append-cflags "-std=c++98"
-	emake CCC=$(tc-getCXX) LD=$(tc-getCXX) cccc
-}
-
-src_install() {
-	dodoc readme.txt changes.txt
-	use doc && dohtml cccc/*.html
-	cd install || die
-	dodir /usr
-	emake -f install.mak INSTDIR="${ED}"/usr/bin
-}

diff --git a/dev-util/cccc/cccc-3.1.5.ebuild b/dev-util/cccc/cccc-3.1.5.ebuild
new file mode 100644
index 0000000..e0fb423
--- /dev/null
+++ b/dev-util/cccc/cccc-3.1.5.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Source metrics (line counts, complexity, etc) for Java and C++"
+HOMEPAGE="http://sarnold.github.io/cccc/"
+if [[ ${PV} = 9999* ]]; then
+	EGIT_REPO_URI="https://github.com/sarnold/cccc.git"
+	EGIT_BRANCH="master"
+	inherit git-r3
+else
+	SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="apidoc debug doc mfc"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+	apidoc? ( app-doc/doxygen[dot] )
+	"
+
+MAKEOPTS="-j1"
+
+src_prepare() {
+	use mfc && epatch "${FILESDIR}"/${PN}-c_dialect.patch
+}
+
+src_compile() {
+	if use debug ; then
+		export STRIP_MASK="*/bin/*"
+		DEBUG="true" emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+	else
+		emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+	fi
+
+	use apidoc && emake CCC=$(tc-getCXX) metrics docs
+}
+
+src_test() {
+	emake CCC=$(tc-getCXX) test
+}
+
+src_install() {
+	dobin cccc/cccc
+
+	dodoc README.md
+
+	if use mfc ; then
+		dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
+		docompress -x "/usr/share/doc/${PF}/cccc-MFC-dialect.opt"
+	fi
+
+	if use doc ; then
+		dodoc CHANGELOG.md HISTORY.md
+		dohtml cccc/*.html || die "html docs failed"
+		if use apidoc ; then
+			docinto api
+			dohtml -A svg -r doxygen/html || die "dox failed"
+			docompress -x "/usr/share/doc/${PF}/api"
+			docinto metrics
+			dohtml ccccout/* || die "metrics failed"
+		fi
+	fi
+}

diff --git a/dev-util/cccc/metadata.xml b/dev-util/cccc/metadata.xml
index 095797b..08fec3d 100644
--- a/dev-util/cccc/metadata.xml
+++ b/dev-util/cccc/metadata.xml
@@ -1,8 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+	<herd>dev-tools</herd>
+	<maintainer type="person">
+		<email>nerdboy@gentoo.org</email>
+	</maintainer>
+	<longdescription lang="en">
+		cccc provides source code metrics (line counts, complexity,
+		object-oriented, and structural metrics) for Java and C++
+	</longdescription>
 	<upstream>
-		<remote-id type="sourceforge">cccc</remote-id>
-		<bugs-to>http://sourceforge.net/tracker/?group_id=7763</bugs-to>
+		<remote-id type="github">sarnold/cccc</remote-id>
+		<bugs-to>https://github.com/sarnold/cccc/issues</bugs-to>
 	</upstream>
+	<use>
+		<flag name="apidoc">Build software docs with doxygen/graphviz and metrics with cccc</flag>
+		<flag name="mfc">Add patch for MFC dialect options</flag>
+	</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2016-03-02  4:25 Ian Delaney
  0 siblings, 0 replies; 12+ messages in thread
From: Ian Delaney @ 2016-03-02  4:25 UTC (permalink / raw
  To: gentoo-commits

commit:     bbc5d523fd2f723dc170caab36dbeb2c82515484
Author:     Peter Foley <pefoley2 <AT> pefoley <DOT> com>
AuthorDate: Tue Mar  1 22:22:31 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Tue Mar  1 22:22:31 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc5d523

dev-util/cccc: remove deprecated herd from metadata.xml

Package-Manager: portage-2.2.27

 dev-util/cccc/metadata.xml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-util/cccc/metadata.xml b/dev-util/cccc/metadata.xml
index 08fec3d..ecde1cf 100644
--- a/dev-util/cccc/metadata.xml
+++ b/dev-util/cccc/metadata.xml
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<herd>dev-tools</herd>
 	<maintainer type="person">
 		<email>nerdboy@gentoo.org</email>
 	</maintainer>


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2019-05-05 18:31 Steve Arnold
  0 siblings, 0 replies; 12+ messages in thread
From: Steve Arnold @ 2019-05-05 18:31 UTC (permalink / raw
  To: gentoo-commits

commit:     ef188ada4d7af85d45a874a1a3da2547312280f4
Author:     Stephen Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Sun May  5 18:31:30 2019 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Sun May  5 18:31:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef188ada

dev-util/cccc: rev-bump for eapi migration and QA cleanup

* use EAPI 6, filter lto flags, clean up QA issues

Bug: https://bugs.gentoo.org/651446
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 .../{cccc-3.1.5.ebuild => cccc-3.1.5-r1.ebuild}    | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.5.ebuild b/dev-util/cccc/cccc-3.1.5-r1.ebuild
similarity index 60%
rename from dev-util/cccc/cccc-3.1.5.ebuild
rename to dev-util/cccc/cccc-3.1.5-r1.ebuild
index 07042e9343c..a26523720d4 100644
--- a/dev-util/cccc/cccc-3.1.5.ebuild
+++ b/dev-util/cccc/cccc-3.1.5-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 inherit eutils toolchain-funcs flag-o-matic
 
@@ -17,7 +17,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="apidoc debug doc mfc"
 
 RDEPEND=""
@@ -25,15 +25,16 @@ DEPEND="${RDEPEND}
 	apidoc? ( app-doc/doxygen[dot] )
 	"
 
-MAKEOPTS="-j1"
-
 src_prepare() {
-	use mfc && epatch "${FILESDIR}"/${PN}-c_dialect.patch
+	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
+	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
+	default
+
 }
 
 src_compile() {
+	tc-export CC CXX LD AS AR NM RANLIB STRIP OBJCOPY
 	if use debug ; then
-		export STRIP_MASK="*/bin/*"
 		DEBUG="true" emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
 	else
 		emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
@@ -52,19 +53,18 @@ src_install() {
 	dodoc README.md
 
 	if use mfc ; then
-		dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
-		docompress -x "/usr/share/doc/${PF}/cccc-MFC-dialect.opt"
+		insinto /usr/share/doc/${PF}
+		doins "${FILESDIR}"/cccc-MFC-dialect.opt
 	fi
 
 	if use doc ; then
-		dodoc CHANGELOG.md HISTORY.md
-		dohtml cccc/*.html || die "html docs failed"
+		insinto /usr/share/doc/${PF}/html
+		doins cccc/*.html || die "html docs failed"
 		if use apidoc ; then
-			docinto api
-			dohtml -A svg -r doxygen/html || die "dox failed"
-			docompress -x "/usr/share/doc/${PF}/api"
-			docinto metrics
-			dohtml ccccout/* || die "metrics failed"
+			insinto /usr/share/doc/${PF}/html/api
+			doins -r doxygen/html/* || die "dox failed"
+			insinto /usr/share/doc/${PF}/html/metrics
+			doins ccccout/* || die "metrics failed"
 		fi
 	fi
 }


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2020-02-09 13:14 David Seifert
  0 siblings, 0 replies; 12+ messages in thread
From: David Seifert @ 2020-02-09 13:14 UTC (permalink / raw
  To: gentoo-commits

commit:     6f734b5357be1603c21ca9a98e5b5764d54ba4b6
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 13:12:46 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 13:12:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f734b53

dev-util/cccc: [QA] Fix DeprecatedInsinto

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.5-r1.ebuild | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.5-r1.ebuild b/dev-util/cccc/cccc-3.1.5-r1.ebuild
index 856607a6df2..47a91aadc54 100644
--- a/dev-util/cccc/cccc-3.1.5-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -52,19 +52,16 @@ src_install() {
 
 	dodoc README.md
 
-	if use mfc ; then
-		insinto /usr/share/doc/${PF}
-		doins "${FILESDIR}"/cccc-MFC-dialect.opt
-	fi
+	use mfc && dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
 
 	if use doc ; then
-		insinto /usr/share/doc/${PF}/html
-		doins cccc/*.html
+		docinto html
+		dodoc cccc/*.html
 		if use apidoc ; then
-			insinto /usr/share/doc/${PF}/html/api
-			doins -r doxygen/html/*
-			insinto /usr/share/doc/${PF}/html/metrics
-			doins ccccout/*
+			docinto html/api
+			dodoc -r doxygen/html/.
+			docinto html/metrics
+			dodoc -r ccccout/.
 		fi
 	fi
 }


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2020-10-04 17:20 Steve Arnold
  0 siblings, 0 replies; 12+ messages in thread
From: Steve Arnold @ 2020-10-04 17:20 UTC (permalink / raw
  To: gentoo-commits

commit:     77a4af7c782f230e4f2aa30c1bfa8c24712ab6ce
Author:     Stephen Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  4 17:17:44 2020 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Sun Oct  4 17:20:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77a4af7c

dev-util/cccc: add latest release, fix current bug

* archaic build setup incompatible with parallel make

Bug: https://bugs.gentoo.org/720714
Closes: https://bugs.gentoo.org/720714
Package-Manager: Portage-2.3.67, Repoman-2.3.17
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 dev-util/cccc/Manifest                             |  1 +
 dev-util/cccc/cccc-3.1.5-r1.ebuild                 | 25 ++++++++++--------
 .../{cccc-3.1.5-r1.ebuild => cccc-3.1.6.ebuild}    | 30 ++++++++++++----------
 3 files changed, 32 insertions(+), 24 deletions(-)

diff --git a/dev-util/cccc/Manifest b/dev-util/cccc/Manifest
index 887fa77c8cf..544fb644520 100644
--- a/dev-util/cccc/Manifest
+++ b/dev-util/cccc/Manifest
@@ -1 +1,2 @@
 DIST cccc-3.1.5.tar.gz 662760 BLAKE2B 57817ef9a44f002c017245d7dd3b1ef97fec59b59bce465d5e5e1cc12409b5602cfd8bf7ee938e526af9bcc11398639900d26848aa4f8c7f623669159de17117 SHA512 61544669a75ff7bd99c6ff5bb1e6ec163f2a09f4538493fe60e8f9f95eab7ba19ad6d39b6717ae010a223b8efe48c497a4feb8ead218e350ee2ab91b9c52c969
+DIST cccc-3.1.6.tar.gz 663731 BLAKE2B 28c2a3c29d549bb10fb0e905a0c3397ab7fcffa5f4a0e8a7b9ab0e91cfbfffd7312891c646c00e4b7687b1fc4a5766b9c9d45fce0175dc403e816d2deab24545 SHA512 4966d590dd479448392611b57758a1b0378e91c505f258db643a256c3c60b9908574e22aecbc57635248694959d429de5f356328f298f1260920ef4b6fb306e4

diff --git a/dev-util/cccc/cccc-3.1.5-r1.ebuild b/dev-util/cccc/cccc-3.1.5-r1.ebuild
index 47a91aadc54..1d3cdf4bc73 100644
--- a/dev-util/cccc/cccc-3.1.5-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.5-r1.ebuild
@@ -35,16 +35,16 @@ src_prepare() {
 src_compile() {
 	tc-export CC CXX LD AS AR NM RANLIB STRIP OBJCOPY
 	if use debug ; then
-		DEBUG="true" emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		DEBUG="true" emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
 	else
-		emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
 	fi
 
-	use apidoc && emake CCC=$(tc-getCXX) metrics docs
+	use apidoc && emake -j1 CCC=$(tc-getCXX) metrics docs
 }
 
 src_test() {
-	emake CCC=$(tc-getCXX) test
+	emake -j1 CCC=$(tc-getCXX) test
 }
 
 src_install() {
@@ -52,16 +52,19 @@ src_install() {
 
 	dodoc README.md
 
-	use mfc && dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
+	if use mfc ; then
+		insinto /usr/share/doc/${PF}
+		doins "${FILESDIR}"/cccc-MFC-dialect.opt
+	fi
 
 	if use doc ; then
-		docinto html
-		dodoc cccc/*.html
+		insinto /usr/share/doc/${PF}/html
+		doins cccc/*.html || die "html docs failed"
 		if use apidoc ; then
-			docinto html/api
-			dodoc -r doxygen/html/.
-			docinto html/metrics
-			dodoc -r ccccout/.
+			insinto /usr/share/doc/${PF}/html/api
+			doins -r doxygen/html/* || die "dox failed"
+			insinto /usr/share/doc/${PF}/html/metrics
+			doins ccccout/* || die "metrics failed"
 		fi
 	fi
 }

diff --git a/dev-util/cccc/cccc-3.1.5-r1.ebuild b/dev-util/cccc/cccc-3.1.6.ebuild
similarity index 57%
copy from dev-util/cccc/cccc-3.1.5-r1.ebuild
copy to dev-util/cccc/cccc-3.1.6.ebuild
index 47a91aadc54..5100eea55bb 100644
--- a/dev-util/cccc/cccc-3.1.5-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.6.ebuild
@@ -9,15 +9,14 @@ DESCRIPTION="Source metrics (line counts, complexity, etc) for Java and C++"
 HOMEPAGE="http://sarnold.github.io/cccc/"
 if [[ ${PV} = 9999* ]]; then
 	EGIT_REPO_URI="https://github.com/sarnold/cccc.git"
-	EGIT_BRANCH="master"
 	inherit git-r3
 else
 	SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 fi
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="apidoc debug doc mfc"
 
 RDEPEND=""
@@ -25,6 +24,8 @@ DEPEND="${RDEPEND}
 	apidoc? ( app-doc/doxygen[dot] )
 	"
 
+PATCHES=( "${FILESDIR}/${PN}-fix-tests-for-name-swap.patch" )
+
 src_prepare() {
 	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
 	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
@@ -35,16 +36,16 @@ src_prepare() {
 src_compile() {
 	tc-export CC CXX LD AS AR NM RANLIB STRIP OBJCOPY
 	if use debug ; then
-		DEBUG="true" emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		DEBUG="true" emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
 	else
-		emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
 	fi
 
-	use apidoc && emake CCC=$(tc-getCXX) metrics docs
+	use apidoc && emake -j1 CCC=$(tc-getCXX) metrics docs
 }
 
 src_test() {
-	emake CCC=$(tc-getCXX) test
+	emake -j1 CCC=$(tc-getCXX) test
 }
 
 src_install() {
@@ -52,16 +53,19 @@ src_install() {
 
 	dodoc README.md
 
-	use mfc && dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
+	if use mfc ; then
+		insinto /usr/share/doc/${PF}
+		doins "${FILESDIR}"/cccc-MFC-dialect.opt
+	fi
 
 	if use doc ; then
-		docinto html
-		dodoc cccc/*.html
+		insinto /usr/share/doc/${PF}/html
+		doins cccc/*.html || die "html docs failed"
 		if use apidoc ; then
-			docinto html/api
-			dodoc -r doxygen/html/.
-			docinto html/metrics
-			dodoc -r ccccout/.
+			insinto /usr/share/doc/${PF}/html/api
+			doins -r doxygen/html/* || die "dox failed"
+			insinto /usr/share/doc/${PF}/html/metrics
+			doins ccccout/* || die "metrics failed"
 		fi
 	fi
 }


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2020-10-06 22:59 Steve Arnold
  0 siblings, 0 replies; 12+ messages in thread
From: Steve Arnold @ 2020-10-06 22:59 UTC (permalink / raw
  To: gentoo-commits

commit:     22e104ccc5baf2cb3285a367a0d160ac5d50c39d
Author:     Stephen L Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 22:46:54 2020 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 22:59:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22e104cc

dev-util/cccc: fix doc install, remove cruft left by melting HD

Closes: https://bugs.gentoo.org/746587
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.5-r1.ebuild | 17 +++++++++--------
 dev-util/cccc/cccc-3.1.6.ebuild    | 22 +++++++++++-----------
 2 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.5-r1.ebuild b/dev-util/cccc/cccc-3.1.5-r1.ebuild
index 1d3cdf4bc73..b7c46d713a8 100644
--- a/dev-util/cccc/cccc-3.1.5-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.5-r1.ebuild
@@ -53,18 +53,19 @@ src_install() {
 	dodoc README.md
 
 	if use mfc ; then
-		insinto /usr/share/doc/${PF}
-		doins "${FILESDIR}"/cccc-MFC-dialect.opt
+		docinto examples
+		dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
+		docompress -x "/usr/share/doc/${PF}/examples"
 	fi
 
 	if use doc ; then
-		insinto /usr/share/doc/${PF}/html
-		doins cccc/*.html || die "html docs failed"
+		docinto html
+		dodoc cccc/*.html || die "html docs failed"
 		if use apidoc ; then
-			insinto /usr/share/doc/${PF}/html/api
-			doins -r doxygen/html/* || die "dox failed"
-			insinto /usr/share/doc/${PF}/html/metrics
-			doins ccccout/* || die "metrics failed"
+			docinto html/api
+			dodoc -r doxygen/html/. || die "apidocs failed"
+			docinto html/metrics
+			dodoc ccccout/* || die "metrics failed"
 		fi
 	fi
 }

diff --git a/dev-util/cccc/cccc-3.1.6.ebuild b/dev-util/cccc/cccc-3.1.6.ebuild
index 5100eea55bb..b7c46d713a8 100644
--- a/dev-util/cccc/cccc-3.1.6.ebuild
+++ b/dev-util/cccc/cccc-3.1.6.ebuild
@@ -9,14 +9,15 @@ DESCRIPTION="Source metrics (line counts, complexity, etc) for Java and C++"
 HOMEPAGE="http://sarnold.github.io/cccc/"
 if [[ ${PV} = 9999* ]]; then
 	EGIT_REPO_URI="https://github.com/sarnold/cccc.git"
+	EGIT_BRANCH="master"
 	inherit git-r3
 else
 	SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 fi
 
 LICENSE="GPL-2"
 SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="apidoc debug doc mfc"
 
 RDEPEND=""
@@ -24,8 +25,6 @@ DEPEND="${RDEPEND}
 	apidoc? ( app-doc/doxygen[dot] )
 	"
 
-PATCHES=( "${FILESDIR}/${PN}-fix-tests-for-name-swap.patch" )
-
 src_prepare() {
 	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
 	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
@@ -54,18 +53,19 @@ src_install() {
 	dodoc README.md
 
 	if use mfc ; then
-		insinto /usr/share/doc/${PF}
-		doins "${FILESDIR}"/cccc-MFC-dialect.opt
+		docinto examples
+		dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
+		docompress -x "/usr/share/doc/${PF}/examples"
 	fi
 
 	if use doc ; then
-		insinto /usr/share/doc/${PF}/html
-		doins cccc/*.html || die "html docs failed"
+		docinto html
+		dodoc cccc/*.html || die "html docs failed"
 		if use apidoc ; then
-			insinto /usr/share/doc/${PF}/html/api
-			doins -r doxygen/html/* || die "dox failed"
-			insinto /usr/share/doc/${PF}/html/metrics
-			doins ccccout/* || die "metrics failed"
+			docinto html/api
+			dodoc -r doxygen/html/. || die "apidocs failed"
+			docinto html/metrics
+			dodoc ccccout/* || die "metrics failed"
 		fi
 	fi
 }


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2022-03-20  0:38 Sam James
  0 siblings, 0 replies; 12+ messages in thread
From: Sam James @ 2022-03-20  0:38 UTC (permalink / raw
  To: gentoo-commits

commit:     e27d6c8236023010bb49d8b9cfbd9208cd445aa2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 20 00:36:51 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 20 00:36:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e27d6c82

dev-util/cccc: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.5-r1.ebuild | 10 +++++-----
 dev-util/cccc/cccc-3.1.6.ebuild    | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.5-r1.ebuild b/dev-util/cccc/cccc-3.1.5-r1.ebuild
index dae3638d11a6..e65776be2ba5 100644
--- a/dev-util/cccc/cccc-3.1.5-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -35,16 +35,16 @@ src_prepare() {
 src_compile() {
 	tc-export CC CXX LD AS AR NM RANLIB STRIP OBJCOPY
 	if use debug ; then
-		DEBUG="true" emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		DEBUG="true" emake -j1 CCC="$(tc-getCXX)" CC="$(tc-getCC)" cccc
 	else
-		emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		emake -j1 CCC="$(tc-getCXX)" CC="$(tc-getCC)" cccc
 	fi
 
-	use apidoc && emake -j1 CCC=$(tc-getCXX) metrics docs
+	use apidoc && emake -j1 CCC="$(tc-getCXX)" metrics docs
 }
 
 src_test() {
-	emake -j1 CCC=$(tc-getCXX) test
+	emake -j1 CCC="$(tc-getCXX)" test
 }
 
 src_install() {

diff --git a/dev-util/cccc/cccc-3.1.6.ebuild b/dev-util/cccc/cccc-3.1.6.ebuild
index 412e571310bd..07e35cae7b41 100644
--- a/dev-util/cccc/cccc-3.1.6.ebuild
+++ b/dev-util/cccc/cccc-3.1.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -35,16 +35,16 @@ src_prepare() {
 src_compile() {
 	tc-export CC CXX LD AS AR NM RANLIB STRIP OBJCOPY
 	if use debug ; then
-		DEBUG="true" emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		DEBUG="true" emake -j1 CCC="$(tc-getCXX)" CC="$(tc-getCC)" cccc
 	else
-		emake -j1 CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+		emake -j1 CCC="$(tc-getCXX)" CC="$(tc-getCC)" cccc
 	fi
 
-	use apidoc && emake -j1 CCC=$(tc-getCXX) metrics docs
+	use apidoc && emake -j1 CCC="$(tc-getCXX)" metrics docs
 }
 
 src_test() {
-	emake -j1 CCC=$(tc-getCXX) test
+	emake -j1 CCC="$(tc-getCXX)" test
 }
 
 src_install() {


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2022-04-17 19:00 Sam James
  0 siblings, 0 replies; 12+ messages in thread
From: Sam James @ 2022-04-17 19:00 UTC (permalink / raw
  To: gentoo-commits

commit:     8473547d3c173a0db415e5356cdb7c3e5d28ce58
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 18:52:41 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 18:59:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8473547d

dev-util/cccc: drop 3.1.5-r1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cccc/Manifest             |  1 -
 dev-util/cccc/cccc-3.1.5-r1.ebuild | 72 --------------------------------------
 2 files changed, 73 deletions(-)

diff --git a/dev-util/cccc/Manifest b/dev-util/cccc/Manifest
index 544fb644520a..859e3a1c5133 100644
--- a/dev-util/cccc/Manifest
+++ b/dev-util/cccc/Manifest
@@ -1,2 +1 @@
-DIST cccc-3.1.5.tar.gz 662760 BLAKE2B 57817ef9a44f002c017245d7dd3b1ef97fec59b59bce465d5e5e1cc12409b5602cfd8bf7ee938e526af9bcc11398639900d26848aa4f8c7f623669159de17117 SHA512 61544669a75ff7bd99c6ff5bb1e6ec163f2a09f4538493fe60e8f9f95eab7ba19ad6d39b6717ae010a223b8efe48c497a4feb8ead218e350ee2ab91b9c52c969
 DIST cccc-3.1.6.tar.gz 663731 BLAKE2B 28c2a3c29d549bb10fb0e905a0c3397ab7fcffa5f4a0e8a7b9ab0e91cfbfffd7312891c646c00e4b7687b1fc4a5766b9c9d45fce0175dc403e816d2deab24545 SHA512 4966d590dd479448392611b57758a1b0378e91c505f258db643a256c3c60b9908574e22aecbc57635248694959d429de5f356328f298f1260920ef4b6fb306e4

diff --git a/dev-util/cccc/cccc-3.1.5-r1.ebuild b/dev-util/cccc/cccc-3.1.5-r1.ebuild
deleted file mode 100644
index e65776be2ba5..000000000000
--- a/dev-util/cccc/cccc-3.1.5-r1.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs flag-o-matic
-
-DESCRIPTION="Source metrics (line counts, complexity, etc) for Java and C++"
-HOMEPAGE="http://sarnold.github.io/cccc/"
-if [[ ${PV} = 9999* ]]; then
-	EGIT_REPO_URI="https://github.com/sarnold/cccc.git"
-	EGIT_BRANCH="master"
-	inherit git-r3
-else
-	SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="apidoc debug doc mfc"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
-	apidoc? ( app-doc/doxygen[dot] )
-	"
-
-src_prepare() {
-	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
-	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
-	default
-
-}
-
-src_compile() {
-	tc-export CC CXX LD AS AR NM RANLIB STRIP OBJCOPY
-	if use debug ; then
-		DEBUG="true" emake -j1 CCC="$(tc-getCXX)" CC="$(tc-getCC)" cccc
-	else
-		emake -j1 CCC="$(tc-getCXX)" CC="$(tc-getCC)" cccc
-	fi
-
-	use apidoc && emake -j1 CCC="$(tc-getCXX)" metrics docs
-}
-
-src_test() {
-	emake -j1 CCC="$(tc-getCXX)" test
-}
-
-src_install() {
-	dobin cccc/cccc
-
-	dodoc README.md
-
-	if use mfc ; then
-		docinto examples
-		dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
-		docompress -x "/usr/share/doc/${PF}/examples"
-	fi
-
-	if use doc ; then
-		docinto html
-		dodoc cccc/*.html
-		if use apidoc ; then
-			docinto html/api
-			dodoc -r doxygen/html/.
-
-			docinto html/metrics
-			dodoc ccccout/*
-		fi
-	fi
-}


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2022-07-10 15:45 Sam James
  0 siblings, 0 replies; 12+ messages in thread
From: Sam James @ 2022-07-10 15:45 UTC (permalink / raw
  To: gentoo-commits

commit:     8e01b19cc3c9f35fd42d67425eb2f50dc7cddde3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 10 14:45:37 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 10 15:45:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e01b19c

dev-util/cccc: EAPI 8

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cccc/{cccc-3.1.6.ebuild => cccc-3.1.6-r1.ebuild} | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.6.ebuild b/dev-util/cccc/cccc-3.1.6-r1.ebuild
similarity index 92%
rename from dev-util/cccc/cccc-3.1.6.ebuild
rename to dev-util/cccc/cccc-3.1.6-r1.ebuild
index 07e35cae7b41..17d9b4e8f1b9 100644
--- a/dev-util/cccc/cccc-3.1.6.ebuild
+++ b/dev-util/cccc/cccc-3.1.6-r1.ebuild
@@ -1,12 +1,12 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit toolchain-funcs flag-o-matic
 
 DESCRIPTION="Source metrics (line counts, complexity, etc) for Java and C++"
-HOMEPAGE="http://sarnold.github.io/cccc/"
+HOMEPAGE="https://sarnold.github.io/cccc/"
 if [[ ${PV} = 9999* ]]; then
 	EGIT_REPO_URI="https://github.com/sarnold/cccc.git"
 	EGIT_BRANCH="master"
@@ -20,16 +20,13 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="apidoc debug doc mfc"
 
-RDEPEND=""
-DEPEND="${RDEPEND}
-	apidoc? ( app-doc/doxygen[dot] )
-	"
+BDEPEND="apidoc? ( app-doc/doxygen[dot] )"
 
 src_prepare() {
-	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
-	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
 	default
 
+	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
+	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
 }
 
 src_compile() {


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2022-07-12 20:19 Steve Arnold
  0 siblings, 0 replies; 12+ messages in thread
From: Steve Arnold @ 2022-07-12 20:19 UTC (permalink / raw
  To: gentoo-commits

commit:     0ac0326c98a8657a98f21ce032d8f6567295cd6f
Author:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 12 20:18:13 2022 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 20:18:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ac0326c

dev-util/cccc: stabilize 3.1.6-r1 for amd64

Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.6-r1.ebuild | 2 +-
 dev-util/cccc/metadata.xml         | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.6-r1.ebuild b/dev-util/cccc/cccc-3.1.6-r1.ebuild
index 17d9b4e8f1b9..2cef70b6152c 100644
--- a/dev-util/cccc/cccc-3.1.6-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.6-r1.ebuild
@@ -17,7 +17,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="apidoc debug doc mfc"
 
 BDEPEND="apidoc? ( app-doc/doxygen[dot] )"

diff --git a/dev-util/cccc/metadata.xml b/dev-util/cccc/metadata.xml
index e288ca6f7ed3..ed3b18e795a0 100644
--- a/dev-util/cccc/metadata.xml
+++ b/dev-util/cccc/metadata.xml
@@ -1,10 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<!-- maintainer-needed -->
+	<maintainer type="person">
+		<email>nerdboy@gentoo.org</email>
+		<name>Steve Arnold</name>
+	</maintainer>
 	<longdescription lang="en">
 		cccc provides source code metrics (line counts, complexity,
-		object-oriented, and structural metrics) for Java and C++
+		object-oriented, and structural metrics) for Java, C, and C++
 	</longdescription>
 	<upstream>
 		<remote-id type="github">sarnold/cccc</remote-id>


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2023-06-24  2:59 Sam James
  0 siblings, 0 replies; 12+ messages in thread
From: Sam James @ 2023-06-24  2:59 UTC (permalink / raw
  To: gentoo-commits

commit:     d2fc253dd8b58e1c66c01e818a28a78d5ae97dca
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sat Jun 24 02:47:19 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 24 02:58:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2fc253d

dev-util/cccc: replace `filter-flags -flto*` with `filter-lto`

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.6-r1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-util/cccc/cccc-3.1.6-r1.ebuild b/dev-util/cccc/cccc-3.1.6-r1.ebuild
index 2cef70b6152c..6fe66504f3a3 100644
--- a/dev-util/cccc/cccc-3.1.6-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.6-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -26,7 +26,8 @@ src_prepare() {
 	default
 
 	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
-	is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
+	is-flagq -flto* && filter-flags -fuse-linker-plugin
+	filter-lto
 }
 
 src_compile() {


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/
@ 2024-01-24  6:55 Sam James
  0 siblings, 0 replies; 12+ messages in thread
From: Sam James @ 2024-01-24  6:55 UTC (permalink / raw
  To: gentoo-commits

commit:     620324ca0cfe7d46df4cb9d70fee1430f3518467
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 22:04:56 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 06:54:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=620324ca

dev-util/cccc: migrate checking for enabled lto, to tc-is-lto

This toolchain func was recently added, and is a lot more reliable than
get-flagq, for example if the active flags contain `-flto -fno-lto` then
tc-is-lto gets it correct. We would rather use this wherever possible.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/cccc/cccc-3.1.6-r1.ebuild b/dev-util/cccc/cccc-3.1.6-r1.ebuild
index c856cbe32bd5..bd20dbc7f7e8 100644
--- a/dev-util/cccc/cccc-3.1.6-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.6-r1.ebuild
@@ -26,7 +26,7 @@ src_prepare() {
 	default
 
 	use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
-	is-flagq -flto* && filter-flags -fuse-linker-plugin
+	tc-is-lto && filter-flags -fuse-linker-plugin
 	filter-lto
 }
 


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-01-24  6:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-09 13:14 [gentoo-commits] repo/gentoo:master commit in: dev-util/cccc/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2024-01-24  6:55 Sam James
2023-06-24  2:59 Sam James
2022-07-12 20:19 Steve Arnold
2022-07-10 15:45 Sam James
2022-04-17 19:00 Sam James
2022-03-20  0:38 Sam James
2020-10-06 22:59 Steve Arnold
2020-10-04 17:20 Steve Arnold
2019-05-05 18:31 Steve Arnold
2016-03-02  4:25 Ian Delaney
2016-02-12 18:55 Steve Arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox