File: rules

package info (click to toggle)
ivy 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,832 kB
  • ctags: 8,890
  • sloc: java: 50,971; xml: 2,035; makefile: 24; sh: 12
file content (33 lines) | stat: -rwxr-xr-x 1,158 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
#!/usr/bin/make -f

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

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
MVN_VERSION          := $(shell echo $(VERSION) | sed 's/~/-/')
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_BUILDFILE    := debian/build.xml
DEB_JARS             := commons-httpclient commons-lang commons-cli commons-collections3 \
                        commons-vfs2 junit jsch oro bcprov bcpg \
                        jsch.agentproxy.core jsch.agentproxy.connector-factory jsch.agentproxy.jsch
API_DOCS             := api

binary-post-install/$(PACKAGE)::
	mh_installpoms -p$(PACKAGE)
	mh_installjar -p$(PACKAGE) -l debian/pom.xml ivy.jar

binary-post-install/$(PACKAGE)-doc::
	dh_install -p$(PACKAGE)-doc $(API_DOCS) usr/share/doc/$(PACKAGE)

clean::
	-rm -rf debian/tmp
	mh_clean

get-orig-source:
	-uscan --force-download --rename

get-orig-pom:
	wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/org/apache/ivy/ivy/$(MVN_VERSION)/ivy-$(MVN_VERSION).pom