LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fillmore-lombard-no-update-mimedb.patch of Package fillmore-lombard (Project openSUSE:11.4)

Index: media-0.1.0/marina.mk
===================================================================
--- media-0.1.0.orig/marina.mk
+++ media-0.1.0/marina.mk
@@ -100,7 +100,9 @@ ifndef DISABLE_DESKTOP_UPDATE
 endif
 	mkdir -p $(DESTDIR)$(PREFIX)/share/mime/packages
 	$(INSTALL_DATA) ../../misc/$(PROGRAM_NAME).xml $(DESTDIR)$(PREFIX)/share/mime/packages
+ifndef DISABLE_MIME_UPDATE
 	-update-mime-database $(DESTDIR)$(PREFIX)/share/mime
+endif
 
 uninstall:
 	rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_NAME)
@@ -108,7 +110,9 @@ uninstall:
 	rm -fr $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/$(PROGRAM_NAME).svg
 	rm -f $(DESTDIR)$(PREFIX)/share/applications/$(PROGRAM_NAME).desktop
 	rm -f $(DESTDIR)$(PREFIX)/share/mime/packages/$(PROGRAM_NAME).xml
+ifndef DISABLE_MIME_UPDATE
 	-update-mime-database $(DESTDIR)$(PREFIX)/share/mime
+endif
 
 $(VALA_STAMP): $(EXPANDED_SRC_FILES) $(EXPANDED_VAPI_FILES) $(EXPANDED_SRC_HEADER_FILES) Makefile \
 	$(CONFIG_IN) $(TEMP_MARINA_VAPI)