File: rules

package info (click to toggle)
libjchart2d-java 3.2.2+dfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,800 kB
  • sloc: java: 24,747; xml: 827; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 744 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
#!/usr/bin/make -f
# export DH_VERBOSE=1
PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s*([\d\.]+)}')
export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/jide-oss.jar:/usr/share/java/xmlgraphics-commons.jar

%:
	dh $@ --with javahelper,jh_maven_repo_helper

override_dh_auto_build:
	dh_auto_build --sourcedirectory=jchart2d

get-orig-source:
	uscan --verbose --repack --compression xz --force-download

get-orig-pom:
	# Maven uses a wrong version. The latest version is 3.2.2. This was
	# corrected in Debian's pom.xml file.
	wget -O debian/pom.xml \
	https://repo1.maven.org/maven2/net/sf/jchart2d/jchart2d/3.3.2/jchart2d-3.3.2.pom