You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
6 years ago
|
inherit toolchain-funcs
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="A small utility for creating backups on DV tapes"
|
||
13 years ago
|
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() {
|
||
6 years ago
|
default
|
||
|
|
||
13 years ago
|
local i
|
||
|
|
||
6 years ago
|
eapply "${FILESDIR}/${P}-gcc4.diff"
|
||
13 years ago
|
|
||
|
# fix Makefile to respect $LDFLAGS
|
||
|
sed -i -e 's:gcc \$(CFLAGS):\$(CC) \$(CFLAGS) \$(LDFLAGS):g' \
|
||
6 years ago
|
-e 's:^\(CFLAGS=\):#\1:g' Makefile || die "sed failed"
|
||
13 years ago
|
|
||
|
# 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() {
|
||
6 years ago
|
emake CC="$(tc-getCC)" dvbackup
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin dvbackup
|
||
|
insinto /usr/share/${PN}
|
||
|
doins underrun-ntsc.dv underrun-pal.dv
|
||
6 years ago
|
dodoc AUTHORS dvbackup.html ChangeLog ReleaseNotes
|
||
13 years ago
|
}
|