Blame SOURCES/aspell-0.60.5-pspell_conf.patch

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