3
include /usr/share/cdbs/1/rules/debhelper.mk
4
include /usr/share/cdbs/1/class/ant.mk
5
include /usr/share/cdbs/1/rules/simple-patchsys.mk
7
PACKAGE := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
8
VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | sed "s,Version: \(.*\)-.*,\1,g")
9
JAVA_HOME := /usr/lib/jvm/java-gcj
10
ANT_HOME := /usr/share/ant
11
DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar $(ANT_HOME)/lib/ant-junit.jar \
13
DEB_ANT_BUILD_TARGET := package javadoc
14
DEB_ANT_BUILDFILE := ./debian/build.xml
15
DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -DartifactId=$(PACKAGE) -Dversion=$(VERSION)
17
#SVN := http://svn.codehaus.org/plexus/plexus-components/tags/$(PACKAGE)-$(VERSION)
18
# Following revision is really 1.6.1, but with missing license information corrected.
19
SVN := http://svn.codehaus.org/plexus/plexus-components/trunk/$(PACKAGE) -r 6624
22
echo "Getting version $(VERSION) from $(SVN)"
25
svn export -q $(SVN) $(PACKAGE) && \
26
tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
29
binary-post-install/lib$(PACKAGE)-java::
30
dh_install -plib$(PACKAGE)-java build/$(PACKAGE)-$(VERSION).jar usr/share/java
31
dh_link -plib$(PACKAGE)-java usr/share/java/$(PACKAGE)-$(VERSION).jar usr/share/java/$(PACKAGE).jar;
33
binary-post-install/lib$(PACKAGE)-java-doc::
34
mv build/javadoc build/api
35
dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java