File: rules

package info (click to toggle)
boilerpipe 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 524 kB
  • sloc: java: 4,298; xml: 187; makefile: 18
file content (25 lines) | stat: -rwxr-xr-x 818 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
25
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java
ANT_OPTS             := -Dlib.dir=.
DEB_JARS             := xercesImpl nekohtml
DEB_ANT_BUILD_TARGET := jars

binary-post-install/lib$(PACKAGE)-java::
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l debian/pom.xml dist/boilerpipe-$(VERSION).jar
	jh_classpath -plibboilerpipe-java

clean::
	mh_clean

get-orig-source:
	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

get-orig-pom:
	wget -O debian/pom.xml http://boilerpipe.googlecode.com/svn/repo/de/l3s/boilerpipe/boilerpipe/$(VERSION)/boilerpipe-$(VERSION).pom