From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-misc/dunst/dunst-1.1.0.ebuild | 67 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 x11-misc/dunst/dunst-1.1.0.ebuild (limited to 'x11-misc/dunst/dunst-1.1.0.ebuild') diff --git a/x11-misc/dunst/dunst-1.1.0.ebuild b/x11-misc/dunst/dunst-1.1.0.ebuild new file mode 100644 index 000000000000..1ce9d2c4edbd --- /dev/null +++ b/x11-misc/dunst/dunst-1.1.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="customizable and lightweight notification-daemon" +HOMEPAGE="http://www.knopwob.org/dunst/" +SRC_URI="http://www.knopwob.org/public/dunst-release/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="dunstify" + +CDEPEND=" + dev-libs/glib:2 + dev-libs/libxdg-basedir + sys-apps/dbus + x11-libs/cairo[X,glib] + x11-libs/gdk-pixbuf + x11-libs/libXScrnSaver + x11-libs/libXft + x11-libs/libXinerama + x11-libs/pango[X] + dunstify? ( x11-libs/libnotify ) +" +DEPEND=" + ${CDEPEND} + dev-lang/perl + virtual/pkgconfig +" +RDEPEND="${CDEPEND}" + +src_prepare() { + sed -i \ + -e '/^CFLAGS/ { s:-g::; s:-O.:: }' \ + -e '/^CPPFLAGS/ s:-D_BSD_SOURCE:-D_DEFAULT_SOURCE:' \ + config.mk || die + + 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= + + use dunstify && emake V= dunstify +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + + if use dunstify; then + dobin dunstify + fi + + dodoc CHANGELOG +} -- cgit v1.2.3