-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
-inherit eutils
+EAPI=6
DESCRIPTION="pidgin-libnotify provides popups for pidgin via a libnotify interface"
HOMEPAGE="http://gaim-libnotify.sourceforge.net/"
DEPEND="${RDEPEND}
virtual/pkgconfig"
+PATCHES=(
+ "${WORKDIR}/debian/patches"
+ "${FILESDIR}/${P}-libnotify-0.7.patch"
+)
+
src_prepare() {
- EPATCH_FORCE=yes EPATCH_SUFFIX=diff epatch "${WORKDIR}"/debian/patches
- epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
- sed -i -e '/CFLAGS/s:-g3::' configure || die
+ default
+ sed -i -e '/CFLAGS/s:-g3::' configure || die "sed failed"
}
src_configure() {
}
src_install() {
- emake DESTDIR="${D}" install || die
- find "${D}" -name '*.la' -exec rm -f {} +
- dodoc AUTHORS ChangeLog NEWS README TODO VERSION || die
+ default
+ find "${D}" -name '*.la' -delete || die "Pruning failed"
}