Fix lambda used in tags reducediff -r1.70 -r1.71 pkgsrc/graphics/f-spot/Makefile
(kefren)
@@ -1,74 +1,74 @@ | @@ -1,74 +1,74 @@ | |||
1 | # $NetBSD: Makefile,v 1.70 2015/05/23 10:33:01 kefren Exp $ | 1 | # $NetBSD: Makefile,v 1.71 2015/05/24 06:50:14 kefren Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= f-spot-0.8.2 | 4 | DISTNAME= f-spot-0.8.2 | |
5 | PKGREVISION= 30 | 5 | PKGREVISION= 31 | |
6 | CATEGORIES= graphics | 6 | CATEGORIES= graphics | |
7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/f-spot/0.8/} | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/f-spot/0.8/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://f-spot.org/ | 11 | HOMEPAGE= http://f-spot.org/ | |
12 | COMMENT= Full-featured personal photo management application | 12 | COMMENT= Full-featured personal photo management application | |
13 | 13 | |||
14 | GNU_CONFIGURE= yes | 14 | GNU_CONFIGURE= yes | |
15 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
16 | USE_TOOLS+= gmake intltool pkg-config bash:run msgfmt | 16 | USE_TOOLS+= gmake intltool pkg-config bash:run msgfmt | |
17 | 17 | |||
18 | MAKE_JOBS_SAFE= no | 18 | MAKE_JOBS_SAFE= no | |
19 | 19 | |||
20 | #.include "../../mk/bsd.prefs.mk" | 20 | #.include "../../mk/bsd.prefs.mk" | |
21 | #.for platform in ${LP64PLATFORMS} | 21 | #.for platform in ${LP64PLATFORMS} | |
22 | #. if ${MACHINE_PLATFORM:M${platform}} | 22 | #. if ${MACHINE_PLATFORM:M${platform}} | |
23 | #CONFIGURE_ENV+= EXTRACSDEFINES=-define:LONG_IS_64BITS | 23 | #CONFIGURE_ENV+= EXTRACSDEFINES=-define:LONG_IS_64BITS | |
24 | #. endif | 24 | #. endif | |
25 | #.endfor | 25 | #.endfor | |
26 | 26 | |||
27 | PKGCONFIG_OVERRIDE+= f-spot.pc.in | 27 | PKGCONFIG_OVERRIDE+= f-spot.pc.in | |
28 | 28 | |||
29 | REPLACE_BASH+= icon-theme-installer | 29 | REPLACE_BASH+= icon-theme-installer | |
30 | REPLACE_BASH+= src/Clients/MainApp/f-spot.in | 30 | REPLACE_BASH+= src/Clients/MainApp/f-spot.in | |
31 | REPLACE_BASH+= tools/f-spot-import | 31 | REPLACE_BASH+= tools/f-spot-import | |
32 | 32 | |||
33 | SUBST_CLASSES+= fix-x11 | 33 | SUBST_CLASSES+= fix-x11 | |
34 | SUBST_STAGE.fix-x11= post-patch | 34 | SUBST_STAGE.fix-x11= post-patch | |
35 | SUBST_MESSAGE.fix-x11= Fixing libX11 references | 35 | SUBST_MESSAGE.fix-x11= Fixing libX11 references | |
36 | SUBST_FILES.fix-x11= src/Core/FSpot.Utils/FSpot.Utils.dll.config.in | 36 | SUBST_FILES.fix-x11= src/Core/FSpot.Utils/FSpot.Utils.dll.config.in | |
37 | SUBST_FILES.fix-x11+= src/Core/FSpot.Utils/FSpot.Utils.dll.config | 37 | SUBST_FILES.fix-x11+= src/Core/FSpot.Utils/FSpot.Utils.dll.config | |
38 | SUBST_FILES.fix-x11+= build/DllMapVerifier.cs | 38 | SUBST_FILES.fix-x11+= build/DllMapVerifier.cs | |
39 | SUBST_FILES.fix-x11+= lib/Hyena/build/DllMapVerifier.cs | 39 | SUBST_FILES.fix-x11+= lib/Hyena/build/DllMapVerifier.cs | |
40 | SUBST_SED.fix-x11= -e 's,libX11.so.6,${X11BASE}/lib/libX11.so,' | 40 | SUBST_SED.fix-x11= -e 's,libX11.so.6,${X11BASE}/lib/libX11.so,' | |
41 | 41 | |||
42 | SUBST_CLASSES+= fix-mcs | 42 | SUBST_CLASSES+= fix-mcs | |
43 | SUBST_STAGE.fix-mcs= post-patch | 43 | SUBST_STAGE.fix-mcs= post-patch | |
44 | SUBST_MESSAGE.fix-mcs= Fix compiler name | 44 | SUBST_MESSAGE.fix-mcs= Fix compiler name | |
45 | SUBST_FILES.fix-mcs= configure | 45 | SUBST_FILES.fix-mcs= configure | |
46 | SUBST_SED.fix-mcs= -e 's,gmcs,mcs,' | 46 | SUBST_SED.fix-mcs= -e 's,gmcs,mcs,' | |
47 | 47 | |||
48 | GCONF_SCHEMAS= f-spot.schemas | 48 | GCONF_SCHEMAS= f-spot.schemas | |
49 | 49 | |||
50 | .include "../../devel/GConf/schemas.mk" | 50 | .include "../../devel/GConf/schemas.mk" | |
51 | .include "../../databases/sqlite3/buildlink3.mk" | 51 | .include "../../databases/sqlite3/buildlink3.mk" | |
52 | .include "../../devel/libgnome/buildlink3.mk" | 52 | .include "../../devel/libgnome/buildlink3.mk" | |
53 | .include "../../devel/libgnomeui/buildlink3.mk" | 53 | .include "../../devel/libgnomeui/buildlink3.mk" | |
54 | .include "../../devel/libgphoto2/buildlink3.mk" | 54 | .include "../../devel/libgphoto2/buildlink3.mk" | |
55 | .include "../../graphics/MesaLib/buildlink3.mk" | 55 | .include "../../graphics/MesaLib/buildlink3.mk" | |
56 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | 56 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | |
57 | .include "../../mk/jpeg.buildlink3.mk" | 57 | .include "../../mk/jpeg.buildlink3.mk" | |
58 | .include "../../graphics/flickrnet/buildlink3.mk" | 58 | .include "../../graphics/flickrnet/buildlink3.mk" | |
59 | .include "../../graphics/lcms/buildlink3.mk" | 59 | .include "../../graphics/lcms/buildlink3.mk" | |
60 | .include "../../graphics/libexif/buildlink3.mk" | 60 | .include "../../graphics/libexif/buildlink3.mk" | |
61 | .include "../../lang/mono/buildlink3.mk" | 61 | .include "../../lang/mono/buildlink3.mk" | |
62 | .include "../../devel/mono-addins/buildlink3.mk" | 62 | .include "../../devel/mono-addins/buildlink3.mk" | |
63 | .include "../../textproc/gnome-doc-utils/buildlink3.mk" | 63 | .include "../../textproc/gnome-doc-utils/buildlink3.mk" | |
64 | .include "../../mk/omf-scrollkeeper.mk" | 64 | .include "../../mk/omf-scrollkeeper.mk" | |
65 | .include "../../x11/gnome-sharp/buildlink3.mk" | 65 | .include "../../x11/gnome-sharp/buildlink3.mk" | |
66 | .include "../../x11/gnome-desktop-sharp/buildlink3.mk" | 66 | .include "../../x11/gnome-desktop-sharp/buildlink3.mk" | |
67 | .include "../../x11/gtk2/buildlink3.mk" | 67 | .include "../../x11/gtk2/buildlink3.mk" | |
68 | .include "../../x11/gtk-sharp/buildlink3.mk" | 68 | .include "../../x11/gtk-sharp/buildlink3.mk" | |
69 | .include "../../x11/libunique/buildlink3.mk" | 69 | .include "../../x11/libunique/buildlink3.mk" | |
70 | .include "../../security/gnome-keyring-sharp/buildlink3.mk" | 70 | .include "../../security/gnome-keyring-sharp/buildlink3.mk" | |
71 | .include "../../sysutils/ndesk-dbus/buildlink3.mk" | 71 | .include "../../sysutils/ndesk-dbus/buildlink3.mk" | |
72 | .include "../../sysutils/ndesk-dbus-glib/buildlink3.mk" | 72 | .include "../../sysutils/ndesk-dbus-glib/buildlink3.mk" | |
73 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | 73 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |
74 | .include "../../mk/bsd.pkg.mk" | 74 | .include "../../mk/bsd.pkg.mk" |
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.9 2015/05/23 10:33:01 kefren Exp $ | 1 | $NetBSD: distinfo,v 1.10 2015/05/24 06:50:14 kefren Exp $ | |
2 | 2 | |||
3 | SHA1 (f-spot-0.8.2.tar.bz2) = 258e30a11ac24f963a47ead19c3d14bf755816e5 | 3 | SHA1 (f-spot-0.8.2.tar.bz2) = 258e30a11ac24f963a47ead19c3d14bf755816e5 | |
4 | RMD160 (f-spot-0.8.2.tar.bz2) = 658f437cb336fc29a718cf021ba54ee62dbee757 | 4 | RMD160 (f-spot-0.8.2.tar.bz2) = 658f437cb336fc29a718cf021ba54ee62dbee757 | |
5 | Size (f-spot-0.8.2.tar.bz2) = 3222712 bytes | 5 | Size (f-spot-0.8.2.tar.bz2) = 3222712 bytes | |
6 | SHA1 (patch-FlickrExport.cs) = 15610c7f0e0d321d8acf4282cb04953e62180c2c | 6 | SHA1 (patch-FlickrExport.cs) = 15610c7f0e0d321d8acf4282cb04953e62180c2c | |
7 | SHA1 (patch-FlickrRemote.cs) = 63b3e8c6e57ca2c02a38c00fc2f0dcaf69825779 | 7 | SHA1 (patch-FlickrRemote.cs) = a77d7306a4ac149891d73e880ff93253584c9a29 | |
8 | SHA1 (patch-FolderTreeView.cs) = 0e5804189b8c11caafe0bbcae8faa9a24fa4d5a5 | 8 | SHA1 (patch-FolderTreeView.cs) = 0e5804189b8c11caafe0bbcae8faa9a24fa4d5a5 | |
9 | SHA1 (patch-GdkImageLoader.cs) = 945f8349af0a5cbbfd97cf73641eae268a8aed05 | 9 | SHA1 (patch-GdkImageLoader.cs) = 945f8349af0a5cbbfd97cf73641eae268a8aed05 | |
10 | SHA1 (patch-GroupSelector.cs) = bed9b5e8737f3079037bc0e68898ae765808c01e | 10 | SHA1 (patch-GroupSelector.cs) = bed9b5e8737f3079037bc0e68898ae765808c01e | |
11 | SHA1 (patch-Makefile_in) = 313c3ad5fb9859a2891c38d49776347747949162 | 11 | SHA1 (patch-Makefile_in) = 313c3ad5fb9859a2891c38d49776347747949162 |
@@ -1,84 +1,84 @@ | @@ -1,84 +1,84 @@ | |||
1 | $NetBSD: patch-FlickrRemote.cs,v 1.1 2015/05/23 10:33:01 kefren Exp $ | 1 | $NetBSD: patch-FlickrRemote.cs,v 1.2 2015/05/24 06:50:14 kefren Exp $ | |
2 | 2 | |||
3 | Make it compile with newer flickrnet | 3 | Make it compile with newer flickrnet | |
4 | 4 | |||
5 | --- src/Extensions/Exporters/FSpot.Exporters.Flickr/FSpot.Exporters.Flickr/FlickrRemote.cs.orig 2010-12-19 15:34:42.000000000 +0200 | 5 | --- src/Extensions/Exporters/FSpot.Exporters.Flickr/FSpot.Exporters.Flickr/FlickrRemote.cs.orig 2010-12-19 15:34:42.000000000 +0200 | |
6 | +++ src/Extensions/Exporters/FSpot.Exporters.Flickr/FSpot.Exporters.Flickr/FlickrRemote.cs 2015-05-23 13:25:26.000000000 +0300 | 6 | +++ src/Extensions/Exporters/FSpot.Exporters.Flickr/FSpot.Exporters.Flickr/FlickrRemote.cs 2015-05-23 13:25:26.000000000 +0300 | |
7 | @@ -11,6 +11,7 @@ | 7 | @@ -11,6 +11,7 @@ | |
8 | */ | 8 | */ | |
9 | using System; | 9 | using System; | |
10 | using System.IO; | 10 | using System.IO; | |
11 | +using System.Linq; | 11 | +using System.Linq; | |
12 | using System.Text; | 12 | using System.Text; | |
13 | using System.Collections; | 13 | using System.Collections; | |
14 | using FlickrNet; | 14 | using FlickrNet; | |
15 | @@ -22,7 +23,7 @@ | 15 | @@ -22,7 +23,7 @@ | |
16 | 16 | |||
17 | namespace FSpot.Exporters.Flickr { | 17 | namespace FSpot.Exporters.Flickr { | |
18 | public class FlickrRemote { | 18 | public class FlickrRemote { | |
19 | - public static Licenses licenses; | 19 | - public static Licenses licenses; | |
20 | + public static LicenseCollection licenses; | 20 | + public static LicenseCollection licenses; | |
21 | private string frob; | 21 | private string frob; | |
22 | private string token; | 22 | private string token; | |
23 | private Auth auth; | 23 | private Auth auth; | |
24 | @@ -62,28 +63,29 @@ | 24 | @@ -62,28 +63,29 @@ | |
25 | get { return flickr; } | 25 | get { return flickr; } | |
26 | } | 26 | } | |
27 | 27 | |||
28 | - public License[] GetLicenses () | 28 | - public License[] GetLicenses () | |
29 | + public LicenseCollection GetLicenses () | 29 | + public LicenseCollection GetLicenses () | |
30 | { | 30 | { | |
31 | // Licenses won't change normally in a user session | 31 | // Licenses won't change normally in a user session | |
32 | if (licenses == null) { | 32 | if (licenses == null) { | |
33 | try { | 33 | try { | |
34 | licenses = flickr.PhotosLicensesGetInfo(); | 34 | licenses = flickr.PhotosLicensesGetInfo(); | |
35 | } catch (FlickrNet.FlickrApiException e ) { | 35 | } catch (FlickrNet.FlickrApiException e ) { | |
36 | - Log.Error (e.Code + ": " + e.Verbose ); | 36 | - Log.Error (e.Code + ": " + e.Verbose ); | |
37 | + Log.Error (e.Code + ": " + e.Message ); | 37 | + Log.Error (e.Code + ": " + e.Message ); | |
38 | return null; | 38 | return null; | |
39 | } | 39 | } | |
40 | } | 40 | } | |
41 | - return licenses.LicenseCollection; | 41 | - return licenses.LicenseCollection; | |
42 | + return licenses; | 42 | + return licenses; | |
43 | } | 43 | } | |
44 | 44 | |||
45 | public ArrayList Search (string[] tags, int licenseId) | 45 | public ArrayList Search (string[] tags, int licenseId) | |
46 | { | 46 | { | |
47 | + var options = new PhotoSearchOptions { Tags = tags.Aggregate((a, b) => a += b + " ") }; | 47 | + var options = new PhotoSearchOptions { Tags = tags.Aggregate((a, b) => a + " " + b) }; | |
48 | ArrayList photos_url = new ArrayList (); | 48 | ArrayList photos_url = new ArrayList (); | |
49 | // Photos photos = flickr.PhotosSearchText (tags, licenseId); | 49 | // Photos photos = flickr.PhotosSearchText (tags, licenseId); | |
50 | - Photos photos = flickr.PhotosSearch (tags); | 50 | - Photos photos = flickr.PhotosSearch (tags); | |
51 | + PhotoCollection photos = flickr.PhotosSearch (options); | 51 | + PhotoCollection photos = flickr.PhotosSearch (options); | |
52 | 52 | |||
53 | if (photos != null) { | 53 | if (photos != null) { | |
54 | - foreach (FlickrNet.Photo photo in photos.PhotoCollection) { | 54 | - foreach (FlickrNet.Photo photo in photos.PhotoCollection) { | |
55 | + foreach (FlickrNet.Photo photo in photos) { | 55 | + foreach (FlickrNet.Photo photo in photos) { | |
56 | photos_url.Add (photo.ThumbnailUrl); | 56 | photos_url.Add (photo.ThumbnailUrl); | |
57 | } | 57 | } | |
58 | } | 58 | } | |
59 | @@ -93,11 +95,14 @@ | 59 | @@ -93,11 +95,14 @@ | |
60 | 60 | |||
61 | public ArrayList Search (string tags, int licenseId) | 61 | public ArrayList Search (string tags, int licenseId) | |
62 | { | 62 | { | |
63 | + var options = new PhotoSearchOptions{Tags = tags}; | 63 | + var options = new PhotoSearchOptions{Tags = tags}; | |
64 | ArrayList photos_url = new ArrayList (); | 64 | ArrayList photos_url = new ArrayList (); | |
65 | - Photos photos = flickr.PhotosSearchText (tags, licenseId); | 65 | - Photos photos = flickr.PhotosSearchText (tags, licenseId); | |
66 | + // XXX: ignore license, probably should also set | 66 | + // XXX: ignore license, probably should also set | |
67 | + // options.licenses | 67 | + // options.licenses | |
68 | + PhotoCollection photos = flickr.PhotosSearch (options); | 68 | + PhotoCollection photos = flickr.PhotosSearch (options); | |
69 | 69 | |||
70 | if (photos != null) { | 70 | if (photos != null) { | |
71 | - foreach (FlickrNet.Photo photo in photos.PhotoCollection) { | 71 | - foreach (FlickrNet.Photo photo in photos.PhotoCollection) { | |
72 | + foreach (FlickrNet.Photo photo in photos) { | 72 | + foreach (FlickrNet.Photo photo in photos) { | |
73 | photos_url.Add (photo.ThumbnailUrl); | 73 | photos_url.Add (photo.ThumbnailUrl); | |
74 | } | 74 | } | |
75 | } | 75 | } | |
76 | @@ -126,7 +131,7 @@ | 76 | @@ -126,7 +131,7 @@ | |
77 | 77 | |||
78 | return auth; | 78 | return auth; | |
79 | } catch (FlickrNet.FlickrApiException ex) { | 79 | } catch (FlickrNet.FlickrApiException ex) { | |
80 | - Log.Error ("Problems logging in to Flickr - " + ex.Verbose); | 80 | - Log.Error ("Problems logging in to Flickr - " + ex.Verbose); | |
81 | + Log.Error ("Problems logging in to Flickr - " + ex.Message); | 81 | + Log.Error ("Problems logging in to Flickr - " + ex.Message); | |
82 | return null; | 82 | return null; | |
83 | } | 83 | } | |
84 | } | 84 | } |