[postgis-tickets] r14932 - Install desktop file and application icons for shp2pgsql-gui (Sebastiaan Couwenberg)

Regina Obe lr at pcorp.us
Sat Jun 4 11:10:50 PDT 2016


Author: robe
Date: 2016-06-04 11:10:50 -0700 (Sat, 04 Jun 2016)
New Revision: 14932

Added:
   trunk/loader/icons/
   trunk/loader/icons/hicolor/
   trunk/loader/icons/hicolor/16x16/
   trunk/loader/icons/hicolor/16x16/apps/
   trunk/loader/icons/hicolor/16x16/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/22x22/
   trunk/loader/icons/hicolor/22x22/apps/
   trunk/loader/icons/hicolor/22x22/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/24x24/
   trunk/loader/icons/hicolor/24x24/apps/
   trunk/loader/icons/hicolor/24x24/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/32x32/
   trunk/loader/icons/hicolor/32x32/apps/
   trunk/loader/icons/hicolor/32x32/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/36x36/
   trunk/loader/icons/hicolor/36x36/apps/
   trunk/loader/icons/hicolor/36x36/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/40x40/
   trunk/loader/icons/hicolor/40x40/apps/
   trunk/loader/icons/hicolor/40x40/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/42x42/
   trunk/loader/icons/hicolor/42x42/apps/
   trunk/loader/icons/hicolor/42x42/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/48x48/
   trunk/loader/icons/hicolor/48x48/apps/
   trunk/loader/icons/hicolor/48x48/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/64x64/
   trunk/loader/icons/hicolor/64x64/apps/
   trunk/loader/icons/hicolor/64x64/apps/shp2pgsql-gui.png
   trunk/loader/icons/hicolor/8x8/
   trunk/loader/icons/hicolor/8x8/apps/
   trunk/loader/icons/hicolor/8x8/apps/shp2pgsql-gui.png
   trunk/loader/shp2pgsql-gui.desktop
Modified:
   trunk/loader/Makefile.in
Log:
Install desktop file and application icons for shp2pgsql-gui (Sebastiaan Couwenberg)
References #3571 for PostGIS 2.3

Modified: trunk/loader/Makefile.in
===================================================================
--- trunk/loader/Makefile.in	2016-06-03 00:38:40 UTC (rev 14931)
+++ trunk/loader/Makefile.in	2016-06-04 18:10:50 UTC (rev 14932)
@@ -114,14 +114,40 @@
 installdir:
 	@mkdir -p $(DESTDIR)$(bindir)
 
-install: installdir 
+install-desktop:
 ifdef gtk_build
+	mkdir -p $(DESTDIR)$(datadir)/applications
+	$(INSTALL_DATA) shp2pgsql-gui.desktop $(DESTDIR)$(datadir)/applications/shp2pgsql-gui.desktop
+endif
+
+ICON_SIZES = 8x8 16x16 22x22 24x24 32x32 36x36 40x40 42x42 48x48 64x64
+
+install-icons:
+ifdef gtk_build
+	for size in $(ICON_SIZES); do \
+		mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$${size}/apps; \
+		$(INSTALL_DATA) icons/hicolor/$${size}/apps/shp2pgsql-gui.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}/apps/shp2pgsql-gui.png; \
+	done
+endif
+
+install: installdir install-desktop install-icons
+ifdef gtk_build
 	$(LIBTOOL) --mode=install $(INSTALL) $(SHP2PGSQL-GUI) "$(DESTDIR)$(bindir)/$(SHP2PGSQL-GUI)"
 endif
 	$(LIBTOOL) --mode=install $(INSTALL) $(PGSQL2SHP-CLI) "$(DESTDIR)$(bindir)/$(PGSQL2SHP-CLI)"
 	$(LIBTOOL) --mode=install $(INSTALL) $(SHP2PGSQL-CLI) "$(DESTDIR)$(bindir)/$(SHP2PGSQL-CLI)"
 
-uninstall:
+uninstall-desktop:
+ifdef gtk_build
+	rm -f $(DESTDIR)$(datadir)/applications/shp2pgsql-gui.desktop
+endif
+
+uninstall-icons:
+ifdef gtk_build
+	rm -f $(DESTDIR)$(datadir)/icons/hicolor/*/apps/shp2pgsql-gui.png
+endif
+
+uninstall: uninstall-desktop uninstall-icons
 	$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(bindir)/$(PGSQL2SHP-CLI)"
 	$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(bindir)/$(SHP2PGSQL-CLI)"
 	$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(bindir)/$(SHP2PGSQL-GUI)"

Added: trunk/loader/icons/hicolor/16x16/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/16x16/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/22x22/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/22x22/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/24x24/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/24x24/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/32x32/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/32x32/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/36x36/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/36x36/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/40x40/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/40x40/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/42x42/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/42x42/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/48x48/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/48x48/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/64x64/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/64x64/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/icons/hicolor/8x8/apps/shp2pgsql-gui.png
===================================================================
(Binary files differ)


Property changes on: trunk/loader/icons/hicolor/8x8/apps/shp2pgsql-gui.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/loader/shp2pgsql-gui.desktop
===================================================================
--- trunk/loader/shp2pgsql-gui.desktop	                        (rev 0)
+++ trunk/loader/shp2pgsql-gui.desktop	2016-06-04 18:10:50 UTC (rev 14932)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=shp2pgsql-gui
+GenericName=GUI for Shapefile to PostGIS import tool
+Comment=Import shapefiles into PostGIS databases
+Categories=Geography;Science;Geoscience;
+Exec=shp2pgsql-gui
+Icon=shp2pgsql-gui
+Terminal=false
+Keywords=spatial;postgis;postgresql;gis;



More information about the postgis-tickets mailing list