Refactor LEIN_BOOTSTRAP

Since we have to hardcode this here for the time being, let's make so in
a way that's more git- (and human-) friendly.
parent ffd37d5f
......@@ -5,7 +5,55 @@ include /usr/share/dpkg/pkg-info.mk
export LEIN_HOME=$(CURDIR)/.lein
LEIN_BOOTSTRAP="debian/maven-repo/leiningen-core/leiningen-core/$(DEB_VERSION_UPSTREAM)/leiningen-core-$(DEB_VERSION_UPSTREAM).jar:debian/maven-repo/org/clojure/clojure/1.8.x/clojure-1.8.x.jar:debian/maven-repo/bultitude/bultitude/debian/bultitude-debian.jar:debian/maven-repo/org/flatland/classlojure/debian/classlojure-debian.jar:debian/maven-repo/robert/hooke/debian/hooke-debian.jar:debian/maven-repo/com/cemerick/pomegranate/debian/pomegranate-debian.jar:debian/maven-repo/org/apache/maven/maven-resolver-provider/3.x/maven-resolver-provider-3.x.jar:debian/maven-repo/org/apache/maven/maven-model/3.x/maven-model-3.x.jar:debian/maven-repo/org/apache/maven/maven-model-builder/3.x/maven-model-builder-3.x.jar:debian/maven-repo/org/codehaus/plexus/plexus-interpolation/debian/plexus-interpolation-debian.jar:debian/maven-repo/org/apache/maven/maven-artifact/3.x/maven-artifact-3.x.jar:debian/maven-repo/org/apache/maven/maven-builder-support/3.x/maven-builder-support-3.x.jar:debian/maven-repo/com/google/guava/guava/debian/guava-debian.jar:debian/maven-repo/org/apache/maven/maven-repository-metadata/3.x/maven-repository-metadata-3.x.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-api/debian/maven-resolver-api-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-spi/debian/maven-resolver-spi-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-util/debian/maven-resolver-util-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-impl/debian/maven-resolver-impl-debian.jar:debian/maven-repo/org/codehaus/plexus/plexus-component-annotations/debian/plexus-component-annotations-debian.jar:debian/maven-repo/org/apache/commons/commons-lang3/debian/commons-lang3-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-transport-file/debian/maven-resolver-transport-file-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-transport-http/debian/maven-resolver-transport-http-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-transport-wagon/debian/maven-resolver-transport-wagon-debian.jar:debian/maven-repo/org/apache/maven/resolver/maven-resolver-connector-basic/debian/maven-resolver-connector-basic-debian.jar:debian/maven-repo/org/apache/maven/wagon/wagon-provider-api/debian/wagon-provider-api-debian.jar:debian/maven-repo/org/apache/httpcomponents/httpclient/debian/httpclient-debian.jar:debian/maven-repo/commons-logging/commons-logging/debian/commons-logging-debian.jar:debian/maven-repo/commons-codec/commons-codec/debian/commons-codec-debian.jar:debian/maven-repo/org/tcrawley/dynapath/debian/dynapath-debian.jar:debian/maven-repo/org/apache/maven/wagon/wagon-http/debian/wagon-http-debian.jar:debian/maven-repo/org/apache/maven/wagon/wagon-http-shared/debian/wagon-http-shared-debian.jar:debian/maven-repo/org/jsoup/jsoup/debian/jsoup-debian.jar:debian/maven-repo/commons-io/commons-io/debian/commons-io-debian.jar:debian/maven-repo/org/apache/httpcomponents/httpcore/debian/httpcore-debian.jar:debian/maven-repo/org/slf4j/jcl-over-slf4j/debian/jcl-over-slf4j-debian.jar:debian/maven-repo/org/codehaus/plexus/plexus-utils/2.x/plexus-utils-2.x.jar:debian/maven-repo/com/hypirion/io/debian/io-debian.jar:debian/maven-repo/org/slf4j/slf4j-nop/debian/slf4j-nop-debian.jar:debian/maven-repo/org/slf4j/slf4j-api/debian/slf4j-api-debian.jar:debian/maven-repo/org/clojure/tools.macro/debian/tools.macro-debian.jar:debian/maven-repo/org/clojure/data.xml/debian/data.xml-debian.jar"
# Jars needed to bootstrap leiningen, one per line, with debian/maven-repo/
# removed.
BOOTSTRAP_JARS=leiningen-core/leiningen-core/$(DEB_VERSION_UPSTREAM)/leiningen-core-$(DEB_VERSION_UPSTREAM).jar \
bultitude/bultitude/debian/bultitude-debian.jar \
com/cemerick/pomegranate/debian/pomegranate-debian.jar \
com/google/guava/guava/debian/guava-debian.jar \
com/hypirion/io/debian/io-debian.jar \
commons-codec/commons-codec/debian/commons-codec-debian.jar \
commons-io/commons-io/debian/commons-io-debian.jar \
commons-logging/commons-logging/debian/commons-logging-debian.jar \
org/apache/commons/commons-lang3/debian/commons-lang3-debian.jar \
org/apache/httpcomponents/httpclient/debian/httpclient-debian.jar \
org/apache/httpcomponents/httpcore/debian/httpcore-debian.jar \
org/apache/maven/maven-artifact/3.x/maven-artifact-3.x.jar \
org/apache/maven/maven-builder-support/3.x/maven-builder-support-3.x.jar \
org/apache/maven/maven-model/3.x/maven-model-3.x.jar \
org/apache/maven/maven-model-builder/3.x/maven-model-builder-3.x.jar \
org/apache/maven/maven-repository-metadata/3.x/maven-repository-metadata-3.x.jar \
org/apache/maven/maven-resolver-provider/3.x/maven-resolver-provider-3.x.jar \
org/apache/maven/resolver/maven-resolver-api/debian/maven-resolver-api-debian.jar \
org/apache/maven/resolver/maven-resolver-connector-basic/debian/maven-resolver-connector-basic-debian.jar \
org/apache/maven/resolver/maven-resolver-impl/debian/maven-resolver-impl-debian.jar \
org/apache/maven/resolver/maven-resolver-spi/debian/maven-resolver-spi-debian.jar \
org/apache/maven/resolver/maven-resolver-transport-file/debian/maven-resolver-transport-file-debian.jar \
org/apache/maven/resolver/maven-resolver-transport-http/debian/maven-resolver-transport-http-debian.jar \
org/apache/maven/resolver/maven-resolver-transport-wagon/debian/maven-resolver-transport-wagon-debian.jar \
org/apache/maven/resolver/maven-resolver-util/debian/maven-resolver-util-debian.jar \
org/apache/maven/wagon/wagon-http/debian/wagon-http-debian.jar \
org/apache/maven/wagon/wagon-http-shared/debian/wagon-http-shared-debian.jar \
org/apache/maven/wagon/wagon-provider-api/debian/wagon-provider-api-debian.jar \
org/clojure/clojure/debian/clojure-debian.jar \
org/clojure/data.xml/debian/data.xml-debian.jar \
org/clojure/tools.macro/debian/tools.macro-debian.jar \
org/codehaus/plexus/plexus-component-annotations/debian/plexus-component-annotations-debian.jar \
org/codehaus/plexus/plexus-interpolation/debian/plexus-interpolation-debian.jar \
org/codehaus/plexus/plexus-utils/2.x/plexus-utils-2.x.jar \
org/flatland/classlojure/debian/classlojure-debian.jar \
org/jsoup/jsoup/debian/jsoup-debian.jar \
org/slf4j/jcl-over-slf4j/debian/jcl-over-slf4j-debian.jar \
org/slf4j/slf4j-api/debian/slf4j-api-debian.jar \
org/slf4j/slf4j-nop/debian/slf4j-nop-debian.jar \
org/tcrawley/dynapath/debian/dynapath-debian.jar \
robert/hooke/debian/hooke-debian.jar
# Generate LEIN_BOOTSTRAP from BOOTSTRAP_JARS
BOOTSTRAP_PATHS=$(foreach jar,$(BOOTSTRAP_JARS),debian/maven-repo/$(jar))
EMPTY :=
SPACE := $(EMPTY) $(EMPTY)
LEIN_BOOTSTRAP=$(subst $(SPACE),:,$(BOOTSTRAP_PATHS))
%:
dh $@ --with bash-completion --buildsystem=maven
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment