summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-07-26 22:29:42 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-07-26 22:30:26 +0300
commitd811ce8fb18c2065687b305f252d54f06aac2bd6 (patch)
tree163ddad2bebba0ef32e61cf2fb207305044718e9 /media-video/dvbackup
parentgames-roguelike/mangband: Maintainer retired (diff)
downloadgentoo-d811ce8fb18c2065687b305f252d54f06aac2bd6.tar.gz
gentoo-d811ce8fb18c2065687b305f252d54f06aac2bd6.tar.bz2
gentoo-d811ce8fb18c2065687b305f252d54f06aac2bd6.zip
media-video/dvbackup: revision bump (EAPI=7)
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'media-video/dvbackup')
-rw-r--r--media-video/dvbackup/dvbackup-0.0.4-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/media-video/dvbackup/dvbackup-0.0.4-r2.ebuild b/media-video/dvbackup/dvbackup-0.0.4-r2.ebuild
new file mode 100644
index 000000000000..a053819d1635
--- /dev/null
+++ b/media-video/dvbackup/dvbackup-0.0.4-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="A small utility for creating backups on DV tapes"
+HOMEPAGE="http://dvbackup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dvbackup/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="sys-libs/glibc
+ dev-libs/popt
+ sys-libs/zlib"
+
+RDEPEND="${DEPEND}
+ media-libs/libdv"
+
+src_prepare() {
+ default
+
+ local i
+
+ eapply "${FILESDIR}/${P}-gcc4.diff"
+
+ # fix Makefile to respect $LDFLAGS
+ sed -i -e 's:gcc \$(CFLAGS):\$(CC) \$(CFLAGS) \$(LDFLAGS):g' \
+ -e 's:^\(CFLAGS=\):#\1:g' Makefile || die "sed failed"
+
+ # convert LATIN1 docs to UTF-8
+ for i in ChangeLog ReleaseNotes; do
+ if [ -f "${i}" ]; then
+ echo ">>> Converting ${i} to UTF-8"
+ iconv -f LATIN1 -t UTF8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
+ fi
+ done
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" dvbackup
+}
+
+src_install() {
+ dobin dvbackup
+ insinto /usr/share/${PN}
+ doins underrun-ntsc.dv underrun-pal.dv
+ dodoc AUTHORS dvbackup.html ChangeLog ReleaseNotes
+}