Codebase list cpath-clojure / 7bd90bb
Build using leiningen. (Closes: #976752) Louis-Philippe VĂ©ronneau 3 years ago
8 changed file(s) with 56 addition(s) and 65 deletion(s). Raw diff Collapse all Expand all
00 cpath-clojure (0.1.2-2) UNRELEASED; urgency=medium
11
22 * Team upload.
3 * Build using leiningen. (Closes: #976752)
34
45 -- Louis-Philippe VĂ©ronneau <pollo@debian.org> Mon, 14 Dec 2020 11:52:06 -0500
56
22 Priority: optional
33 Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
44 Uploaders: Apollon Oikonomopoulos <apoikos@debian.org>
5 Build-Depends: clojure (>= 1.8),
6 debhelper (>= 10),
5 Build-Depends: debhelper (>= 10),
76 default-jdk,
8 javahelper (>= 0.32),
9 libjava-classpath-clojure,
10 markdown,
11 maven-repo-helper (>= 1.5~)
7 javahelper,
8 maven-repo-helper,
9 libclojure-java,
10 libjava-classpath-clojure (>= 1.0.0),
11 leiningen,
1212 Standards-Version: 4.0.0
1313 Vcs-Git: https://anonscm.debian.org/git/pkg-java/cpath-clojure.git
1414 Vcs-Browser: https://anonscm.debian.org/git/pkg-java/cpath-clojure.git
1616
1717 Package: libcpath-clojure
1818 Architecture: all
19 Depends: ${java:Depends}, ${misc:Depends}
19 Depends: ${java:Depends},
20 ${misc:Depends},
21 libclojure-java,
22 libjava-classpath-clojure (>= 1.0.0),
2023 Recommends: ${java:Recommends}
2124 Description: transparently collect files on the classpath
2225 cpath-clj is a small library to transparently collect files on the classpath
+0
-1
debian/libcpath-clojure.jlibs less more
0 cpath-clj.jar
0 # List of POM files for the package
1 # Format of this file is:
2 # <path to pom file> [option]*
3 # where option can be:
4 # --ignore: ignore this POM and its artifact if any
5 # --ignore-pom: don't install the POM. To use on POM files that are created
6 # temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
7 # --no-parent: remove the <parent> tag from the POM
8 # --package=<package>: an alternative package to use when installing this POM
9 # and its artifact
10 # --has-package-version: to indicate that the original version of the POM is the same as the upstream part
11 # of the version for the package.
12 # --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
13 # during a clean operation with mh_cleanpom or mh_installpom
14 # --artifact=<path>: path to the build artifact associated with this POM,
15 # it will be installed when using the command mh_install. [mh_install]
16 # --java-lib: install the jar into /usr/share/java to comply with Debian
17 # packaging guidelines
18 # --usj-name=<name>: name to use when installing the library in /usr/share/java
19 # --usj-version=<version>: version to use when installing the library in /usr/share/java
20 # --no-usj-versionless: don't install the versionless link in /usr/share/java
21 # --dest-jar=<path>: the destination for the real jar.
22 # It will be installed with mh_install. [mh_install]
23 # --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
24 # --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
25 # Empty by default. [mh_install]
26 #
27 debian/pom.xml --usj-name=cpath-clj
0 debian/pom.xml --artifact=target/cpath-clj.jar --usj-name=cpath-clj
+0
-1
debian/maven.rules less more
0 * clojure * s/([0-9]+)\.([0-9]+).*/$1.$2.x/ * *
0 Patch project.clj to build locally using lein.
1 Index: cpath-clojure/project.clj
2 ===================================================================
3 --- cpath-clojure.orig/project.clj
4 +++ cpath-clojure/project.clj
5 @@ -3,13 +3,10 @@
6 :url "https://github.com/xsc/cpath-clj"
7 :license {:name "Eclipse Public License"
8 :url "http://www.eclipse.org/legal/epl-v10.html"}
9 - :dependencies [[org.clojure/clojure "1.6.0"]
10 - [org.clojure/java.classpath "0.2.2"]]
11 - :profiles {:test {:dependencies [[midje "1.6.3" :exclusions [joda-time]]
12 - [joda-time "2.2"]]
13 - :plugins [[lein-midje "3.1.3"]]
14 + :dependencies [[org.clojure/clojure "1.10.x"]
15 + [org.clojure/java.classpath "debian"]]
16 + :profiles {:test {:dependencies [[joda-time "debian"]]
17 :resource-paths ["test-resources/test1"
18 "test-resources/test2"]}}
19 - :aliases {"test" ["with-profile" "+test" "midje"]
20 - "repl" ["with-profile" "+test" "repl"]}
21 - :pedantic? :abort)
22 + :pedantic? :abort
23 + :local-repo "debian/maven-repo")
0 0001_Lein_Local.patch
22 include /usr/share/javahelper/java-vars.mk
33 include /usr/share/dpkg/pkg-info.mk
44
5 MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
6
7 export CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/java.classpath.jar
8
9 PRODUCED_JAR=cpath-clj.jar
5 export LEIN_HOME=$(CURDIR)/.lein
6 export LEIN_OFFLINE=true
7 NAME=cpath-clj
108
119 %:
1210 dh $@ --with javahelper --with maven_repo_helper
1311
14 override_jh_build: $(MDWN_DOCS)
15 jar cf $(PRODUCED_JAR) -C src .
16 mkdir -p $(CURDIR)/doc/html && mv $^ $(CURDIR)/doc/html
12 override_dh_auto_configure:
13 cd debian && ln -sf /usr/share/maven-repo .
14
15 override_dh_auto_build:
16 lein pom debian/pom.xml
17 lein jar
18 # symlink so we don't need a version in debian/*.poms
19 cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar
1720
1821 # TODO: missing midje
1922 #override_dh_auto_test:
20 # (cd test && \
21 # find . -name '*_test.clj' | xargs clojure -cp $(CLASSPATH):$(CURDIR)/$(PRODUCED_JAR))
23 # lein test
2224
23 override_jh_clean:
24 jh_clean
25 rm -f $(CURDIR)/$(PRODUCED_JAR)
26 rm -rf $(CURDIR)/doc
25 override_jh_installlibs:
26 jh_installlibs target/$(NAME).jar
2727
28 get-orig-source:
29 uscan --download-version $(DEB_VERSION_UPSTREAM) --force-download --rename
30
31 %.html:%.md
32 @echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' \
33 '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' > $@
34 @echo "<html>" >> $@
35 @echo "<head>" >> $@
36 @echo "<title>$(shell head -n 1 $< | sed 's/^#*\s*//')</title>" >> $@
37 @echo "</head>" >> $@
38 @echo "<body>" >> $@
39 markdown $< >> $@
40 @echo "</body>" >> $@
41 @echo "</html>" >> $@
28 override_dh_clean:
29 rm -f debian/maven-repo
30 rm -Rf target
31 rm -f debian/pom.xml
32 dh_clean