x11-misc/parcellite: update EAPI 5 -> 8

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2021-10-16 19:37:51 +02:00
parent c790c69185
commit 96d5ed7743
2 changed files with 20 additions and 21 deletions

View File

@@ -0,0 +1,9 @@
--- a/data/parcellite.desktop.in
+++ b/data/parcellite.desktop.in
@@ -6,5 +6,5 @@
Exec=parcellite
Terminal=false
Type=Application
-Categories=GTK;GNOME;Application;Utility;
+Categories=GTK;GNOME;Utility;
OnlyShowIn=GNOME;KDE;LXDE;MATE;Razor;ROX;TDE;Unity;XFCE;Old;

View File

@@ -1,51 +1,41 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EAPI=8
inherit autotools eutils xdg-utils
inherit autotools xdg
MY_P=${PN}-${PV/_}
DESCRIPTION="A lightweight GTK+ based clipboard manager"
HOMEPAGE="http://parcellite.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="nls"
RDEPEND=">=dev-libs/glib-2.14
>=x11-libs/gtk+-2.10:2
RDEPEND="
dev-libs/glib:2
x11-libs/gtk+:2
x11-misc/xdotool"
DEPEND="${RDEPEND}
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
nls? (
dev-util/intltool
sys-devel/gettext
)"
S=${WORKDIR}/${MY_P}
PATCHES=( "${FILESDIR}"/${P}-desktop-QA.patch )
src_prepare() {
sed -i data/${PN}.desktop.in -e 's:Application;::g' || die
sed -i -e '/^ALL_LINGUAS=/d' configure.ac || die
strip-linguas -i po/
export ALL_LINGUAS="${LINGUAS}"
default
eautoreconf
}
src_configure() {
econf $(use_enable nls)
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}