summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2005-10-02 19:14:39 +0000
committerMichael Januszewski <spock@gentoo.org>2005-10-02 19:14:39 +0000
commitf71eac4ab251e0b4f0765769ce1ca497f1206000 (patch)
tree0dd970535448c42653c75b25c08ccf481e750794 /media-gfx
parentMark 2.0-r1 stable on alpha (diff)
downloadgentoo-2-f71eac4ab251e0b4f0765769ce1ca497f1206000.tar.gz
gentoo-2-f71eac4ab251e0b4f0765769ce1ca497f1206000.tar.bz2
gentoo-2-f71eac4ab251e0b4f0765769ce1ca497f1206000.zip
Added libexif patches submitted in bug #87203.
(Portage version: 1.589-cvs)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/fbi/ChangeLog8
-rw-r--r--media-gfx/fbi/fbi-1.31-r2.ebuild45
-rw-r--r--media-gfx/fbi/files/digest-fbi-1.31-r21
-rw-r--r--media-gfx/fbi/files/libexif-0.6.patch45
4 files changed, 98 insertions, 1 deletions
diff --git a/media-gfx/fbi/ChangeLog b/media-gfx/fbi/ChangeLog
index 26a2cb96bcb1..4cca629c6655 100644
--- a/media-gfx/fbi/ChangeLog
+++ b/media-gfx/fbi/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/fbi
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/fbi/ChangeLog,v 1.33 2005/07/05 18:51:04 killerfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/fbi/ChangeLog,v 1.34 2005/10/02 19:14:39 spock Exp $
+
+*fbi-1.31-r2 (02 Oct 2005)
+
+ 02 Oct 2005; Michał Januszewski <spock@gentoo.org>
+ +files/libexif-0.6.patch, +fbi-1.31-r2.ebuild:
+ Added libexif patches submitted in bug #87203. Thanks!
05 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org> fbi-1.31-r1.ebuild:
Stable on hppa.
diff --git a/media-gfx/fbi/fbi-1.31-r2.ebuild b/media-gfx/fbi/fbi-1.31-r2.ebuild
new file mode 100644
index 000000000000..eb1b5f40b141
--- /dev/null
+++ b/media-gfx/fbi/fbi-1.31-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/fbi/fbi-1.31-r2.ebuild,v 1.1 2005/10/02 19:14:39 spock Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="A image viewer for the Linux framebuffer console."
+HOMEPAGE="http://linux.bytesex.org/fbida/"
+SRC_URI="http://dl.bytesex.org/releases/fbida/${P/-/_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="png jpeg gif tiff curl lirc X"
+
+DEPEND="jpeg? ( >=media-libs/jpeg-6b )
+ png? ( media-libs/libpng )
+ gif? ( media-libs/giflib )
+ tiff? ( media-libs/tiff )
+ curl? ( net-misc/curl )
+ lirc? ( app-misc/lirc )
+ X? ( virtual/x11 )
+ media-libs/libexif
+ !media-gfx/fbida"
+
+src_unpack() {
+ unpack ${A}
+ sed -e 's/DGifOpenFileName,ungif/DGifOpenFileName,gif/' \
+ -e 's/-lungif/-lgif/' -i ${S}/GNUmakefile
+ sed -i -e 's/ps\*.jpeg/ps*.tiff/g' ${S}/fbgs
+ has_version ">=media-libs/libexif-0.6.10" && epatch ${FILESDIR}/libexif-0.6.patch
+}
+
+src_compile() {
+ export CFLAGS="${CFLAGS}"
+ make CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ make \
+ prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ install || die
+ dodoc README
+}
diff --git a/media-gfx/fbi/files/digest-fbi-1.31-r2 b/media-gfx/fbi/files/digest-fbi-1.31-r2
new file mode 100644
index 000000000000..d0803f0384ba
--- /dev/null
+++ b/media-gfx/fbi/files/digest-fbi-1.31-r2
@@ -0,0 +1 @@
+MD5 0f6c0423098c6a9b28a464df9fab7f39 fbi_1.31.tar.gz 92194
diff --git a/media-gfx/fbi/files/libexif-0.6.patch b/media-gfx/fbi/files/libexif-0.6.patch
new file mode 100644
index 000000000000..1bb37766d103
--- /dev/null
+++ b/media-gfx/fbi/files/libexif-0.6.patch
@@ -0,0 +1,45 @@
+diff -rNu fbi-1.31.orig/exiftran.c fbi-1.31/exiftran.c
+--- fbi-1.31.orig/exiftran.c 2004-02-22 20:27:40.000000000 +0800
++++ fbi-1.31/exiftran.c 2005-03-30 10:43:37.969549144 +0800
+@@ -22,9 +22,10 @@
+ #ifdef HAVE_LIBEXIF
+ static void dump_exif(FILE *out, ExifData *ed)
+ {
+- const char *title, *value;
++ const char *title;
+ ExifEntry *ee;
+ int tag,i;
++ char value[1024];
+
+ for (i = 0; i < EXIF_IFD_COUNT; i++) {
+ fprintf(out," ifd %s\n", exif_ifd_get_name (i));
+@@ -35,7 +36,7 @@
+ ee = exif_content_get_entry (ed->ifd[i], tag);
+ if (NULL == ee)
+ continue;
+- value = exif_entry_get_value(ee);
++ exif_entry_get_value(ee, value, sizeof(value));
+ fprintf(out," 0x%04x %-30s %s\n", tag, title, value);
+ }
+ }
+diff -rNu fbi-1.31.orig/fbi.c fbi-1.31/fbi.c
+--- fbi-1.31.orig/fbi.c 2004-02-22 20:24:29.000000000 +0800
++++ fbi-1.31/fbi.c 2005-03-30 10:47:50.785115336 +0800
+@@ -398,6 +398,7 @@
+ l1 = 0;
+ l2 = 0;
+ for (tag = 0; tag < ARRAY_SIZE(tags); tag++) {
++ char temp_value[1024];
+ ee = exif_content_get_entry (ed->ifd[EXIF_IFD_0], tags[tag]);
+ if (NULL == ee)
+ ee = exif_content_get_entry (ed->ifd[EXIF_IFD_EXIF], tags[tag]);
+@@ -407,7 +408,8 @@
+ continue;
+ }
+ title[tag] = exif_tag_get_title(tags[tag]);
+- value[tag] = strdup(exif_entry_get_value(ee));
++ exif_entry_get_value(ee, temp_value, sizeof(temp_value));
++ value[tag] = strdup(temp_value);
+ len = strlen(title[tag]);
+ if (l1 < len)
+ l1 = len;