~ubuntu-branches/ubuntu/lucid/plexus-velocity/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Claude
  • Date: 2009-09-02 22:18:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090902221848-e3k0tpft2jka48w5
Tags: 1.1.7-3
* Add Build-Depends on openjdk-6-doc (Closes: #543116)
* Build-Depends on default-jdk instead of default-jdk-builddep,
  as gcj is not used
* Bump up Standards-Version to 3.8.3, no change

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
include /usr/share/cdbs/1/rules/debhelper.mk
4
4
include /usr/share/cdbs/1/class/ant.mk
5
 
include /usr/share/cdbs/1/rules/simple-patchsys.mk
6
5
 
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 \
12
 
                        junit.jar
 
6
PACKAGE              := $(DEB_SOURCE_PACKAGE)
 
7
VERSION              := $(DEB_UPSTREAM_VERSION)
 
8
JAVA_HOME            := /usr/lib/jvm/default-java
 
9
DEB_JARS             := ant-nodeps ant-trax ant-junit junit \
 
10
                        commons-collections plexus-container-default velocity
13
11
DEB_ANT_BUILD_TARGET := package javadoc
14
 
DEB_ANT_BUILDFILE    := ./debian/build.xml
15
 
DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -DartifactId=$(PACKAGE) -Dversion=$(VERSION)
 
12
DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
 
13
DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
16
14
API_DOCS             := build/api
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
20
15
 
21
16
get-orig-source:
22
 
        echo "Getting version $(VERSION) from $(SVN)"
23
 
        mkdir orig_tmp
24
 
        cd orig_tmp && \
25
 
                svn export -q $(SVN) $(PACKAGE) && \
26
 
                tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
27
 
        rm -rf orig_tmp
 
17
        uscan --download-version $(VERSION) --force-download --rename
28
18
 
29
19
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;
 
20
        mh_installpoms -plib$(PACKAGE)-java
 
21
        mh_installjar -plib$(PACKAGE)-java -l pom.xml build/$(PACKAGE)-$(VERSION).jar
 
22
 
 
23
clean::
 
24
        -rm -rf debian/tmp
32
25
 
33
26
binary-post-install/lib$(PACKAGE)-java-doc::
34
 
        mv build/javadoc build/api
35
27
        dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java