Skip to content

Commit

Permalink
app-cdr/dvdisaster: Cleanup ebuild (#653788 by Daniel Kenzelmann)
Browse files Browse the repository at this point in the history
Signed-off-by: Pacho Ramos <[email protected]>
Package-Manager: Portage-2.3.50, Repoman-2.3.11
  • Loading branch information
pacho2 committed Sep 30, 2018
1 parent 66a4779 commit 7825bb5
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions app-cdr/dvdisaster/dvdisaster-0.79.5.ebuild
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils gnome2-utils toolchain-funcs
EAPI=6
inherit desktop gnome2-utils toolchain-funcs

DESCRIPTION="Tool for creating error correction data (ecc) for optical media (DVD, CD, BD)"
HOMEPAGE="http://dvdisaster.net/"
Expand All @@ -19,14 +19,17 @@ for dvdi_lang in ${dvdi_langs}; do
done
unset dvdi_lang

RDEPEND=">=dev-libs/glib-2.32
RDEPEND="
>=dev-libs/glib-2.32:2
nls? ( virtual/libintl )
>=x11-libs/gtk+-2.6:2
x11-libs/gdk-pixbuf"
x11-libs/gdk-pixbuf
"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
virtual/os-headers
virtual/pkgconfig"
virtual/pkgconfig
"

src_configure() {
./configure \
Expand All @@ -46,8 +49,7 @@ src_compile() {
}

src_install() {
emake install
dodoc CHANGELOG CREDITS.en README* TODO *HOWTO
DOCS="CHANGELOG CREDITS.en README* TODO *HOWTO" default

newicon contrib/${PN}48.png ${PN}.png
make_desktop_entry ${PN} ${PN} ${PN} 'System;Utility'
Expand All @@ -64,12 +66,11 @@ src_install() {
use l10n_${dvdi_lang} || rm -rf \
${dest}/doc/${PF}/${dvdi_lang/-/_} \
${dest}/doc/${PF}/CREDITS.${dvdi_lang/-/_} \
${dest}/man/${dvdi_lang/-/_}
${dest}/man/${dvdi_lang/-/_} || die
done

rm -f "${D}"usr/bin/*-uninstall.sh
rm -f "${D}"usr/bin/*-uninstall.sh || die
}

pkg_preinst() { gnome2_icon_savelist; }
pkg_postinst() { gnome2_icon_cache_update; }
pkg_postrm() { gnome2_icon_cache_update; }

0 comments on commit 7825bb5

Please sign in to comment.