diff options
Diffstat (limited to 'x11-misc/dunst/dunst-9999.ebuild')
-rw-r--r-- | x11-misc/dunst/dunst-9999.ebuild | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-9999.ebuild index f341b6af6627..b4ea0aaabb02 100644 --- a/x11-misc/dunst/dunst-9999.ebuild +++ b/x11-misc/dunst/dunst-9999.ebuild @@ -1,16 +1,24 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit git-r3 toolchain-funcs +inherit systemd toolchain-funcs DESCRIPTION="Customizable and lightweight notification-daemon" -HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst" -EGIT_REPO_URI="https://github.com/${PN}-project/${PN}" +HOMEPAGE="https://dunst-project.org/" + +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 LICENSE="BSD" SLOT="0" -KEYWORDS="" +IUSE="test wayland" +RESTRICT="!test? ( test )" DEPEND=" dev-libs/glib:2 @@ -23,28 +31,29 @@ DEPEND=" x11-libs/libXrandr x11-libs/libnotify x11-libs/pango[X] + wayland? ( dev-libs/wayland ) " +RDEPEND="${DEPEND}" BDEPEND=" dev-lang/perl virtual/pkgconfig -" -RDEPEND=" - ${DEPEND} + wayland? ( dev-libs/wayland-protocols ) " -src_prepare() { - sed -i -e "/^CFLAGS/ { s:-g::;s:-O.:: }" config.mk || die - - default -} +PATCHES=( "${FILESDIR}"/${PN}-1.6.1-no-Os.patch ) src_configure() { tc-export CC PKG_CONFIG default } -src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install +src_compile() { + emake WAYLAND=$(usex wayland 1 0) SYSTEMD=0 + sed -e "s|##PREFIX##|${EPREFIX}/usr|" \ + -i dunst.systemd.service.in > dunst.service +} - dodoc AUTHORS CHANGELOG.md README.md RELEASE_NOTES +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + systemd_dounit dunst.service } |