~ubuntu-branches/ubuntu/intrepid/plexus-velocity/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Paul Cager
  • Date: 2007-06-12 23:57:35 UTC
  • Revision ID: james.westby@ubuntu.com-20070612235735-vcjn8tf7rtyhzlq6
Tags: 1.1.6-1
Initial release. (Closes: #426227)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
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
 
6
 
 
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
 
13
DEB_ANT_BUILD_TARGET := package javadoc
 
14
DEB_ANT_BUILDFILE    := ./debian/build.xml
 
15
DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -DartifactId=$(PACKAGE) -Dversion=$(VERSION)
 
16
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
 
 
21
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
 
28
 
 
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;
 
32
 
 
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