[clojure] 02/02: Added the spec.alpha and core.specs.alpha dependencies to the build classpath

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Feb 27 17:16:43 UTC 2018


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository clojure.

commit fac3d559e29ae601a733a711b5ea0f66e663658a
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Feb 27 18:15:19 2018 +0100

    Added the spec.alpha and core.specs.alpha dependencies to the build classpath
---
 debian/clean                      | 1 +
 debian/control                    | 2 ++
 debian/maven-classpath.properties | 2 ++
 debian/rules                      | 6 +++++-
 4 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..6951931
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+maven-classpath.properties
diff --git a/debian/control b/debian/control
index 1e4557d..f8ba0ae 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,8 @@ Build-Depends:
  debhelper (>= 11),
  default-jdk,
  javahelper,
+ libcore-specs-alpha-clojure,
+ libspec-alpha-clojure,
  maven-repo-helper,
  rename
 Standards-Version: 4.1.3
diff --git a/debian/maven-classpath.properties b/debian/maven-classpath.properties
new file mode 100644
index 0000000..55efad4
--- /dev/null
+++ b/debian/maven-classpath.properties
@@ -0,0 +1,2 @@
+maven.compile.classpath=/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
diff --git a/debian/rules b/debian/rules
index f2a4e5e..c566119 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,11 +7,15 @@ JAVA_HOME = /usr/lib/jvm/default-java
 %:
 	dh $@ --with 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 clojure.main debian/gencompletions.clj > debian/clojure/etc/rlwrap/clojure$(VER)
+	$(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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/clojure.git



More information about the pkg-java-commits mailing list