File: rules

package info (click to toggle)
libezmorph-java 1.0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 392 kB
  • ctags: 553
  • sloc: java: 4,774; makefile: 19; xml: 18; sh: 12
file content (26 lines) | stat: -rwxr-xr-x 1,011 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
#!/usr/bin/make -f

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

JAVA_HOME            := /usr/lib/jvm/default-java
DEB_ANT_BUILDFILE    := debian/build.xml
DEB_JARS             := commons-lang commons-beanutils commons-logging junit4
PACKAGE              := ezmorph
MAVEN_REPO           := http://repo1.maven.org/maven2

install/libezmorph-java:: 
	install -m644 -D ezmorph.jar $(DEB_DESTDIR)/usr/share/java/ezmorph-$(DEB_UPSTREAM_VERSION).jar
	dh_link -plibezmorph-java /usr/share/java/ezmorph-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/ezmorph.jar

binary-post-install/lib$(PACKAGE)-java::
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l debian/poms/$(PACKAGE).pom $(PACKAGE).jar 

get-orig-source:
	-uscan --upstream-version 0 --rename	

get-orig-pom:
	mkdir -p debian/poms
	wget  -U NoSuchBrowser/1.0 -O debian/poms/$(PACKAGE).xml \
		$(MAVEN_REPO)/net/sf/ezmorph/$(PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).pom