File: rules

package info (click to toggle)
icu4j-4.4 4.4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 50,228 kB
  • ctags: 28,327
  • sloc: java: 260,162; xml: 4,434; perl: 3,097; makefile: 23; sh: 14
file content (32 lines) | stat: -rwxr-xr-x 924 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

export JAVA_HOME:=/usr/lib/jvm/default-java/

%:
	dh $@

override_dh_auto_build:
	# Use the eclipse helper to create an environment - this build does not
	# clean up "sanely" after itself.
	jh_setupenvironment
	cd debian/.eclipse-build && ant -Dicu4j.javac.source=1.5 -Dicu4j.javac.target=1.5 \
	   jar # eclipseProjects eclipseCoreProject eclipseWrapperProject
	cd debian/.eclipse-build/eclipse-build/ && ant icuProjectFiles icuTestsProjectFiles \
           icuBaseProjectFiles icuBaseTestsProjectFiles
	cd debian/.eclipse-build && ant -f $(CURDIR)/debian/build.xml build-jars
	for JAR in *.jar ; do \
		BASE=`basename $$JAR .jar` ; \
		zip -d $$JAR META-INF/MANIFEST.MF ; \
		jar umf debian/$$BASE.MF $$JAR ; \
		mv $$JAR $$BASE-4.4.jar ; \
	done

override_dh_install:
	dh_install *.jar usr/share/java

override_dh_auto_clean:
	jh_clean
	rm -f *.jar

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