Blame SOURCES/aspell-0.60.5-pspell_conf.patch

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