dvbackup-0.0.4-r1.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. inherit eutils
  5. DESCRIPTION="A small utility for creating backups on DV tapes"
  6. HOMEPAGE="http://dvbackup.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/dvbackup/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE=""
  12. DEPEND="sys-libs/glibc
  13. dev-libs/popt
  14. sys-libs/zlib"
  15. RDEPEND="${DEPEND}
  16. media-libs/libdv"
  17. src_prepare() {
  18. local i
  19. epatch "${FILESDIR}/${P}-gcc4.diff"
  20. # fix Makefile to respect $LDFLAGS
  21. sed -i -e 's:gcc \$(CFLAGS):\$(CC) \$(CFLAGS) \$(LDFLAGS):g' \
  22. -e 's:^\(CFLAGS=\):#\1:g' Makefile
  23. # convert LATIN1 docs to UTF-8
  24. for i in ChangeLog ReleaseNotes; do
  25. if [ -f "${i}" ]; then
  26. echo ">>> Converting ${i} to UTF-8"
  27. iconv -f LATIN1 -t UTF8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
  28. fi
  29. done
  30. }
  31. src_compile() {
  32. emake dvbackup || die "emake failed"
  33. }
  34. src_install() {
  35. dobin dvbackup
  36. insinto /usr/share/${PN}
  37. doins underrun-ntsc.dv underrun-pal.dv
  38. dodoc AUTHORS ChangeLog ReleaseNotes
  39. dohtml dvbackup.html
  40. }