Commit 332a3aac authored by Jeremy Bicha's avatar Jeremy Bicha

Add packages for perl and python bindings

parent 722f4dc0
......@@ -15,6 +15,7 @@ link-grammar (5.3.7-1) UNRELEASED; urgency=medium
* Run dh-autoreconf.
- Build-depend on dh-autoreconf and pkg-config
- Add 0001-fix-configure.patch to facilitate this.
* Add packages for perl and python bindings
* Build for hunspell not aspell as recommended upstream
* Disable tests since they weren't working
......
......@@ -6,11 +6,16 @@ Build-Depends:
ant [!hppa !alpha],
debhelper (>= 7.0.0),
default-jdk [!hppa !alpha],
dh-python,
libedit-dev,
libhunspell-dev,
perl,
pkg-config,
python-dev (>= 2.7),
swig
Standards-Version: 3.9.8
Homepage: http://www.abisource.com/projects/link-grammar/
X-Python-Version: >= 2.7
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/link-grammar.git
Vcs-Git: https://anonscm.debian.org/git/collab-maint/link-grammar.git
......@@ -107,6 +112,54 @@ Description: Carnegie Mellon University's link grammar parser (JNI library)
This package contains a Java JNI library for using link-grammar from your java
applications.
Package: liblink-grammar-perl
Architecture: any
Section: perl
Depends:
liblink-grammar5,
${misc:Depends},
${perl:Depends},
${shlibs:Depends},
Description: Carnegie Mellon University's link grammar parser (Perl library)
In Selator, D. and Temperly, D. "Parsing English with a Link Grammar"
(1991), the authors defined a new formal grammatical system called a
"link grammar". A sequence of words is in the language of a link
grammar if there is a way to draw "links" between words in such a way
that the local requirements of each word are satisfied, the links do
not cross, and the words form a connected graph. The authors encoded
English grammar into such a system, and wrote this program to parse
English using this grammar.
.
link-grammar can be used for linguistic parsing for information
retrieval or extraction from natural language documents. It can also be
used as a grammar checker.
.
This package contains a Perl library for using link-grammar.
Package: python-link-grammar
Architecture: any
Section: python
Depends:
liblink-grammar5,
${misc:Depends},
${python:Depends},
${shlibs:Depends},
Description: Carnegie Mellon University's link grammar parser (Python 2)
In Selator, D. and Temperly, D. "Parsing English with a Link Grammar"
(1991), the authors defined a new formal grammatical system called a
"link grammar". A sequence of words is in the language of a link
grammar if there is a way to draw "links" between words in such a way
that the local requirements of each word are satisfied, the links do
not cross, and the words form a connected graph. The authors encoded
English grammar into such a system, and wrote this program to parse
English using this grammar.
.
link-grammar can be used for linguistic parsing for information
retrieval or extraction from natural language documents. It can also be
used as a grammar checker.
.
This package contains a Python 2 library for using link-grammar.
Package: link-grammar-dictionaries-en
Architecture: all
Depends:
......
......@@ -2,10 +2,10 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND= -Wl,-O1 -Wl,--as-needed
JAVA_HOME := /usr/lib/jvm/default-java
export PERL_EXT_LIB = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)
%:
dh $@ --parallel --with autoreconf
dh $@ --parallel --with autoreconf,python2
override_dh_auto-clean:
dh_auto_clean
......@@ -13,10 +13,14 @@ override_dh_auto-clean:
rm linkgrammar-*.jar
override_dh_auto_configure:
dh_auto_configure -- --disable-static --enable-pthreads
dh_auto_configure -- \
--disable-static \
--enable-pthreads \
--enable-perl-bindings \
--enable-python-bindings
override_dh_auto_install:
dh_auto_install
override_dh_install:
rm -f debian/tmp/usr/lib/python*/dist-packages/*/*.la
dh_install -pliblink-grammar5-java \
usr/lib/$(DEB_HOST_MULTIARCH)/liblink-grammar-java.so* \
usr/lib/$(DEB_HOST_MULTIARCH)/jni
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment