public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/dunst/
Date: Sat,  9 Sep 2017 12:30:16 +0000 (UTC)	[thread overview]
Message-ID: <1504960215.89decf31a4c1055df9abfee09242092f6a7eb22e.jer@gentoo> (raw)

commit:     89decf31a4c1055df9abfee09242092f6a7eb22e
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  9 12:29:32 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Sep  9 12:30:15 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89decf31

x11-misc/dunst: Drop gtk+ dep for 1.1.0. Respect CC. Fix some compiler warnings.

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 x11-misc/dunst/dunst-1.1.0.ebuild | 45 ++++++++++++++++++++++-----------------
 x11-misc/dunst/dunst-1.2.0.ebuild | 22 +++++++++----------
 2 files changed, 36 insertions(+), 31 deletions(-)

diff --git a/x11-misc/dunst/dunst-1.1.0.ebuild b/x11-misc/dunst/dunst-1.1.0.ebuild
index 01fcda42db9..1ce9d2c4edb 100644
--- a/x11-misc/dunst/dunst-1.1.0.ebuild
+++ b/x11-misc/dunst/dunst-1.1.0.ebuild
@@ -1,9 +1,8 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-inherit eutils
+EAPI=6
+inherit toolchain-funcs
 
 DESCRIPTION="customizable and lightweight notification-daemon"
 HOMEPAGE="http://www.knopwob.org/dunst/"
@@ -20,33 +19,41 @@ CDEPEND="
 	sys-apps/dbus
 	x11-libs/cairo[X,glib]
 	x11-libs/gdk-pixbuf
-	x11-libs/gtk+:2=
 	x11-libs/libXScrnSaver
 	x11-libs/libXft
 	x11-libs/libXinerama
 	x11-libs/pango[X]
 	dunstify? ( x11-libs/libnotify )
 "
-
-DEPEND="${CDEPEND}
-		dev-lang/perl
-		virtual/pkgconfig"
-
+DEPEND="
+	${CDEPEND}
+	dev-lang/perl
+	virtual/pkgconfig
+"
 RDEPEND="${CDEPEND}"
 
 src_prepare() {
-	# Remove nasty CFLAGS which override user choice
-	sed -ie "/^CFLAGS/ {
-		s:-g::
-		s:-O.::
-	}" config.mk || die "sed failed"
+	sed -i \
+		-e '/^CFLAGS/ { s:-g::; s:-O.:: }' \
+		-e '/^CPPFLAGS/ s:-D_BSD_SOURCE:-D_DEFAULT_SOURCE:' \
+		config.mk || die
 
-	if use dunstify; then
-		# add dunstify to the all target
-		sed -ie "/^all:/ s:$: dunstify:" Makefile || die "sed failed"
-	fi
+	sed -i \
+		-e 's:registration_id > 0:(&):' \
+		dbus.c || die
+
+	sed -i \
+		-e '/g_print.*iter->data/ s:iter->data:(char *)&:' \
+		dunstify.c || die
+
+	default
+}
+
+src_compile() {
+	tc-export CC
+	emake V=
 
-	epatch_user
+	use dunstify && emake V= dunstify
 }
 
 src_install() {

diff --git a/x11-misc/dunst/dunst-1.2.0.ebuild b/x11-misc/dunst/dunst-1.2.0.ebuild
index ebbb3c591cb..40b3555454b 100644
--- a/x11-misc/dunst/dunst-1.2.0.ebuild
+++ b/x11-misc/dunst/dunst-1.2.0.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils
+inherit toolchain-funcs
 
 DESCRIPTION="customizable and lightweight notification-daemon"
 HOMEPAGE="http://www.knopwob.org/dunst/ https://github.com/dunst-project/dunst"
@@ -35,23 +35,21 @@ DEPEND="
 RDEPEND="${CDEPEND}"
 
 src_prepare() {
-	default
-
-	# Remove nasty CFLAGS which override user choice
 	sed -i -e "/^CFLAGS/ { s:-g::;s:-O.:: }" config.mk || die
 
-	if use dunstify; then
-		# add dunstify to the all target
-		sed -i -e "/^all:/ s:$: dunstify:" Makefile || die
-	fi
+	default
+}
+
+src_compile() {
+	tc-export CC
+	emake
+	use dunstify && emake dunstify
 }
 
 src_install() {
-	emake DESTDIR="${D}" PREFIX="/usr" install
+	default
 
-	if use dunstify; then
-		dobin dunstify
-	fi
+	dunstify && dobin dunstify
 
 	dodoc AUTHORS CHANGELOG.md README.md RELEASE_NOTES
 }


             reply	other threads:[~2017-09-09 12:30 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-09 12:30 Jeroen Roovers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-04 20:15 [gentoo-commits] repo/gentoo:master commit in: x11-misc/dunst/ Conrad Kostecki
2025-04-04 20:15 Conrad Kostecki
2025-04-04 20:15 Conrad Kostecki
2025-03-08  6:57 Arthur Zamarin
2025-01-23 23:19 Conrad Kostecki
2025-01-23 23:19 Conrad Kostecki
2024-12-23 20:01 Conrad Kostecki
2024-12-15 14:52 Conrad Kostecki
2024-04-17 20:45 Conrad Kostecki
2024-04-17 14:13 Conrad Kostecki
2024-04-17 11:39 Conrad Kostecki
2024-04-17 11:39 Conrad Kostecki
2024-04-17 11:39 Conrad Kostecki
2024-03-09 13:57 Conrad Kostecki
2024-03-09 13:57 Conrad Kostecki
2023-05-22 21:35 Conrad Kostecki
2023-05-22 21:35 Conrad Kostecki
2023-04-22  0:11 Conrad Kostecki
2023-04-18 20:38 Conrad Kostecki
2023-04-18 20:38 Conrad Kostecki
2023-04-18 20:38 Conrad Kostecki
2023-03-12 19:00 Conrad Kostecki
2023-03-12 19:00 Conrad Kostecki
2022-07-29 19:06 Conrad Kostecki
2022-07-29 19:06 Conrad Kostecki
2022-07-29 19:06 Conrad Kostecki
2022-06-28 20:21 Conrad Kostecki
2022-04-01 22:55 Conrad Kostecki
2022-04-01 22:55 Conrad Kostecki
2022-04-01 22:55 Conrad Kostecki
2022-03-02 20:29 Conrad Kostecki
2022-03-02 20:29 Conrad Kostecki
2022-02-28  0:03 Conrad Kostecki
2022-02-25 11:34 Conrad Kostecki
2022-01-20 22:58 Conrad Kostecki
2022-01-20 22:58 Conrad Kostecki
2021-12-11  0:08 Conrad Kostecki
2021-12-11  0:08 Conrad Kostecki
2021-12-05 21:45 Conrad Kostecki
2021-12-05 21:45 Conrad Kostecki
2021-11-24 22:31 Conrad Kostecki
2021-11-24  8:05 Arthur Zamarin
2021-11-22 18:50 Arthur Zamarin
2021-11-22 18:50 Arthur Zamarin
2021-11-22  5:57 Yixun Lan
2021-11-21 14:41 Conrad Kostecki
2021-11-21 14:41 Conrad Kostecki
2021-11-21 14:41 Conrad Kostecki
2021-11-21 14:41 Conrad Kostecki
2021-07-16  9:51 Joonas Niilola
2021-07-16  9:51 Joonas Niilola
2021-05-14  0:38 Sam James
2021-05-14  0:38 Sam James
2021-04-29 11:43 Joonas Niilola
2021-04-29 11:43 Joonas Niilola
2021-04-29 11:43 Joonas Niilola
2021-03-04 17:42 Joonas Niilola
2020-09-05 10:49 Jeroen Roovers
2020-09-04  8:12 Jeroen Roovers
2020-01-23 10:25 Jeroen Roovers
2020-01-23 10:25 Jeroen Roovers
2020-01-23 10:25 Jeroen Roovers
2019-10-28 10:41 Jeroen Roovers
2019-10-07  3:51 Jeroen Roovers
2018-07-09 16:21 Johannes Huber
2018-07-09 15:14 Mikle Kolyada
2018-06-26 12:30 Johannes Huber
2018-05-23 18:38 Johannes Huber
2018-05-23 18:38 Johannes Huber
2018-05-23 18:38 Johannes Huber
2018-05-23 18:38 Johannes Huber
2017-09-09 12:32 Jeroen Roovers
2017-08-24 20:36 Jeroen Roovers
2017-07-26 20:01 Markus Meier
2017-07-25  4:46 Jeroen Roovers
2017-07-25  4:46 Jeroen Roovers
2016-09-24 10:30 Jeroen Roovers
2016-08-07  6:52 Pacho Ramos
2016-06-06 13:33 Agostino Sarubbo

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=1504960215.89decf31a4c1055df9abfee09242092f6a7eb22e.jer@gentoo \
    --to=jer@gentoo.org \
    --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