summaryrefslogtreecommitdiff
path: root/homebrew/hspell
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/hspell')
-rw-r--r--homebrew/hspell/.beer79
-rw-r--r--homebrew/hspell/.make.sh-auto0
-rw-r--r--homebrew/hspell/_metadata/description1
-rw-r--r--homebrew/hspell/_metadata/homepage1
-rw-r--r--homebrew/hspell/_metadata/name1
-rw-r--r--homebrew/hspell/_metadata/version1
-rwxr-xr-xhomebrew/hspell/download.sh1
-rwxr-xr-xhomebrew/hspell/patches.sh53
8 files changed, 137 insertions, 0 deletions
diff --git a/homebrew/hspell/.beer b/homebrew/hspell/.beer
new file mode 100644
index 000000000..12250df79
--- /dev/null
+++ b/homebrew/hspell/.beer
@@ -0,0 +1,79 @@
+{
+ "name": "Hspell",
+ "description": "Free Hebrew linguistic project",
+ "url": "http://hspell.ivrix.org.il/hspell-1.4.tar.gz",
+ "mirror": null,
+ "homepage": "http://hspell.ivrix.org.il/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "strip": "0"
+ },
+ {
+ "url": null,
+ "data": [
+ "diff --git Makefile.in Makefile.in\n",
+ "index a400ca1..fa595e8 100644\n",
+ "--- Makefile.in\n",
+ "+++ Makefile.in\n",
+ "@@ -98,7 +98,7 @@ clean:\n",
+ "\t hebrew.wgz.lingsizes.tmp dmask.c \\\n",
+ "\t spell-he.xpi he.dic he.aff README-he.txt \\\n",
+ "\t README_he_IL.txt he_IL.dic he_IL.aff he_IL.zip \\\n",
+ "-\t specfilter.o specfilter he.rws libhspell.so.0 libhspell.so \\\n",
+ "+\t specfilter.o specfilter he.rws libhspell.dylib \\\n",
+ "\t dict_radix.lo gimatria.lo corlist.lo libhspell.lo linginfo.lo \\\n",
+ "\t he.xpi misc/dictionaries/he.dic misc/dictionaries/he.aff \\\n",
+ "\t misc/dictionaries/license.txt misc/dictionaries/README-he.txt\n",
+ "@@ -137,9 +137,8 @@ install: all\n",
+ "\ttest -d $(DESTDIR)$(INCLUDEDIR) || mkdir -m 755 -p $(DESTDIR)$(INCLUDEDIR)\n",
+ "\tcp hspell.h linginfo.h $(DESTDIR)$(INCLUDEDIR)/\n",
+ "\tchmod 644 $(DESTDIR)$(INCLUDEDIR)/hspell.h $(DESTDIR)$(INCLUDEDIR)/linginfo.h\n",
+ "-\ttest -f libhspell.so.0 && cp libhspell.so.0 $(DESTDIR)$(LIBDIR)/\n",
+ "-\ttest -f libhspell.so.0 && chmod 755 $(DESTDIR)$(LIBDIR)/libhspell.so.0\n",
+ "-\ttest -f libhspell.so.0 && ln -sf libhspell.so.0 $(DESTDIR)$(LIBDIR)/libhspell.so\n",
+ "+\ttest -f libhspell.dylib && cp libhspell.dylib $(DESTDIR)$(LIBDIR)/\n",
+ "+\ttest -f libhspell.dylib && chmod 755 $(DESTDIR)$(LIBDIR)/libhspell.dylib\n",
+ "\n",
+ "\n",
+ " ################################################\n",
+ "@@ -194,9 +193,8 @@ libhspell.a: $(LIBOBJS)\n",
+ "\t-ranlib $@\n",
+ "\n",
+ " # For building a shared library (--enable-shared)\n",
+ "-libhspell.so.0: $(LIBOBJS:.o=.lo)\n",
+ "-\t$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,libhspell.so.0 $^ -lz\n",
+ "-\tln -sf libhspell.so.0 libhspell.so\n",
+ "+libhspell.dylib: $(LIBOBJS:.o=.lo)\n",
+ "+\t$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -dynamiclib $^ -lz\n",
+ "\n",
+ " HSPELL_LIB = @HSPELL_LIB@\n",
+ " $(HSPELL_EXECUTABLE): hspell.o tclHash.o $(HSPELL_LIB)\n",
+ "diff --git configure.in configure.in\n",
+ "index 6081cff..061fa68 100644\n",
+ "--- configure.in\n",
+ "+++ configure.in\n",
+ "@@ -112,7 +112,7 @@ AC_ARG_ENABLE([shared],\n",
+ " if test x$ac_opt_shared = xyes\n",
+ " then\n",
+ "\tAC_MSG_NOTICE([Shared library building enabled.])\n",
+ "-\tHSPELL_LIB=\"libhspell.so.0\"\n",
+ "+\tHSPELL_LIB=\"libhspell.dylib\"\n",
+ " else\n",
+ "\tAC_MSG_NOTICE([Shared library building disabled.])\n",
+ "\tHSPELL_LIB=\"libhspell.a\"\n"
+ ]
+ }
+ ],
+ "install": [],
+ "version": "1.4",
+ "file": "hspell.rb"
+} \ No newline at end of file
diff --git a/homebrew/hspell/.make.sh-auto b/homebrew/hspell/.make.sh-auto
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/homebrew/hspell/.make.sh-auto
diff --git a/homebrew/hspell/_metadata/description b/homebrew/hspell/_metadata/description
new file mode 100644
index 000000000..1d2d8b56f
--- /dev/null
+++ b/homebrew/hspell/_metadata/description
@@ -0,0 +1 @@
+Free Hebrew linguistic project
diff --git a/homebrew/hspell/_metadata/homepage b/homebrew/hspell/_metadata/homepage
new file mode 100644
index 000000000..fd0356797
--- /dev/null
+++ b/homebrew/hspell/_metadata/homepage
@@ -0,0 +1 @@
+http://hspell.ivrix.org.il/
diff --git a/homebrew/hspell/_metadata/name b/homebrew/hspell/_metadata/name
new file mode 100644
index 000000000..8f73fde2e
--- /dev/null
+++ b/homebrew/hspell/_metadata/name
@@ -0,0 +1 @@
+Hspell
diff --git a/homebrew/hspell/_metadata/version b/homebrew/hspell/_metadata/version
new file mode 100644
index 000000000..c068b2447
--- /dev/null
+++ b/homebrew/hspell/_metadata/version
@@ -0,0 +1 @@
+1.4
diff --git a/homebrew/hspell/download.sh b/homebrew/hspell/download.sh
new file mode 100755
index 000000000..550c7acc1
--- /dev/null
+++ b/homebrew/hspell/download.sh
@@ -0,0 +1 @@
+wget http://hspell.ivrix.org.il/hspell-1.4.tar.gz \ No newline at end of file
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