First commit of this personal photo manager written using mono for the gnome desktop
authorJoe McCann <joem@gentoo.org>
Sun, 27 Nov 2005 00:42:31 +0000 (00:42 +0000)
committerJoe McCann <joem@gentoo.org>
Sun, 27 Nov 2005 00:42:31 +0000 (00:42 +0000)
Package-Manager: portage-2.0.53_rc7

media-gfx/f-spot/ChangeLog [new file with mode: 0644]
media-gfx/f-spot/Manifest [new file with mode: 0644]
media-gfx/f-spot/f-spot-0.1.3.ebuild [new file with mode: 0644]
media-gfx/f-spot/files/digest-f-spot-0.1.3 [new file with mode: 0644]
media-gfx/f-spot/files/f-spot-0.1.3-mono-1.1.10.patch [new file with mode: 0644]
media-gfx/f-spot/metadata.xml [new file with mode: 0644]

diff --git a/media-gfx/f-spot/ChangeLog b/media-gfx/f-spot/ChangeLog
new file mode 100644 (file)
index 0000000..a283795
--- /dev/null
@@ -0,0 +1,12 @@
+# ChangeLog for media-gfx/f-spot
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/f-spot/ChangeLog,v 1.1 2005/11/27 00:42:30 joem Exp $
+
+*f-spot-0.1.3 (27 Nov 2005)
+
+  27 Nov 2005; Joe McCann <joem@gentoo.org>
+  +files/f-spot-0.1.3-mono-1.1.10.patch, +metadata.xml,
+  +f-spot-0.1.3.ebuild:
+  First commit of this personal photo manager written using mono for the gnome
+  desktop
+
diff --git a/media-gfx/f-spot/Manifest b/media-gfx/f-spot/Manifest
new file mode 100644 (file)
index 0000000..9d202ef
--- /dev/null
@@ -0,0 +1,5 @@
+MD5 c95f55e04f579bd0987e78b409aa8d43 ChangeLog 446
+MD5 f4e138270cea8f9964e6dadcc8086d5d f-spot-0.1.3.ebuild 1864
+MD5 c3b0376f4a53f207fb7db5273217a7ab files/digest-f-spot-0.1.3 65
+MD5 bfd52f4c8afee309b5daac526ebd0d1f files/f-spot-0.1.3-mono-1.1.10.patch 1955
+MD5 e48cb5f8090572cbfd7288a0aa429618 metadata.xml 337
diff --git a/media-gfx/f-spot/f-spot-0.1.3.ebuild b/media-gfx/f-spot/f-spot-0.1.3.ebuild
new file mode 100644 (file)
index 0000000..50c2307
--- /dev/null
@@ -0,0 +1,69 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/f-spot/f-spot-0.1.3.ebuild,v 1.1 2005/11/27 00:42:30 joem Exp $
+
+inherit gnome2 mono eutils
+
+DESCRIPTION="Personal photo management application for the gnome desktop"
+HOMEPAGE="http://f-spot.org"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/mono-1.1.7
+       >=sys-apps/dbus-0.30
+       >=dev-libs/glib-2
+       >=x11-libs/gtk+-2.4
+       >=dev-dotnet/gtk-sharp-2.3
+       >=dev-dotnet/gtkhtml-sharp-2.3
+       >=dev-dotnet/gconf-sharp-2.3
+       >=dev-dotnet/glade-sharp-2.3
+       >=dev-dotnet/gnomevfs-sharp-2.3
+       >=gnome-base/libgnome-2.2
+       >=gnome-base/libgnomeui-2.2
+       >=media-libs/libexif-0.6
+       <media-libs/libexif-0.7.0
+       >=media-libs/libgphoto2-2.1.4
+       >=media-libs/lcms-1.14
+       media-libs/jpeg
+       =dev-db/sqlite-2.8*"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig
+       >=dev-util/intltool-0.29"
+
+USE_DESTDIR="1"
+DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README"
+
+pkg_setup()
+{
+       if ! built_with_use sys-apps/dbus mono ; then
+               echo
+               eerror "In order to compile f-spot, you need to have sys-apps/dbus emerged"
+               eerror "with 'mono' in your USE flags. Please add that flag, re-emerge"
+               eerror "dbus, and then emerge f-spot."
+               die "sys-apps/dbus is missing the .NET binding."
+       fi
+}
+
+src_unpack()
+{
+       unpack ${A}
+       cd ${S}
+
+       # Gentoo uses older EXIF so name for now
+       sed -i -e 's/EXIF_SOVERSION=12/EXIF_SOVERSION=10/' configure.in
+
+       #older versions put headers in wrong spot, see #100269
+       if has_version "<=media-libs/lcms-1.13-r1" || has_version "=media-libs/lcms-1.14"; then
+               sed -i "s:lcms.h:lcms/lcms.h:" ${S}/configure.in || die "sed failed"
+               sed -i "s:lcms.h:lcms/lcms.h:" ${S}/libeog/image-view.c || die "sed failed"
+       fi
+
+       #Fix for people using >=mono-1.1.10
+       epatch ${FILESDIR}/${P}-mono-1.1.10.patch
+
+       autoconf || die "autoconf failed"
+}
+
diff --git a/media-gfx/f-spot/files/digest-f-spot-0.1.3 b/media-gfx/f-spot/files/digest-f-spot-0.1.3
new file mode 100644 (file)
index 0000000..a2bf11f
--- /dev/null
@@ -0,0 +1 @@
+MD5 3c08f01ca24ae2847f11bf47db878c29 f-spot-0.1.3.tar.bz2 736561
diff --git a/media-gfx/f-spot/files/f-spot-0.1.3-mono-1.1.10.patch b/media-gfx/f-spot/files/f-spot-0.1.3-mono-1.1.10.patch
new file mode 100644 (file)
index 0000000..96b08bb
--- /dev/null
@@ -0,0 +1,68 @@
+===================================================================
+RCS file: /cvs/gnome/f-spot/src/BitConverter.cs,v
+retrieving revision 1.3
+retrieving revision 1.4
+diff -u -r1.3 -r1.4
+--- src/BitConverter.cs        2005/10/13 19:57:22     1.3
++++ src/BitConverter.cs        2005/10/25 17:54:27     1.4
+@@ -1,3 +1,6 @@
++using System;
++using System.Runtime.InteropServices;
++
+ namespace FSpot {
+       public class BitConverter {
+               public static uint Swap (uint val, bool little) 
+@@ -66,6 +69,17 @@
+                       return Swap (val, little);
+               }
+ 
++              public static float ToSingle (byte [] data, int position, bool little)
++              {
++                      float retval;
++                      unsafe {
++                              uint * ptr;
++                              ptr = (uint *)&retval;
++                              *ptr = ToUInt32 (data, position, little);
++                      }
++                      return retval;
++              }
++
+               public static int ToInt32 (byte [] data, int position, bool little)
+               {
+                       return unchecked ((int) ToUInt32 (data, position, little));
+===================================================================
+RCS file: /cvs/gnome/f-spot/src/Ciff.cs,v
+retrieving revision 1.8
+retrieving revision 1.9
+diff -u -r1.8 -r1.9
+--- src/Ciff.cs        2005/09/25 08:37:34     1.8
++++ src/Ciff.cs        2005/10/25 17:54:27     1.9
+@@ -1,3 +1,5 @@
++using System;
++
+ namespace FSpot.Ciff {
+       public enum Tag {
+               // Byte valuesad
+@@ -83,6 +85,8 @@
+               ExifInformation = 0x300b
+       }
+ 
++      
++
+       public struct ImageSpec {
+               public uint ImageWidth;  // Number of horizontal pixels
+               public uint ImageHeight; // Number of vertical pixels
+@@ -96,10 +100,8 @@
+               {
+                       ImageWidth = BitConverter.ToUInt32 (data, 0, little);
+                       ImageHeight = BitConverter.ToUInt32 (data, 4, little);
+-                      unsafe {
+-                              float *p = &PixelAspectRatio;
+-                              *((uint *)p) = BitConverter.ToUInt32 (data, 8, little);
+-                      }
++
++                      PixelAspectRatio = BitConverter.ToSingle (data, 8, little);
+                       RotationAngle = BitConverter.ToInt32 (data, 12, little);
+                       ComponentBitDepth = BitConverter.ToUInt32 (data, 16, little);
+                       ColorBitDepth = BitConverter.ToUInt32 (data, 20, little);
+
diff --git a/media-gfx/f-spot/metadata.xml b/media-gfx/f-spot/metadata.xml
new file mode 100644 (file)
index 0000000..34f8ffa
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>joem@gentoo.org</email>
+               <name>Joe McCann</name>
+       </maintainer>
+       <longdescription lang="en">
+               Personal photo manager for gnome 2 desktop that uses mono
+       </longdescription>
+</pkgmetadata>
+