From 3b7bf21d5d7830b94ba899a2c9fcd8d98552a1eb Mon Sep 17 00:00:00 2001
From: André Fabian Silva Delgado
+- When ready, Shotwell can upload your photos to various web sites, such as Facebook, Flickr, +- Picasa (Google Plus), and more. +-
+-+ Shotwell supports JPEG, PNG, TIFF, and a variety of RAW file formats. +
+ +diff -Nur shotwell-0.18.0.orig/misc/shotwell.convert shotwell-0.18.0/misc/shotwell.convert +--- shotwell-0.18.0.orig/misc/shotwell.convert 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/misc/shotwell.convert 2014-04-19 18:15:46.392511834 -0300 +@@ -65,29 +65,11 @@ + last-used-service = /apps/shotwell/sharing/last_used_service + + [org.yorba.shotwell.plugins.enable-state] +-publishing-facebook = /apps/shotwell/plugins/org.yorba.shotwell.publishing.facebook/enabled +-publishing-flickr = /apps/shotwell/plugins/org.yorba.shotwell.publishing.flickr/enabled +-publishing-picasa = /apps/shotwell/plugins/org.yorba.shotwell.publishing.picasa/enabled + publishing-piwigo = /apps/shotwell/plugins/org.yorba.shotwell.publishing.piwigo/enabled +-publishing-yandex-fotki = /apps/shotwell/plugins/org.yorba.shotwell.publishing.yandex-fotki/enabled +-publishing-youtube = /apps/shotwell/plugins/org.yorba.shotwell.publishing.youtube/enabled + transitions-crumble = /apps/shotwell/plugins/org.yorba.shotwell.transitions.crumble/enabled + transitions-fade = /apps/shotwell/plugins/org.yorba.shotwell.transitions.fade/enabled + transitions-slide = /apps/shotwell/plugins/org.yorba.shotwell.transitions.slide/enabled + +-[org.yorba.shotwell.sharing.facebook] +-uid = /apps/shotwell/sharing/facebook/uid +-user-name = /apps/shotwell/sharing/facebook/user_name +-default-size = /apps/shotwell/sharing/facebook/default_size +- +-[org.yorba.shotwell.sharing.flickr] +-default-size = /apps/shotwell/sharing/flickr/default_size +-visibility = /apps/shotwell/sharing/flickr/visibility +- +-[org.yorba.shotwell.sharing.picasa] +-default-size = /apps/shotwell/sharing/picasa/default_size +-last-album = /apps/shotwell/sharing/picasa/last_album +- + [org.yorba.shotwell.sharing.org-yorba-shotwell-publishing-piwigo] + url = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/url + username = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/username +@@ -95,11 +77,3 @@ + remember-password = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/remember-password + last-category = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/last-category + last-permission-level = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/last-permission-level +- +-[org.yorba.shotwell.sharing.org-yorba-shotwell-publishing-yandex-fotki] +-auth-token = /apps/shotwell/sharing/org.yorba.shotwell.publishing.yandex-fotki/auth_token +- +-[org.yorba.shotwell.sharing.youtube] +-user-name = /apps/shotwell/sharing/youtube/user_name +-auth-token = /apps/shotwell/sharing/youtube/auth_token +- +diff -Nur shotwell-0.18.0.orig/misc/shotwell.desktop.head shotwell-0.18.0/misc/shotwell.desktop.head +--- shotwell-0.18.0.orig/misc/shotwell.desktop.head 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/misc/shotwell.desktop.head 2014-04-19 18:15:46.392511834 -0300 +@@ -3,7 +3,7 @@ + Name=Shotwell + GenericName=Photo Manager + Comment=Organize your photos +-Keywords=album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;organize;photo;photographs;photos;picture;pictures;photography;print;publish;rotate;share;tags;video;facebook;flickr;picasa;youtube;piwigo; ++Keywords=album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;organize;photo;photographs;photos;picture;pictures;photography;print;publish;rotate;share;tags;video;piwigo; + Exec=shotwell %U + Icon=shotwell + Terminal=false +diff -Nur shotwell-0.18.0.orig/plugins/common/RESTSupport.vala shotwell-0.18.0/plugins/common/RESTSupport.vala +--- shotwell-0.18.0.orig/plugins/common/RESTSupport.vala 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/plugins/common/RESTSupport.vala 2014-04-19 18:44:24.962777076 -0300 +@@ -628,10 +628,6 @@ + return session; + } + +- protected Spit.Publishing.Publishable get_current_publishable() { +- return publishables[current_file]; +- } +- + protected abstract Transaction create_transaction(Spit.Publishing.Publishable publishable); + + public void upload(Spit.Publishing.ProgressCallback? status_updated = null) { +diff -Nur shotwell-0.18.0.orig/plugins/plugins.mk shotwell-0.18.0/plugins/plugins.mk +--- shotwell-0.18.0.orig/plugins/plugins.mk 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/plugins/plugins.mk 2014-04-19 18:52:04.852983921 -0300 +@@ -5,29 +5,13 @@ + shotwell-data-imports + + PLUGINS_RC := \ +- plugins/shotwell-publishing/facebook.png \ +- plugins/shotwell-publishing/facebook_publishing_options_pane.glade \ +- plugins/shotwell-publishing/flickr.png \ +- plugins/shotwell-publishing/flickr_publishing_options_pane.glade \ +- plugins/shotwell-publishing/flickr_pin_entry_pane.glade \ +- plugins/shotwell-publishing/picasa.png \ +- plugins/shotwell-publishing/picasa_publishing_options_pane.glade \ +- plugins/shotwell-publishing/youtube.png \ +- plugins/shotwell-publishing/youtube_publishing_options_pane.glade \ + plugins/shotwell-publishing/piwigo.png \ + plugins/shotwell-publishing/piwigo_authentication_pane.glade \ + plugins/shotwell-publishing/piwigo_publishing_options_pane.glade \ + plugins/shotwell-transitions/slideshow-plugin.png + +-EXTRA_PLUGINS := \ +- shotwell-publishing-extras +- + EXTRA_PLUGINS_RC := \ +- plugins/shotwell-publishing-extras/yandex_publish_model.glade \ +- plugins/shotwell-data-imports/f-spot-24.png \ +- plugins/shotwell-publishing-extras/tumblr.png \ +- plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade \ +- plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade ++ plugins/shotwell-data-imports/f-spot-24.png + + ALL_PLUGINS := $(PLUGINS) $(EXTRA_PLUGINS) + +diff -Nur shotwell-0.18.0.orig/plugins/shotwell-publishing/Makefile shotwell-0.18.0/plugins/shotwell-publishing/Makefile +--- shotwell-0.18.0.orig/plugins/shotwell-publishing/Makefile 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/plugins/shotwell-publishing/Makefile 2014-04-19 18:45:15.729833873 -0300 +@@ -13,27 +13,14 @@ + + SRC_FILES := \ + shotwell-publishing.vala \ +- FacebookPublishing.vala \ +- PicasaPublishing.vala \ +- FlickrPublishing.vala \ +- YouTubePublishing.vala \ + PiwigoPublishing.vala \ + ../../src/util/string.vala \ + ../common/RESTSupport.vala + + RC_FILES := \ +- facebook.png \ +- facebook_publishing_options_pane.glade \ +- flickr.png \ +- flickr_publishing_options_pane.glade \ +- flickr_pin_entry_pane.glade \ +- picasa.png \ +- picasa_publishing_options_pane.glade \ + piwigo.png \ + piwigo_authentication_pane.glade \ +- piwigo_publishing_options_pane.glade \ +- youtube.png \ +- youtube_publishing_options_pane.glade ++ piwigo_publishing_options_pane.glade + + include ../Makefile.plugin.mk + +diff -Nur shotwell-0.18.0.orig/plugins/shotwell-publishing/shotwell-publishing.vala shotwell-0.18.0/plugins/shotwell-publishing/shotwell-publishing.vala +--- shotwell-0.18.0.orig/plugins/shotwell-publishing/shotwell-publishing.vala 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/plugins/shotwell-publishing/shotwell-publishing.vala 2014-04-19 18:15:46.392511834 -0300 +@@ -6,7 +6,7 @@ + + extern const string _VERSION; + +-// "core services" are: Facebook, Flickr, Picasa Web Albums, Piwigo and YouTube ++// "core services" is: Piwigo + private class ShotwellPublishingCoreServices : Object, Spit.Module { + private Spit.Pluggable[] pluggables = new Spit.Pluggable[0]; + +@@ -15,10 +15,6 @@ + public ShotwellPublishingCoreServices(GLib.File module_file) { + GLib.File resource_directory = module_file.get_parent(); + +- pluggables += new FacebookService(resource_directory); +- pluggables += new PicasaService(resource_directory); +- pluggables += new FlickrService(resource_directory); +- pluggables += new YouTubeService(resource_directory); + pluggables += new PiwigoService(resource_directory); + } + +diff -Nur shotwell-0.18.0.orig/po/POTFILES.in shotwell-0.18.0/po/POTFILES.in +--- shotwell-0.18.0.orig/po/POTFILES.in 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/po/POTFILES.in 2014-04-19 19:01:24.750459462 -0300 +@@ -18,22 +18,9 @@ + plugins/shotwell-publishing-extras/TumblrPublishing.vala + plugins/shotwell-publishing-extras/YandexPublishing.vala + plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala +-[type: gettext/glade]plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade +-[type: gettext/glade]plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade +-[type: gettext/glade]plugins/shotwell-publishing-extras/yandex_publish_model.glade +-plugins/shotwell-publishing/FacebookPublishing.vala +-plugins/shotwell-publishing/FlickrPublishing.vala +-plugins/shotwell-publishing/PicasaPublishing.vala +-plugins/shotwell-publishing/PiwigoPublishing.vala +-plugins/shotwell-publishing/YouTubePublishing.vala +-[type: gettext/glade]plugins/shotwell-publishing/facebook_publishing_options_pane.glade +-[type: gettext/glade]plugins/shotwell-publishing/flickr_pin_entry_pane.glade +-[type: gettext/glade]plugins/shotwell-publishing/flickr_publishing_options_pane.glade +-[type: gettext/glade]plugins/shotwell-publishing/picasa_publishing_options_pane.glade + [type: gettext/glade]plugins/shotwell-publishing/piwigo_authentication_pane.glade + [type: gettext/glade]plugins/shotwell-publishing/piwigo_publishing_options_pane.glade + plugins/shotwell-publishing/shotwell-publishing.vala +-[type: gettext/glade]plugins/shotwell-publishing/youtube_publishing_options_pane.glade + plugins/shotwell-transitions/BlindsEffect.vala + plugins/shotwell-transitions/ChessEffect.vala + plugins/shotwell-transitions/CircleEffect.vala +diff -Nur shotwell-0.18.0.orig/src/plugins/PublishingInterfaces.vala shotwell-0.18.0/src/plugins/PublishingInterfaces.vala +--- shotwell-0.18.0.orig/src/plugins/PublishingInterfaces.vala 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/src/plugins/PublishingInterfaces.vala 2014-04-19 18:15:46.395845194 -0300 +@@ -8,8 +8,7 @@ + * Shotwell Pluggable Publishing API + * + * The Shotwell Pluggable Publishing API allows you to write plugins that upload +- * photos and videos to web services. The Shotwell distribution includes publishing +- * support for four core services: Facebook, Flickr, Picasa Web Albums, and YouTube. ++ * photos and videos to web services. + * To enable Shotwell to connect to additional services, developers like you write + * publishing plugins, dynamically-loadable shared objects that are linked into the + * Shotwell process at runtime. Publishing plugins are just one of several kinds of +diff -Nur shotwell-0.18.0.orig/src/plugins/StandardHostInterface.vala shotwell-0.18.0/src/plugins/StandardHostInterface.vala +--- shotwell-0.18.0.orig/src/plugins/StandardHostInterface.vala 2014-03-04 20:54:12.000000000 -0200 ++++ shotwell-0.18.0/src/plugins/StandardHostInterface.vala 2014-04-19 18:37:54.803118064 -0300 +@@ -22,24 +22,8 @@ + private static string parse_key(string id) { + // special case: legacy plugins (Web publishers moved into SPIT) have special names + // new plugins will use their full ID +- switch (id) { +- case "org.yorba.shotwell.publishing.facebook": +- return "facebook"; +- +- case "org.yorba.shotwell.publishing.picasa": +- return "picasa"; +- +- case "org.yorba.shotwell.publishing.flickr": +- return "flickr"; +- +- case "org.yorba.shotwell.publishing.youtube": +- return "youtube"; +- +- default: +- return id; +- } ++ return id; + } +- + public File get_module_file() { + return module_file; + } diff --git a/nonprism/shotwell-nonprism/shotwell.install b/nonprism/shotwell-nonprism/shotwell.install new file mode 100644 index 000000000..bab8ecd29 --- /dev/null +++ b/nonprism/shotwell-nonprism/shotwell.install @@ -0,0 +1,17 @@ +pkgname=shotwell + +post_install() { + gtk-update-icon-cache -fq -t usr/share/icons/hicolor + update-desktop-database -q + glib-compile-schemas usr/share/glib-2.0/schemas +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -fq -t usr/share/icons/hicolor + glib-compile-schemas usr/share/glib-2.0/schemas +} -- cgit v1.2.3