File: rules

package info (click to toggle)
texhyphj 1.2+dfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 448 kB
  • sloc: java: 2,033; xml: 297; makefile: 24
file content (35 lines) | stat: -rwxr-xr-x 1,115 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
#!/usr/bin/make -f
#vim: set noexpandtab sts=4 ts=4 sw=4 tw=80:
include /usr/share/dpkg/pkg-info.mk

JAVA_HOME=/usr/lib/jvm/default-java

ARTIFACT_ID = texhyphj
GROUP_ID = com.googlecode.texhyphj
ORIG_TAG = release-1.2
PACKAGE=libtexhyphj-java

%:
	dh $@ --with javahelper

override_dh_auto_clean:
	dh_auto_clean
	mh_clean

override_dh_auto_install:
	mh_installpom -p$(PACKAGE) --relocate=$(GROUP_ID):$(ARTIFACT_ID):3.x pom.xml
	mh_installjar -p$(PACKAGE) -n$(ARTIFACT_ID) --usj-version=3.x --java-lib \
		pom.xml ant-build/output/dist/texhyphj.jar

# repack original release to get a truly DFSG-free tarball; most files seem to
# be free, but are either binary or miss an explicit licencing stanza
get-orig-source:
	git clone --quiet https://github.com/joeha480/texhyphj;\
		cd texhyphj && git checkout --quiet $(ORIG_TAG) && cd ..; \
		mv texhyphj tmp; mv tmp/texhyphj .; rm -rf tmp; \
		rm -rf texhyphj/.git* texhyphj/.gradle texhyphj/gradle; \
		rm -rf texhyphj/src/test/resources/; \
		rm -rf texhyphj/lib; \
		tar cJf ../texhyphj_$(DEB_VERSION_UPSTREAM:+dfsg=)+dfsg.orig.tar.xz texhyphj; \
		rm -rf texhyphj