File: rules

package info (click to toggle)
clojure 1.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,348 kB
  • sloc: java: 41,028; xml: 589; sh: 96; makefile: 28
file content (43 lines) | stat: -rwxr-xr-x 1,311 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
#!/usr/bin/make -f

SHELL := /bin/bash
VER := 1.10
JAVA_HOME = /usr/lib/jvm/default-java

%:
	dh $@ --with javahelper,maven-repo-helper

override_dh_auto_configure:
	dh_auto_configure
	cp debian/maven-classpath.properties .

override_dh_auto_build:
	dh_auto_build -- jar

override_dh_install:
	$(JAVA_HOME)/bin/java -cp clojure.jar:/usr/share/maven-repo/org/clojure/spec.alpha/debian/spec.alpha-debian.jar:/usr/share/maven-repo/org/clojure/core.specs.alpha/debian/core.specs.alpha-debian.jar clojure.main debian/gencompletions.clj > debian/clojure/etc/rlwrap/clojure$(VER)

	dh_install

	sed -i 's/@VER@/$(VER)/g' debian/clojure/usr/bin/*
	file-rename 's/$$/$(VER)/' debian/clojure/usr/bin/*
	mh_installpom -plibclojure-java --no-parent pom.xml
	mh_installjar -plibclojure-java -l pom.xml clojure.jar /usr/share/java/clojure-$(VER).jar

	# Set unversioned link with alternatives instead
	rm debian/libclojure-java/usr/share/java/clojure.jar

override_jh_classpath:
	jh_classpath -plibclojure-java

override_dh_installman:
	dh_installman
	file-rename 's/\.(.)$$/$(VER).$$1/' debian/clojure/usr/share/man/*/*

override_dh_installchangelogs:
	dh_installchangelogs changes.md

override_dh_strip_nondeterminism:

get-orig-source:
	uscan --download-current-version --force-download --repack --rename --compression xz