File t1lib-5.1.2-no-config.patch of Package t1lib

do not install a static configuration file

Index: t1lib-5.1.1/lib/Makefile.in
===================================================================
--- t1lib-5.1.1.orig/lib/Makefile.in	2008-01-05 19:13:57.000000000 +0100
+++ t1lib-5.1.1/lib/Makefile.in	2008-01-05 19:14:18.000000000 +0100
@@ -161,17 +161,17 @@
 install: dummy
 	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
 	$(MKINSTALLDIRS) $(DESTDIR)$(includedir)
-	$(MKINSTALLDIRS) $(DESTDIR)@T1LIB_DATA_DIR@
+#	$(MKINSTALLDIRS) $(DESTDIR)@T1LIB_DATA_DIR@
 	$(LIBTOOL) --mode=install \
 		$(INSTALL_DATA) $(MAIN_TARGET) $(DESTDIR)$(libdir)
 	$(LIBTOOL) --mode=install \
 		$(INSTALL_DATA) $(MAIN_HEADER) $(DESTDIR)$(includedir)
-	if (test -f $(DESTDIR)@T1LIB_DATA_DIR@/t1lib.config) \
-	then \
-	  echo "Alert: Global configuration file exists, installation skipped!"; \
-	else \
-	  $(LIBTOOL) --mode=install $(INSTALL_DATA) t1lib.config $(DESTDIR)@T1LIB_DATA_DIR@; \
-	fi;
+#	if (test -f $(DESTDIR)@T1LIB_DATA_DIR@/t1lib.config) \
+#	then \
+#	  echo "Alert: Global configuration file exists, installation skipped!"; \
+#	else \
+#	  $(LIBTOOL) --mode=install $(INSTALL_DATA) t1lib.config $(DESTDIR)@T1LIB_DATA_DIR@; \
+#	fi;
 
 
 uninstall: dummy
@@ -179,7 +179,7 @@
 	-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libt1x.la
 	-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(includedir)/t1lib.h
 	-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(includedir)/t1libx.h
-	-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)@T1LIB_DATA_DIR@/t1lib.config
+#	-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)@T1LIB_DATA_DIR@/t1lib.config
 
 
 dummy:
Index: t1lib-5.1.1/xglyph/xglyph.c
===================================================================
--- t1lib-5.1.1.orig/xglyph/xglyph.c	2008-01-05 19:16:30.000000000 +0100
+++ t1lib-5.1.1/xglyph/xglyph.c	2008-01-05 19:16:40.000000000 +0100
@@ -526,9 +526,11 @@
   
   /* Check for environment entry. If not set, set it to current
      directory so that configuration file is found there */
+#if 0
   if (getenv("T1LIB_CONFIG")==NULL){
     putenv( "T1LIB_CONFIG=./t1lib.config");
   }
+#endif
 
   
   /* Set log-level: */
openSUSE Build Service is sponsored by