diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2010-07-29 16:14:09 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2010-07-29 16:14:09 +0000 |
commit | 79a7fbb0c7c4cbc70fbd9e1f33709ea77794a433 (patch) | |
tree | 7c9948eb15e97820f03fe2fa1fd496f911510972 /media-video/dvbackup | |
parent | ppc64 stable wrt #327145 (diff) | |
download | gentoo-2-79a7fbb0c7c4cbc70fbd9e1f33709ea77794a433.tar.gz gentoo-2-79a7fbb0c7c4cbc70fbd9e1f33709ea77794a433.tar.bz2 gentoo-2-79a7fbb0c7c4cbc70fbd9e1f33709ea77794a433.zip |
major ebuild cleanup. added amd64 keyword, fixed GCC4 compilation, respect LDFLAGS, added missing dependencies, removed dvconnect (is already included in media-libs/libdv) and install underrun-images under /usr/share/dvbackup.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-video/dvbackup')
-rw-r--r-- | media-video/dvbackup/ChangeLog | 13 | ||||
-rw-r--r-- | media-video/dvbackup/dvbackup-0.0.4-r1.ebuild | 54 | ||||
-rw-r--r-- | media-video/dvbackup/files/dvbackup-0.0.4-gcc4.diff | 11 |
3 files changed, 76 insertions, 2 deletions
diff --git a/media-video/dvbackup/ChangeLog b/media-video/dvbackup/ChangeLog index 07385093e01d..13b8ed7a5054 100644 --- a/media-video/dvbackup/ChangeLog +++ b/media-video/dvbackup/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for media-video/dvbackup -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/dvbackup/ChangeLog,v 1.5 2007/02/22 01:44:57 peper Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/dvbackup/ChangeLog,v 1.6 2010/07/29 16:14:08 sbriesen Exp $ + +*dvbackup-0.0.4-r1 (29 Jul 2010) + + 29 Jul 2010; Stefan Briesenick <sbriesen@gentoo.org> + +dvbackup-0.0.4-r1.ebuild, +files/dvbackup-0.0.4-gcc4.diff: + major ebuild cleanup. added amd64 keyword, fixed GCC4 compilation, respect + LDFLAGS, added missing dependencies, removed dvconnect (is already + included in media-libs/libdv) and install underrun-images under + /usr/share/dvbackup. 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/media-video/dvbackup/dvbackup-0.0.4-r1.ebuild b/media-video/dvbackup/dvbackup-0.0.4-r1.ebuild new file mode 100644 index 000000000000..5ce2963973c9 --- /dev/null +++ b/media-video/dvbackup/dvbackup-0.0.4-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/dvbackup/dvbackup-0.0.4-r1.ebuild,v 1.1 2010/07/29 16:14:08 sbriesen Exp $ + +EAPI="2" + +inherit eutils + +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() { + local i + + epatch "${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 + + # 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 dvbackup || die "emake failed" +} + +src_install() { + dobin dvbackup + insinto /usr/share/${PN} + doins underrun-ntsc.dv underrun-pal.dv + dodoc AUTHORS ChangeLog ReleaseNotes + dohtml dvbackup.html +} + diff --git a/media-video/dvbackup/files/dvbackup-0.0.4-gcc4.diff b/media-video/dvbackup/files/dvbackup-0.0.4-gcc4.diff new file mode 100644 index 000000000000..1ab2c4b07eb8 --- /dev/null +++ b/media-video/dvbackup/files/dvbackup-0.0.4-gcc4.diff @@ -0,0 +1,11 @@ +diff -Naur dvbackup-0.0.4.orig/dvconnect.c dvbackup-0.0.4/dvconnect.c +--- dvbackup-0.0.4.orig/dvconnect.c 2002-03-24 20:27:10.000000000 +0100 ++++ dvbackup-0.0.4/dvconnect.c 2009-11-05 16:16:10.467442012 +0100 +@@ -9,6 +9,7 @@ + + #include <pthread.h> + #include <signal.h> ++#include <string.h> + + #ifdef HAVE_CONFIG_H + #include <config.h> |