d/rules: build using leiningen. (Closes: #976415)
Louis-Philippe VĂ©ronneau
3 years ago
0 | core-async-clojure (1.3.610-2) UNRELEASED; urgency=medium | |
1 | ||
2 | * d/rules: build using leiningen. (Closes: #976415) | |
3 | ||
4 | -- Louis-Philippe VĂ©ronneau <pollo@debian.org> Mon, 07 Dec 2020 12:26:22 -0500 | |
5 | ||
0 | 6 | core-async-clojure (1.3.610-1) unstable; urgency=medium |
1 | 7 | |
2 | 8 | * Team upload. |
5 | 5 | Build-Depends: debhelper-compat (= 13), |
6 | 6 | javahelper, |
7 | 7 | maven-repo-helper, |
8 | clojure, | |
9 | 8 | default-jdk, |
10 | libtools-analyzer-jvm-clojure | |
9 | libclojure-java, | |
10 | libtools-analyzer-jvm-clojure, | |
11 | leiningen, | |
11 | 12 | Standards-Version: 4.5.0 |
12 | 13 | Vcs-Git: https://salsa.debian.org/clojure-team/core-async-clojure.git |
13 | 14 | Vcs-Browser: https://salsa.debian.org/clojure-team/core-async-clojure |
16 | 17 | |
17 | 18 | Package: libcore-async-clojure |
18 | 19 | Architecture: all |
19 | Depends: ${java:Depends}, ${misc:Depends} | |
20 | Depends: ${java:Depends}, | |
21 | ${misc:Depends}, | |
22 | libclojure-java, | |
23 | libtools-analyzer-jvm-clojure, | |
24 | leiningen, | |
20 | 25 | Recommends: ${java:Recommends} |
21 | 26 | Description: asynchronous programming using channels for Clojure |
22 | 27 | core.async is a Clojure library designed to provide facilities for async |
0 | pom.xml --artifact=core.async.jar --usj-name=core.async | |
0 | debian/pom.xml --artifact=target/core.async.jar --usj-name=core.async |
0 | Patch project.clj so we can build using lein locally. | |
1 | Index: core-async-clojure/project.clj | |
2 | =================================================================== | |
3 | --- core-async-clojure.orig/project.clj | |
4 | +++ core-async-clojure/project.clj | |
5 | @@ -1,12 +1,10 @@ | |
6 | -(defproject org.clojure/core.async "0.1.0-SNAPSHOT" | |
7 | +(defproject org.clojure/core.async "1.3.610" | |
8 | :description "Facilities for async programming and communication in Clojure" | |
9 | :url "https://github.com/clojure/core.async" | |
10 | :license {:name "Eclipse Public License" | |
11 | :url "http://www.eclipse.org/legal/epl-v10.html"} | |
12 | - :parent [org.clojure/pom.contrib "1.0.0"] | |
13 | - :dependencies [[org.clojure/clojure "1.9.0"] | |
14 | - [org.clojure/tools.analyzer.jvm "1.0.0"] | |
15 | - [org.clojure/clojurescript "1.10.597" :scope "provided"]] | |
16 | + :dependencies [[org.clojure/clojure "1.10.x"] | |
17 | + [org.clojure/tools.analyzer.jvm "debian"]] | |
18 | :global-vars {*warn-on-reflection* true} | |
19 | :source-paths ["src/main/clojure"] | |
20 | :test-paths ["src/test/clojure"] | |
21 | @@ -14,8 +12,6 @@ | |
22 | :java-source-paths ["src/main/java"] | |
23 | :profiles {:dev {:source-paths ["examples"]}} | |
24 | ||
25 | - :plugins [[lein-cljsbuild "1.1.7"]] | |
26 | - | |
27 | :clean-targets ["tests.js" "tests.js.map" | |
28 | "out" "out-simp" "out-simp-node" | |
29 | "out-adv" "out-adv-node"] | |
30 | @@ -59,4 +55,5 @@ | |
31 | :pretty-print false | |
32 | :output-dir "out-adv-node" | |
33 | :output-to "tests.js" | |
34 | - :source-map "tests.js.map"}}]}) | |
35 | + :source-map "tests.js.map"}}]} | |
36 | + :local-repo "debian/maven-repo") |
0 | 0001_Lein_Local.patch |
0 | <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
1 | <modelVersion>4.0.0</modelVersion> | |
2 | <groupId>org.clojure</groupId> | |
3 | <artifactId>core.async</artifactId> | |
4 | <packaging>jar</packaging> | |
5 | <version>1.3.610</version> | |
6 | <name>core.async</name> | |
7 | <description>Facilities for async programming and communication in Clojure</description> | |
8 | <url>https://github.com/clojure/core.async</url> | |
9 | <licenses> | |
10 | <license> | |
11 | <name>Eclipse Public License</name> | |
12 | <url>http://www.eclipse.org/legal/epl-v10.html</url> | |
13 | </license> | |
14 | </licenses> | |
15 | <scm> | |
16 | <tag>9454d6bb09b26eb34f097de2a27883adee44a7f7</tag> | |
17 | </scm> | |
18 | <build> | |
19 | <sourceDirectory>src/main/clojure</sourceDirectory> | |
20 | <testSourceDirectory>src/test/clojure</testSourceDirectory> | |
21 | <resources> | |
22 | <resource> | |
23 | <directory>resources</directory> | |
24 | </resource> | |
25 | </resources> | |
26 | <testResources> | |
27 | <testResource> | |
28 | <directory>resources</directory> | |
29 | </testResource> | |
30 | </testResources> | |
31 | <directory>target</directory> | |
32 | <outputDirectory>target/classes</outputDirectory> | |
33 | <plugins> | |
34 | <plugin> | |
35 | <groupId>org.codehaus.mojo</groupId> | |
36 | <artifactId>build-helper-maven-plugin</artifactId> | |
37 | <version>1.7</version> | |
38 | <executions> | |
39 | <execution> | |
40 | <id>add-source</id> | |
41 | <phase>generate-sources</phase> | |
42 | <goals> | |
43 | <goal>add-source</goal> | |
44 | </goals> | |
45 | <configuration> | |
46 | <sources> | |
47 | <source>src/main/java</source> | |
48 | </sources> | |
49 | </configuration> | |
50 | </execution> | |
51 | </executions> | |
52 | </plugin> | |
53 | </plugins> | |
54 | </build> | |
55 | <repositories> | |
56 | <repository> | |
57 | <id>central</id> | |
58 | <url>https://repo1.maven.org/maven2/</url> | |
59 | <snapshots> | |
60 | <enabled>false</enabled> | |
61 | </snapshots> | |
62 | <releases> | |
63 | <enabled>true</enabled> | |
64 | </releases> | |
65 | </repository> | |
66 | <repository> | |
67 | <id>clojars</id> | |
68 | <url>https://repo.clojars.org/</url> | |
69 | <snapshots> | |
70 | <enabled>true</enabled> | |
71 | </snapshots> | |
72 | <releases> | |
73 | <enabled>true</enabled> | |
74 | </releases> | |
75 | </repository> | |
76 | </repositories> | |
77 | <dependencyManagement> | |
78 | <dependencies/> | |
79 | </dependencyManagement> | |
80 | <dependencies> | |
81 | <dependency> | |
82 | <groupId>org.clojure</groupId> | |
83 | <artifactId>clojure</artifactId> | |
84 | <version>1.10.x</version> | |
85 | </dependency> | |
86 | <dependency> | |
87 | <groupId>org.clojure</groupId> | |
88 | <artifactId>tools.analyzer.jvm</artifactId> | |
89 | <version>debian</version> | |
90 | </dependency> | |
91 | </dependencies> | |
92 | </project> | |
93 | ||
94 | <!-- This file was autogenerated by Leiningen. | |
95 | Please do not edit it directly; instead edit project.clj and regenerate it. | |
96 | It should not be considered canonical data. For more information see | |
97 | https://github.com/technomancy/leiningen --> |
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | include /usr/share/dpkg/pkg-info.mk | |
2 | 3 | include /usr/share/javahelper/java-vars.mk |
3 | 4 | |
4 | PRODUCED_JAR=core.async.jar | |
5 | export CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/tools.analyzer.jvm.jar | |
5 | export LEIN_HOME=$(CURDIR)/.lein | |
6 | export LEIN_OFFLINE=true | |
7 | NAME=core.async | |
6 | 8 | |
7 | 9 | %: |
8 | dh $@ --with javahelper,jh_maven_repo_helper | |
10 | dh $@ --with javahelper --with maven_repo_helper | |
9 | 11 | |
10 | override_jh_build: | |
11 | jar cf $(PRODUCED_JAR) -C src/main/clojure . | |
12 | override_dh_auto_configure: | |
13 | cd debian && ln -sf /usr/share/maven-repo . | |
12 | 14 | |
13 | override_jh_clean: | |
14 | jh_clean | |
15 | rm -f $(CURDIR)/$(PRODUCED_JAR) | |
16 | ||
17 | override_jh_classpath: | |
18 | jh_classpath $(PRODUCED_JAR) | |
15 | override_dh_auto_build: | |
16 | lein jar | |
17 | # symlink so we don't need a version in debian/*.poms | |
18 | cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar | |
19 | 19 | |
20 | 20 | override_dh_auto_test: |
21 | dh_auto_test | |
22 | (cd src/test/clojure && find . -name '*.clj' | \ | |
23 | xargs clojure -cp $(CLASSPATH):$(CURDIR)/$(PRODUCED_JAR)) | |
21 | lein test | |
22 | ||
23 | override_jh_installlibs: | |
24 | jh_installlibs target/$(NAME).jar | |
25 | ||
26 | override_dh_clean: | |
27 | rm -f debian/maven-repo | |
28 | rm -Rf target | |
29 | dh_clean |