File: rules

package info (click to toggle)
plexus-container-default 1.0-alpha-9-stable-1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,776 kB
  • ctags: 2,057
  • sloc: java: 11,200; xml: 859; makefile: 26
file content (33 lines) | stat: -rwxr-xr-x 1,267 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/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := ant-trax ant-nodeps xalan2 classworlds plexus-utils junit
DEB_ANT_BUILD_TARGET := package javadoc
DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
API_DOCS             := build/api
SVN                  := http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-container-default-$(VERSION)

get-orig-source:
	echo "Getting from $(SVN)"
	mkdir orig_tmp
	cd orig_tmp && \
		svn export -q $(SVN) $(PACKAGE) && \
		tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
	rm -rf orig_tmp

binary-post-install/lib$(PACKAGE)-java::
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l --usj-name=$(PACKAGE)-alpha pom.xml build/$(PACKAGE)-$(VERSION).jar

clean::
	-rm -rf debian/tmp

binary-post-install/lib$(PACKAGE)-java-doc::
	dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java