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
|
#!/usr/bin/make -f
include /usr/share/java/java_defaults.mk
include /usr/share/javahelper/java-vars.mk
export JAVA_HOME=/usr/lib/jvm/default-java
export JH_JAR_EXTRA=project.clj
PRODUCED_JAR=hypirion-io.jar
NAMESPACE=com.hypirion/io
MAVEN_META=META-INF/maven/$(NAMESPACE)
LEIN_META=META-INF/leiningen/$(NAMESPACE)
%:
dh $@ --with javahelper,jh_maven_repo_helper
override_jh_build:
jh_build --javacopts="-target $(java_compat_level) -source $(java_compat_level) -Xlint:-options" $(PRODUCED_JAR) src
mkdir -p $(CURDIR)/meta/$(MAVEN_META)
mkdir -p $(CURDIR)/meta/$(LEIN_META)
cp $(CURDIR)/project.clj $(CURDIR)/meta/$(LEIN_META)
cp $(CURDIR)/debian/maven-meta/* $(CURDIR)/meta/$(MAVEN_META)
jar uf $(PRODUCED_JAR) -C meta/ META-INF
jar uf $(PRODUCED_JAR) project.clj
override_jh_clean:
jh_clean
rm -f $(CURDIR)/$(PRODUCED_JAR)
rm -rf $(CURDIR)/meta
override_mh_linkjars:
mh_installjar --usj-name=hypirion-io --skip-clean-pom --package=libcom-hypirion-io-clojure -l debian/pom.xml $(PRODUCED_JAR)
get-orig-source:
uscan --force-download --verbose
|