Blame SOURCES/aspell-0.60.5-pspell_conf.patch

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