From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/protothreads/, dev-libs/protothreads/files/
Date: Sun, 25 Apr 2021 23:46:31 +0000 (UTC) [thread overview]
Message-ID: <1619394380.c123aa26f5d2ea3e1029cbb5e58d45ffbabcbf8d.Alessandro-Barbieri@gentoo> (raw)
commit: c123aa26f5d2ea3e1029cbb5e58d45ffbabcbf8d
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Apr 25 23:46:20 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Apr 25 23:46:20 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c123aa26
dev-libs/protothreads: respect CC
Closes: https://bugs.gentoo.org/784938
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-libs/protothreads/files/respect-cflags.patch | 8 ++++++++
dev-libs/protothreads/protothreads-1.4.ebuild | 17 +++++++----------
2 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/dev-libs/protothreads/files/respect-cflags.patch b/dev-libs/protothreads/files/respect-cflags.patch
new file mode 100644
index 000000000..395764048
--- /dev/null
+++ b/dev-libs/protothreads/files/respect-cflags.patch
@@ -0,0 +1,8 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS=-O -Wuninitialized -Werror
++CFLAGS+=-Wuninitialized
+
+ all: example-codelock example-buffer example-small
+
diff --git a/dev-libs/protothreads/protothreads-1.4.ebuild b/dev-libs/protothreads/protothreads-1.4.ebuild
index dd783a351..544561d4d 100644
--- a/dev-libs/protothreads/protothreads-1.4.ebuild
+++ b/dev-libs/protothreads/protothreads-1.4.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
-DESCRIPTION="Protothreads - Lightweight, Stackless Threads in C"
+inherit toolchain-funcs
+
+DESCRIPTION="Lightweight, Stackless Threads in C"
HOMEPAGE="https://web.archive.org/web/20190923093100/http://dunkels.com/adam/pt/"
SRC_URI="
https://web.archive.org/web/20190518175329/http://dunkels.com/adam/download/pt-${PV}.tar.gz -> ${P}.tar
@@ -16,7 +18,7 @@ KEYWORDS="~amd64"
IUSE="doc examples"
BDEPEND="doc? ( app-doc/doxygen )"
-
+PATCHES=( "${FILESDIR}/respect-cflags.patch" )
S="${WORKDIR}/pt-${PV}"
src_unpack() {
@@ -24,13 +26,8 @@ src_unpack() {
cp "${DISTDIR}/graham-pt.h" "${S}"
}
-src_prepare() {
- sed -i 's/-Werror//g' Makefile
- sed -i 's/-O//g' Makefile
- default
-}
-
src_compile() {
+ export CC=$(tc-getCC)
default
use doc && cd doc && emake
}
@@ -44,7 +41,7 @@ src_install() {
dodoc README
docinto html
dodoc -r doc/html/.
-
+ docompress -x "/usr/share/doc/${P}/html"
fi
if use examples ; then
insinto "/usr/share/${P}/examples"
next reply other threads:[~2021-04-25 23:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 23:46 Alessandro Barbieri [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-04-19 18:31 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/protothreads/, dev-libs/protothreads/files/ Alessandro Barbieri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1619394380.c123aa26f5d2ea3e1029cbb5e58d45ffbabcbf8d.Alessandro-Barbieri@gentoo \
--to=lssndrbarbieri@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox