Blame SOURCES/aspell-0.60.5-pspell_conf.patch

5c29c8
diff -up aspell-0.60.6.1/configure.mlib aspell-0.60.6.1/configure
5c29c8
--- aspell-0.60.6.1/configure.mlib	2011-08-16 11:40:48.000000000 +0200
5c29c8
+++ aspell-0.60.6.1/configure	2011-08-16 11:41:44.013663519 +0200
5c29c8
@@ -18989,7 +18989,7 @@ rm -f core conftest.err conftest.$ac_obj
5c29c8
 #                                                                 #
5c29c8
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
5c29c8
 
5c29c8
-ac_config_files="$ac_config_files Makefile gen/Makefile common/Makefile lib/Makefile data/Makefile auto/Makefile modules/Makefile modules/tokenizer/Makefile modules/speller/Makefile modules/speller/default/Makefile interfaces/Makefile interfaces/cc/Makefile scripts/Makefile examples/Makefile prog/Makefile manual/Makefile po/Makefile.in m4/Makefile modules/filter/Makefile myspell/Makefile lib5/Makefile"
5c29c8
+ac_config_files="$ac_config_files Makefile gen/Makefile common/Makefile lib/Makefile data/Makefile auto/Makefile modules/Makefile modules/tokenizer/Makefile modules/speller/Makefile modules/speller/default/Makefile interfaces/Makefile interfaces/cc/Makefile aspell.pc scripts/Makefile examples/Makefile prog/Makefile manual/Makefile po/Makefile.in m4/Makefile modules/filter/Makefile myspell/Makefile lib5/Makefile"
5c29c8
 
5c29c8
 cat >confcache <<\_ACEOF
5c29c8
 # This file is a shell script that caches the results of configure
5c29c8
@@ -19985,7 +19985,7 @@ do
5c29c8
     "modules/filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/filter/Makefile" ;;
5c29c8
     "myspell/Makefile") CONFIG_FILES="$CONFIG_FILES myspell/Makefile" ;;
5c29c8
     "lib5/Makefile") CONFIG_FILES="$CONFIG_FILES lib5/Makefile" ;;
5c29c8
-
5c29c8
+    "aspell.pc" ) CONFIG_FILES="$CONFIG_FILES aspell.pc" ;;
5c29c8
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5c29c8
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5c29c8
    { (exit 1); exit 1; }; };;
5c29c8
diff -up aspell-0.60.6.1/Makefile.in.mlib aspell-0.60.6.1/Makefile.in
5c29c8
--- aspell-0.60.6.1/Makefile.in.mlib	2011-08-16 11:20:09.000000000 +0200
5c29c8
+++ aspell-0.60.6.1/Makefile.in	2011-08-16 11:46:30.643236786 +0200
5c29c8
@@ -816,6 +816,8 @@ clean-filterLTLIBRARIES:
5c29c8
 	done
5c29c8
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
5c29c8
 	@$(NORMAL_INSTALL)
5c29c8
+	mkdir -p $(libdir)/pkgconfig; \
5c29c8
+	cp aspell.pc $(libdir)/pkgconfig/aspell.pc; \
5c29c8
 	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
5c29c8
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
5c29c8
 	  if test -f $$p; then \
5c29c8
diff -up aspell-0.60.6.1/scripts/mkconfig.mlib aspell-0.60.6.1/scripts/mkconfig
5c29c8
--- aspell-0.60.6.1/scripts/mkconfig.mlib	2004-01-03 13:06:24.000000000 +0100
5c29c8
+++ aspell-0.60.6.1/scripts/mkconfig	2011-08-16 11:42:46.810519200 +0200
5c29c8
@@ -15,7 +15,7 @@ case \$1 in
5c29c8
   echo "$2"
5c29c8
   ;;
5c29c8
 --pkgdatadir | pkgdatadir)
5c29c8
-  echo "$3"
5c29c8
+  pkg-config aspell --variable=pkgdatadir
5c29c8
   ;;
5c29c8
 *)
5c29c8
   echo "usage: pspell-config version|datadir|pkgdatadir"
5c29c8
--- /dev/null	2007-01-02 09:09:01.616000852 +0100
5c29c8
+++ aspell-0.60.6.1/aspell.pc.in	2007-01-02 14:59:04.000000000 +0100
5c29c8
@@ -0,0 +1,12 @@
5c29c8
+prefix=@prefix@
5c29c8
+exec_prefix=@exec_prefix@
5c29c8
+libdir=@libdir@
5c29c8
+includedir=@includedir@
5c29c8
+pkgdatadir=@pkgdatadir@
5c29c8
+
5c29c8
+Name: Aspell
5c29c8
+Description: A spelling checker.
5c29c8
+Version: @VERSION@
5c29c8
+Requires: 
5c29c8
+Libs: -L${libdir} -laspell
5c29c8
+Cflags: -I${includedir}