summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-12-28 15:47:49 +0100
committerDavid Seifert <soap@gentoo.org>2020-12-28 15:47:49 +0100
commit8c0e7f880aeece8d1a2a1129910dc7a9fba6d521 (patch)
tree77b552b594e0fd03aee4396acbb4b970178a1852 /app-cdr/dvdisaster
parentapp-backup/amanda: Cleanup obsolete versions (diff)
downloadgentoo-8c0e7f880aeece8d1a2a1129910dc7a9fba6d521.tar.gz
gentoo-8c0e7f880aeece8d1a2a1129910dc7a9fba6d521.tar.bz2
gentoo-8c0e7f880aeece8d1a2a1129910dc7a9fba6d521.zip
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>
Diffstat (limited to 'app-cdr/dvdisaster')
-rw-r--r--app-cdr/dvdisaster/dvdisaster-0.79.5.ebuild49
-rw-r--r--app-cdr/dvdisaster/files/dvdisaster-0.79.5-fno-common.patch24
2 files changed, 49 insertions, 24 deletions
diff --git a/app-cdr/dvdisaster/dvdisaster-0.79.5.ebuild b/app-cdr/dvdisaster/dvdisaster-0.79.5.ebuild
index 1cdfebed6125..da320cf5b6a4 100644
--- a/app-cdr/dvdisaster/dvdisaster-0.79.5.ebuild
+++ b/app-cdr/dvdisaster/dvdisaster-0.79.5.ebuild
@@ -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; }
diff --git a/app-cdr/dvdisaster/files/dvdisaster-0.79.5-fno-common.patch b/app-cdr/dvdisaster/files/dvdisaster-0.79.5-fno-common.patch
new file mode 100644
index 000000000000..c4c86138865e
--- /dev/null
+++ b/app-cdr/dvdisaster/files/dvdisaster-0.79.5-fno-common.patch
@@ -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