public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/dunst/
Date: Sun, 21 Nov 2021 14:41:18 +0000 (UTC)	[thread overview]
Message-ID: <1637505661.4cb2dc2f57bfeb4e955ec6a3cb0e321e7a5004ab.conikost@gentoo> (raw)

commit:     4cb2dc2f57bfeb4e955ec6a3cb0e321e7a5004ab
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 21 14:39:00 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Nov 21 14:41:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cb2dc2f

x11-misc/dunst: update live ebuild

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 x11-misc/dunst/dunst-9999.ebuild | 61 +++++++++++++++++++++++-----------------
 1 file changed, 35 insertions(+), 26 deletions(-)

diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-9999.ebuild
index dbbb4b319428..c26bd529c4b9 100644
--- a/x11-misc/dunst/dunst-9999.ebuild
+++ b/x11-misc/dunst/dunst-9999.ebuild
@@ -1,40 +1,38 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
-inherit systemd toolchain-funcs
+EAPI=8
 
-DESCRIPTION="Customizable and lightweight notification-daemon"
-HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst"
+inherit git-r3 systemd toolchain-funcs
+
+EGIT_REPO_URI="https://github.com/dunst-project/dunst"
 
-if [[ ${PV} == *9999 ]]; then
-	inherit git-r3
-	EGIT_REPO_URI="https://github.com/dunst-project/dunst"
-else
-	SRC_URI="https://github.com/dunst-project/dunst/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="~amd64 ~arm ~x86"
-fi
+DESCRIPTION="Lightweight replacement for common notification daemons"
+HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst"
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="test wayland"
-RESTRICT="!test? ( test )"
+KEYWORDS=""
+IUSE="wayland"
 
 DEPEND="
 	dev-libs/glib:2
 	sys-apps/dbus
 	x11-libs/cairo[X,glib]
-	x11-libs/gdk-pixbuf
+	x11-libs/gdk-pixbuf:2
 	x11-libs/libX11
-	x11-libs/libXScrnSaver
 	x11-libs/libXext
+	x11-libs/libXScrnSaver
 	x11-libs/libXinerama
 	x11-libs/libXrandr
 	x11-libs/libnotify
 	x11-libs/pango[X]
+	x11-misc/xdg-utils
 	wayland? ( dev-libs/wayland )
 "
+
 RDEPEND="${DEPEND}"
+
 BDEPEND="
 	dev-lang/perl
 	virtual/pkgconfig
@@ -44,26 +42,37 @@ BDEPEND="
 src_prepare() {
 	default
 
-	sed -i \
-		-e "/^DEFAULT_CFLAGS/s/-g //" \
-		-e "/^DEFAULT_CFLAGS/s/-Os //" \
-		config.mk \
-		|| die "sed failed"
+	# Respect users CFLAGS
+	sed -e 's/-Os//' -i config.mk || die
+
+	# Use correct path for system unit
+	sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i dunst.systemd.service.in || die
 }
 
 src_configure() {
 	tc-export CC PKG_CONFIG
+
 	default
 }
 
 src_compile() {
-	emake WAYLAND=$(usex wayland 1 0) SYSTEMD=0
-	sed -e "s|##PREFIX##|${EPREFIX}/usr|" \
-		dunst.systemd.service.in > dunst.service || die
+	local myemakeargs=(
+		SYSTEMD="0"
+		WAYLAND="$(usex wayland 1 0)"
+	)
+
+	emake "${myemakeargs[@]}"
 }
 
 src_install() {
-	emake WAYLAND=$(usex wayland 1 0) SYSTEMD=0 \
-		DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
-	systemd_douserunit dunst.service
+	local myemakeargs=(
+		PREFIX="${ED}/usr"
+		SYSCONFDIR="${ED}/etc"
+		SYSTEMD="0"
+		WAYLAND="$(usex wayland 1 0)"
+	)
+
+	emake "${myemakeargs[@]}" install
+
+	systemd_newuserunit dunst.systemd.service.in dunst.service
 }


             reply	other threads:[~2021-11-21 14:41 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-21 14:41 Conrad Kostecki [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-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-09-09 12:30 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=1637505661.4cb2dc2f57bfeb4e955ec6a3cb0e321e7a5004ab.conikost@gentoo \
    --to=conikost@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