File: rules

package info (click to toggle)
apache-opennlp 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,348 kB
  • sloc: java: 79,148; xml: 62,012; sh: 34; makefile: 18
file content (24 lines) | stat: -rwxr-xr-x 813 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

OPENNLP_MAVEN_DIR = debian/maven-repo/org/apache/opennlp/opennlp-tools/debian

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure
	mkdir --parents ${OPENNLP_MAVEN_DIR}
	test -e ${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.pom || \
		ln -s ../../../../../../../opennlp-tools/pom.xml \
		${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.pom
	test -e ${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.jar || \
		ln -s ../../../../../../../opennlp-tools/target/opennlp-tools-$(DEB_VERSION_UPSTREAM).jar \
		${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.jar

override_dh_installman:
	help2man debian/bin/opennlp --help-option=' ' --section=1 --no-info \
		--version-string=$(DEB_VERSION_UPSTREAM) \
		--name='CLI interface to Apache OpenNLP' > debian/opennlp.1
	dh_installman