File: rules

package info (click to toggle)
rhino 1.7R4-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,484 kB
  • sloc: java: 82,485; xml: 769; sh: 30; makefile: 30
file content (49 lines) | stat: -rwxr-xr-x 2,179 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/javahelper.mk
include /usr/share/cdbs/1/class/ant.mk

JAVA_HOME := /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET := jar javadoc 

UVERSION	:= $(shell echo $(DEB_UPSTREAM_VERSION) | sed "s/~RC.//" | sed "s/~pre/pre/")
BUILDDIRVERSION	:= $(subst .,_,$(UVERSION))

BUILDDIR=build/rhino$(BUILDDIRVERSION)

POM_VERSION          := $(UVERSION)
MAVEN_REPO           := http://repository.sonatype.org/service/local/repositories/central/content

clean::
	rm -rf toolsrc/org/mozilla/javascript/tools/debugger/downloaded/*
	rm -rf build
	mh_clean

# The upstream build file (toolsrc/org/mozilla/javascript/tools/debugger/build.xml) downloads
# a ZIP file containing some sample swing code, which is then modified and used as part of the
# debugger. This is obviously not permitted during a Debian build.
# Fortunately the sample code is DFSG-free, so it has been included in the debian directory (in
# its modified format).  Copying it to the "downloaded" directory prevents the upstream
# build.xml from attempting to download it.
configure/rhino::
	mkdir -p toolsrc/org/mozilla/javascript/tools/debugger/downloaded
	cp debian/src_from_treetable_article_see_bug409629/AbstractCellEditor.java toolsrc/org/mozilla/javascript/tools/debugger/downloaded/
	cp debian/src_from_treetable_article_see_bug409629/JTreeTable.java toolsrc/org/mozilla/javascript/tools/debugger/downloaded/
	cp debian/src_from_treetable_article_see_bug409629/TreeTableModel.java toolsrc/org/mozilla/javascript/tools/debugger/downloaded/
	cp debian/src_from_treetable_article_see_bug409629/TreeTableModelAdapter.java toolsrc/org/mozilla/javascript/tools/debugger/downloaded/

install/librhino-java::
	mh_installpom -plibrhino-java -e$(UVERSION) debian/pom.xml
	mh_installjar -plibrhino-java -e$(UVERSION) -l debian/pom.xml $(BUILDDIR)/js.jar

install/librhino-java-doc::
	mv $(BUILDDIR)/javadoc $(BUILDDIR)/api
	dh_install -plibrhino-java-doc $(BUILDDIR)/api /usr/share/doc/rhino/

get-orig-source:
	uscan --force-download

get-orig-pom:
	wget -O debian/pom.xml $(MAVEN_REPO)/rhino/js/$(POM_VERSION)/js-$(POM_VERSION).pom