~ubuntu-branches/ubuntu/vivid/cobertura/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-05-11 19:21:46 UTC
  • mfrom: (0.1.4 sid) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100511192146-j742v5jsl89ztndu
Tags: 1.9.4.1+dfsg-2
* Now Build-Depends on libservlet2.5-java and add a missing Depends
  on the same package. (Closes: #580842). 
* Simplify list of JRE dependences for cobertura and drop JRE dependences for
  libcobertura-java as Java libraries are no longer required to depend on a
  JVM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/cdbs/1/class/ant.mk
4
 
include /usr/share/cdbs/1/rules/debhelper.mk
5
 
 
6
 
JAVA_HOME               := /usr/lib/jvm/default-java/
7
 
DEB_ANT_BUILD_TARGET    := jar
8
 
DEB_ANT_CHECK_TARGET    := test
9
 
DEB_JARS := \
10
 
asm2 asm2-tree log4j-1.2 oro junit \
11
 
jaxen jdom1 xalan2 xercesImpl xmlParserAPIs ant-junit.jar ant-trax.jar
12
 
 
13
 
DEB_ANT_ARGS            := -Dbuild.sysclasspath=first
14
 
 
15
 
INSTALL_DIR             := usr/share/java
16
 
 
17
 
pre-build::
18
 
        ln -sf /usr/share/xml/xhtml/schema/dtd/1.0/xhtml* $(DEB_SRCDIR)/etc/dtds/
19
 
        
20
 
install/libcobertura-java::
21
 
        install -m 644 -D cobertura.jar $(DEB_SRCDIR)/debian/libcobertura-java/$(INSTALL_DIR)/cobertura-$(DEB_UPSTREAM_VERSION).jar
22
 
        dh_link /$(INSTALL_DIR)/cobertura-$(DEB_UPSTREAM_VERSION).jar /$(INSTALL_DIR)/cobertura.jar
23
 
        
24
 
clean::
25
 
        rm -rf $(DEB_SRCDIR)/examples/**/*.ser
26
 
        rm -rf $(DEB_SRCDIR)/examples/**/instrumented
27
 
        rm -rf $(DEB_SRCDIR)/examples/**/classes
28
 
        rm -rf $(DEB_SRCDIR)/examples/**/reports
29
 
        rm -rf $(DEB_SRCDIR)/etc/dtds/xhtml*
30
 
        
 
3
DEB_UPSTREAM_VERSION := \
 
4
        $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)+dfsg-.*/\1/p')
 
5
 
 
6
%:
 
7
        dh --with javahelper $@
 
8
 
 
9
override_dh_auto_build:
 
10
        ant dist
 
11
        docbook-to-man debian/cobertura-check.sgml > cobertura-check.1
 
12
        docbook-to-man debian/cobertura-instrument.sgml > cobertura-instrument.1
 
13
        docbook-to-man debian/cobertura-merge.sgml > cobertura-merge.1
 
14
        docbook-to-man debian/cobertura-report.sgml > cobertura-report.1
 
15
 
 
16
override_dh_auto_install:
 
17
        dh_auto_install
 
18
        mh_installpom -plibcobertura-java $(CURDIR)/debian/cobertura.pom
 
19
        mh_installjar -plibcobertura-java -l $(CURDIR)/debian/cobertura.pom \
 
20
                $(CURDIR)/cobertura.jar
 
21
        mh_installpom -plibcobertura-java $(CURDIR)/debian/cobertura-runtime.pom
 
22
 
 
23
override_dh_auto_clean:
 
24
        dh_auto_clean
 
25
        rm -rf build
 
26
 
31
27
get-orig-source:
32
28
        uscan \
33
29
                --verbose \
34
30
                --no-symlink \
35
31
                --upstream-version $(DEB_UPSTREAM_VERSION) \
36
32
                --download-version $(DEB_UPSTREAM_VERSION) \
 
33
                --destdir .                                \
37
34
                --force-download