diff options
Diffstat (limited to 'homebrew/hspell/patches.sh')
-rwxr-xr-x | homebrew/hspell/patches.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/homebrew/hspell/patches.sh b/homebrew/hspell/patches.sh new file mode 100755 index 000000000..92fb3e3d5 --- /dev/null +++ b/homebrew/hspell/patches.sh @@ -0,0 +1,53 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git Makefile.in Makefile.in +index a400ca1..fa595e8 100644 +--- Makefile.in ++++ Makefile.in +@@ -98,7 +98,7 @@ clean: + hebrew.wgz.lingsizes.tmp dmask.c \ + spell-he.xpi he.dic he.aff README-he.txt \ + README_he_IL.txt he_IL.dic he_IL.aff he_IL.zip \ +- specfilter.o specfilter he.rws libhspell.so.0 libhspell.so \ ++ specfilter.o specfilter he.rws libhspell.dylib \ + dict_radix.lo gimatria.lo corlist.lo libhspell.lo linginfo.lo \ + he.xpi misc/dictionaries/he.dic misc/dictionaries/he.aff \ + misc/dictionaries/license.txt misc/dictionaries/README-he.txt +@@ -137,9 +137,8 @@ install: all + test -d $(DESTDIR)$(INCLUDEDIR) || mkdir -m 755 -p $(DESTDIR)$(INCLUDEDIR) + cp hspell.h linginfo.h $(DESTDIR)$(INCLUDEDIR)/ + chmod 644 $(DESTDIR)$(INCLUDEDIR)/hspell.h $(DESTDIR)$(INCLUDEDIR)/linginfo.h +- test -f libhspell.so.0 && cp libhspell.so.0 $(DESTDIR)$(LIBDIR)/ +- test -f libhspell.so.0 && chmod 755 $(DESTDIR)$(LIBDIR)/libhspell.so.0 +- test -f libhspell.so.0 && ln -sf libhspell.so.0 $(DESTDIR)$(LIBDIR)/libhspell.so ++ test -f libhspell.dylib && cp libhspell.dylib $(DESTDIR)$(LIBDIR)/ ++ test -f libhspell.dylib && chmod 755 $(DESTDIR)$(LIBDIR)/libhspell.dylib + + + ################################################ +@@ -194,9 +193,8 @@ libhspell.a: $(LIBOBJS) + -ranlib $@ + + # For building a shared library (--enable-shared) +-libhspell.so.0: $(LIBOBJS:.o=.lo) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,libhspell.so.0 $^ -lz +- ln -sf libhspell.so.0 libhspell.so ++libhspell.dylib: $(LIBOBJS:.o=.lo) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -dynamiclib $^ -lz + + HSPELL_LIB = @HSPELL_LIB@ + $(HSPELL_EXECUTABLE): hspell.o tclHash.o $(HSPELL_LIB) +diff --git configure.in configure.in +index 6081cff..061fa68 100644 +--- configure.in ++++ configure.in +@@ -112,7 +112,7 @@ AC_ARG_ENABLE([shared], + if test x$ac_opt_shared = xyes + then + AC_MSG_NOTICE([Shared library building enabled.]) +- HSPELL_LIB="libhspell.so.0" ++ HSPELL_LIB="libhspell.dylib" + else + AC_MSG_NOTICE([Shared library building disabled.]) + HSPELL_LIB="libhspell.a" +EOF |