mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-cdr/dvdisaster: Port to EAPI 7
Closes: https://bugs.gentoo.org/709520 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
committed by
David Seifert
parent
de823e0f51
commit
8c0e7f880a
@@ -1,12 +1,13 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit desktop gnome2-utils toolchain-funcs
|
||||
EAPI=7
|
||||
|
||||
inherit desktop toolchain-funcs xdg
|
||||
|
||||
DESCRIPTION="Tool for creating error correction data (ecc) for optical media (DVD, CD, BD)"
|
||||
HOMEPAGE="http://dvdisaster.net/"
|
||||
SRC_URI="http://dvdisaster.net/downloads/${PN}-${PV}.tar.bz2"
|
||||
SRC_URI="http://dvdisaster.net/downloads/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
@@ -20,28 +21,31 @@ done
|
||||
unset dvdi_lang
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.32:2
|
||||
nls? ( virtual/libintl )
|
||||
>=x11-libs/gtk+-2.6:2
|
||||
dev-libs/glib:2
|
||||
x11-libs/gdk-pixbuf
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-libs/gtk+:2
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
nls? ( sys-devel/gettext )
|
||||
virtual/os-headers
|
||||
virtual/pkgconfig
|
||||
"
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
|
||||
|
||||
DOCS=( CHANGELOG CREDITS.en README README.MODIFYING TODO TRANSLATION.HOWTO )
|
||||
|
||||
src_configure() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--mandir=/usr/share/man \
|
||||
--docdir=/usr/share/doc \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--docdir="${EPREFIX}"/usr/share/doc \
|
||||
--docsubdir=${PF} \
|
||||
--localedir=/usr/share/locale \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--buildroot="${D}" \
|
||||
--with-nls=$(usex nls) \
|
||||
--with-memdebug=$(usex debug) || die
|
||||
--with-memdebug=$(usex debug) \
|
||||
--with-nls=$(usex nls) || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
@@ -49,7 +53,7 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DOCS="CHANGELOG CREDITS.en README* TODO *HOWTO" default
|
||||
default
|
||||
|
||||
newicon contrib/${PN}48.png ${PN}.png
|
||||
make_desktop_entry ${PN} ${PN} ${PN} 'System;Utility'
|
||||
@@ -59,7 +63,7 @@ src_install() {
|
||||
newicon -s ${res} contrib/${PN}${res}.png ${PN}.png
|
||||
done
|
||||
|
||||
local dest="${D}"usr/share
|
||||
local dest="${ED}"/usr/share
|
||||
|
||||
local dvdi_lang
|
||||
for dvdi_lang in ${dvdi_langs}; do
|
||||
@@ -69,8 +73,5 @@ src_install() {
|
||||
${dest}/man/${dvdi_lang/-/_} || die
|
||||
done
|
||||
|
||||
rm -f "${D}"usr/bin/*-uninstall.sh || die
|
||||
rm ${ED}/usr/bin/*-uninstall.sh || die
|
||||
}
|
||||
|
||||
pkg_postinst() { gnome2_icon_cache_update; }
|
||||
pkg_postrm() { gnome2_icon_cache_update; }
|
||||
|
||||
24
app-cdr/dvdisaster/files/dvdisaster-0.79.5-fno-common.patch
Normal file
24
app-cdr/dvdisaster/files/dvdisaster-0.79.5-fno-common.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
--- a/dvdisaster.h
|
||||
+++ b/dvdisaster.h
|
||||
@@ -425,9 +425,9 @@ typedef struct _CrcBlock
|
||||
*** forward declarations
|
||||
***/
|
||||
|
||||
-struct _RawBuffer *rawbuffer_forward;
|
||||
-struct _DefectiveSectorHeader *dsh_forward;
|
||||
-struct _DeviceHandle *dh_forward;
|
||||
+extern struct _RawBuffer *rawbuffer_forward;
|
||||
+extern struct _DefectiveSectorHeader *dsh_forward;
|
||||
+extern struct _DeviceHandle *dh_forward;
|
||||
|
||||
/***
|
||||
*** bitmap.c
|
||||
@@ -450,7 +450,7 @@ void FreeBitmap(Bitmap*);
|
||||
*** build.h
|
||||
***/
|
||||
|
||||
-int buildCount;
|
||||
+extern int buildCount;
|
||||
|
||||
/***
|
||||
*** cacheprobe.h
|
||||
Reference in New Issue
Block a user