diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-02-25 12:33:56 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-02-25 12:33:56 +0100 |
commit | d35d2478a433f89ffea14a7f1c1995dcf38d8495 (patch) | |
tree | 22cc9a10a65d36af903146d5ab556cf282b9f3ab /x11-misc/dunst | |
parent | sys-apps/cpuid: add 20220224 (diff) | |
download | gentoo-d35d2478a433f89ffea14a7f1c1995dcf38d8495.tar.gz gentoo-d35d2478a433f89ffea14a7f1c1995dcf38d8495.tar.bz2 gentoo-d35d2478a433f89ffea14a7f1c1995dcf38d8495.zip |
x11-misc/dunst: add 1.8.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'x11-misc/dunst')
-rw-r--r-- | x11-misc/dunst/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/dunst/dunst-1.8.0.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/x11-misc/dunst/Manifest b/x11-misc/dunst/Manifest index 52a62bb405e6..29ad301d4c5e 100644 --- a/x11-misc/dunst/Manifest +++ b/x11-misc/dunst/Manifest @@ -1 +1,2 @@ DIST dunst-1.7.3.tar.gz 4596283 BLAKE2B dff61659b777a92cd2add9b15551a7fa471eb9adda47b31bd48d6b20a34192f3f9e7147a4249047f6993a595d0d0cf9895d9a7cc84f5bbc64972f4e111e924ad SHA512 e8bd8555bd9ea3dc5ae85c2459ad1fa29bbc5d575346381e828fc6efd618db1e87c40b4fceeb89aef83bb7f5df6b246d8a354ce8b13ec549f3452cb32c918d62 +DIST dunst-1.8.0.tar.gz 4603966 BLAKE2B 796cd76f782772cc91af27d797db92f6d3a35511d8a907e060a6363604a4b58a52f1cfc755d60a158e57ccb8b612ad119c36e8bbe960d354eed59acab93c0fde SHA512 b8e7f0884bb66aee8627858f667ef4db31664b07f7d7ede27c37d88fff6d7f47c62739d07fe7ab26628f95a13b13efa7704ea318dea4d0bcf0193a3fba6124bd diff --git a/x11-misc/dunst/dunst-1.8.0.ebuild b/x11-misc/dunst/dunst-1.8.0.ebuild new file mode 100644 index 000000000000..95b0a0bf7fb1 --- /dev/null +++ b/x11-misc/dunst/dunst-1.8.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd toolchain-funcs + +DESCRIPTION="Lightweight replacement for common notification daemons" +HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst" +SRC_URI="https://github.com/dunst-project/dunst/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="wayland" + +DEPEND=" + dev-libs/glib:2 + sys-apps/dbus + x11-libs/cairo[X,glib] + x11-libs/gdk-pixbuf:2 + x11-libs/libX11 + 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 + wayland? ( dev-libs/wayland-protocols ) +" + +src_prepare() { + default + + # Respect users CFLAGS + sed -e 's/-Os//' -i config.mk || die + + # Use correct path for dbus and system unit + sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i dunst.systemd.service.in || die + sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i org.knopwob.dunst.service.in || die +} + +src_configure() { + tc-export CC PKG_CONFIG + + default +} + +src_compile() { + local myemakeargs=( + SYSTEMD="0" + WAYLAND="$(usex wayland 1 0)" + ) + + emake "${myemakeargs[@]}" +} + +src_install() { + 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 +} |