summaryrefslogtreecommitdiff
path: root/data/libdict
diff options
context:
space:
mode:
Diffstat (limited to 'data/libdict')
-rw-r--r--data/libdict/_metadata/description2
-rw-r--r--data/libdict/_metadata/license20
l---------data/libdict/_metadata/maintainer1
-rw-r--r--data/libdict/_metadata/priority1
-rw-r--r--data/libdict/_metadata/section1
-rw-r--r--data/libdict/_metadata/version1
-rw-r--r--data/libdict/libdict-0.9.tar.gzbin0 -> 49548 bytes
-rw-r--r--data/libdict/make.sh8
-rw-r--r--data/libdict/namespace.diff13
-rw-r--r--data/libdict/tools.diff35
10 files changed, 82 insertions, 0 deletions
diff --git a/data/libdict/_metadata/description b/data/libdict/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/libdict/_metadata/description
@@ -0,0 +1,2 @@
+this package isn't described yet
+This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later.
diff --git a/data/libdict/_metadata/license b/data/libdict/_metadata/license
new file mode 100644
index 000000000..2787e673e
--- /dev/null
+++ b/data/libdict/_metadata/license
@@ -0,0 +1,20 @@
+ Copyright (c) 2001, 2002 Steven Young
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/data/libdict/_metadata/maintainer b/data/libdict/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/libdict/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/libdict/_metadata/priority b/data/libdict/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/libdict/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/libdict/_metadata/section b/data/libdict/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/libdict/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/libdict/_metadata/version b/data/libdict/_metadata/version
new file mode 100644
index 000000000..b63ba696b
--- /dev/null
+++ b/data/libdict/_metadata/version
@@ -0,0 +1 @@
+0.9
diff --git a/data/libdict/libdict-0.9.tar.gz b/data/libdict/libdict-0.9.tar.gz
new file mode 100644
index 000000000..8ee8666b2
--- /dev/null
+++ b/data/libdict/libdict-0.9.tar.gz
Binary files differ
diff --git a/data/libdict/make.sh b/data/libdict/make.sh
new file mode 100644
index 000000000..f6eda4ab7
--- /dev/null
+++ b/data/libdict/make.sh
@@ -0,0 +1,8 @@
+pkg:extract
+cd *
+pkg:patch
+cd src
+make CC=arm-apple-darwin-gcc CXX=arm-apple-darwin-g++
+pkg: mkdir -p /usr/lib /usr/include
+pkg: cp -a libdict.a /usr/lib
+pkg: cp -a include/*.{h,hpp} /usr/include
diff --git a/data/libdict/namespace.diff b/data/libdict/namespace.diff
new file mode 100644
index 000000000..aefde1da0
--- /dev/null
+++ b/data/libdict/namespace.diff
@@ -0,0 +1,13 @@
+diff -ru libdict-0.9/src/examples/cpptest.cpp libdict-0.9+iPhone/src/examples/cpptest.cpp
+--- libdict-0.9/src/examples/cpptest.cpp 2002-03-15 19:03:40.000000000 +0000
++++ libdict-0.9+iPhone/src/examples/cpptest.cpp 2008-01-01 23:33:06.000000000 +0000
+@@ -32,6 +32,8 @@
+ #include <unistd.h>
+ #include "libdict-wrap.hpp"
+
++using namespace std;
++
+ int main(int argc, char **argv) {
+ class dictConn dc;
+ char optch;
+
diff --git a/data/libdict/tools.diff b/data/libdict/tools.diff
new file mode 100644
index 000000000..16f469f20
--- /dev/null
+++ b/data/libdict/tools.diff
@@ -0,0 +1,35 @@
+diff -ru libdict-0.9/src/examples/Makefile libdict-0.9+iPhone/src/examples/Makefile
+--- libdict-0.9/src/examples/Makefile 2002-03-14 17:23:04.000000000 +0000
++++ libdict-0.9+iPhone/src/examples/Makefile 2008-01-01 23:32:52.000000000 +0000
+@@ -7,8 +7,8 @@
+ all: dictcli cpptest
+
+ dictcli:
+- cc -o dictcli dictcli.c ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
++ $(CC) -o dictcli dictcli.c ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
+ cpptest:
+- c++ -o cpptest cpptest.cpp ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
++ $(CXX) -o cpptest cpptest.cpp ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
+ clean:
+ rm -f *.o dictcli cpptest *.core
+diff -ru libdict-0.9/src/Makefile libdict-0.9+iPhone/src/Makefile
+--- libdict-0.9/src/Makefile 2002-03-15 19:10:17.000000000 +0000
++++ libdict-0.9+iPhone/src/Makefile 2008-01-01 23:32:32.000000000 +0000
+@@ -18,13 +18,13 @@
+ ${CXX} ${CFLAGS} -c libdict-wrap.cpp
+ libdict.a: ${OBJ} ${CPPOBJ}
+ rm -f libdict.a
+- ar rc libdict.a *.o
+- ranlib libdict.a
++ arm-apple-darwin-ar rc libdict.a *.o
++ arm-apple-darwin-ranlib libdict.a
+ clean: clean-example
+ rm -f *.o *.core core
+ superclean: clean
+ rm -f libdict.a
+ example:
+- (cd examples; make)
++ (cd examples; $(MAKE))
+ clean-example:
+- (cd examples; make clean)
++ (cd examples; $(MAKE) clean)