Commit 80f22c64 authored by Jeremy Bicha's avatar Jeremy Bicha

Build-depend on libedit-dev

Clean up d/rules some more
parent e5e8bb41
......@@ -13,7 +13,7 @@ link-grammar (5.3.7-1) UNRELEASED; urgency=medium
- Add debian/upstream/signing-key.asc
- Update debian/watch
* Run dh-autoreconf.
- Build-depend on dh-autoreconf, pkg-config and
- Build-depend on dh-autoreconf and pkg-config
- Add 0001-fix-configure.patch to facilitate this.
* Build for hunspell not aspell as recommended upstream
* Disable tests since they weren't working
......
......@@ -8,10 +8,9 @@ Build-Depends:
debhelper (>= 7.0.0),
default-jdk [!hppa !alpha],
dh-autoreconf,
fastjar [!hppa !alpha],
libedit-dev,
libhunspell-dev,
pkg-config,
swig,
Standards-Version: 3.9.8
Homepage: http://www.abisource.com/projects/link-grammar/
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/link-grammar.git
......
......@@ -2,27 +2,17 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND= -Wl,-O1 -Wl,--as-needed
# doesn't build with -Wl,-z,defs
ifneq (,$(shell dh_listpackages -s | grep liblink-grammar5-java))
WITH_JAVA := yes
JAVA_HOME := /usr/lib/jvm/default-java
#DEB_DH_MAKESHLIBS_ARGS_liblink-grammar5-java := --no-act
else
WITH_JAVA := no
endif
JAVA_HOME := /usr/lib/jvm/default-java
%:
dh $@ --parallel --with autoreconf
override_dh_auto-clean:
$(RM) -r bin/org
$(RM) linkgrammar-*.jar
rm -r bin/org
rm linkgrammar-*.jar
override_dh_auto_configure:
dh_auto_configure -- \
--disable-static --enable-pthreads \
--without-binreloc --disable-viterbi
dh_auto_configure -- --disable-static --enable-pthreads
override_dh_auto_install:
dh_auto_install
......@@ -32,3 +22,5 @@ override_dh_auto_install:
dh_install --list-missing
override_dh_auto_test:
# Go ahead and run the tests but don't fail the build because of them
dh_auto_test || true
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