File: rules

package info (click to toggle)
httpcomponents-client 4.0.1-1squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,324 kB
  • ctags: 3,523
  • sloc: java: 27,171; xml: 3,857; python: 43; makefile: 32
file content (47 lines) | stat: -rwxr-xr-x 1,195 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

UPVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d- -f1)

SKIPTEST=false
ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	SKIPTEST=true
endif

%:
	dh $@

override_dh_installchangelogs:
	dh_installchangelogs RELEASE_NOTES.txt

override_dh_auto_build:
	mh_patchpom -plibhttpclient-java --no-parent pom.xml
	for pkg in libhttpclient-java libhttpmime-java; do \
		mh_patchpoms -p$$pkg ; \
	done
	mvn -o -s /etc/maven2/settings-debian.xml \
	  -Dmaven.test.skip=$(SKIPTEST) package

override_dh_auto_install:
	dh_auto_install

	for pkg in libhttpclient-java libhttpmime-java; do \
		mh_installpoms -p$$pkg -e$(UPVER); \
	done

	mh_installjar -plibhttpclient-java -l httpclient/pom.xml -i$(UPVER) -e$(UPVER) \
	  httpclient/target/httpclient-debian.jar
	mh_installjar -plibhttpmime-java -l httpmime/pom.xml -i$(UPVER) -e$(UPVER)\
	  httpmime/target/httpmime-debian.jar

override_dh_clean:
	dh_clean

	for pkg in libhttpclient-java libhttpmime-java; do \
		mh_unpatchpoms -p$$pkg ; \
	done
	[ ! -e pom.xml.save ] || mv pom.xml.save pom.xml
	-rm -rf http*/target/ debian/.mh/