File: rules

package info (click to toggle)
libwoodstox-java 1%3A4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 4,284 kB
  • ctags: 6,021
  • sloc: java: 56,341; xml: 448; makefile: 22; sh: 10
file content (30 lines) | stat: -rwxr-xr-x 975 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
26
27
28
29
30
#!/usr/bin/make -f

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

JAVA_HOME            := /usr/lib/jvm/default-java
ANT_HOME             := /usr/share/ant
DEB_ANT_COMPILER     := modern
DEB_JARS             := ant-nodeps junit ant-junit ant-trax
DEB_ANT_BUILD_TARGET := debiandist
DEB_BUILDDIR         := .
DEB_ANT_BUILDFILE    := build.xml
DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_CHECK_TARGET := test

clean::
	-rm -Rf build doc test dist woodstox-core-lgpl.patched.pom
	mh_clean

configure/libwoodstox-java::
	# Patch the POM to include the correct version number
	cp src/maven/woodstox-core-lgpl.pom woodstox-core-lgpl.patched.pom
	sed -i woodstox-core-lgpl.patched.pom -e 's/@VERSION@/$(DEB_UPSTREAM_VERSION)/g'
	sed -i woodstox-core-lgpl.patched.pom -e 's/javax.xml.stream/stax/'

install/libwoodstox-java::
	mh_install -plibwoodstox-java

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