Package list java-classpath-clojure / 76e7068
d/rules: don't build the doc, as there's none to build. Louis-Philippe Véronneau 7 months ago
3 changed file(s) with 2 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
11
22 * Team upload.
33 * New upstream release.
4 * d/rules: don't build the doc, as there's none to build.
45
56 -- Louis-Philippe Véronneau <pollo@debian.org> Mon, 14 Dec 2020 11:13:44 -0500
67
66 debhelper (>= 10),
77 default-jdk,
88 javahelper (>= 0.32),
9 markdown,
109 maven-repo-helper (>= 1.5~)
1110 Standards-Version: 4.0.0
1211 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/java-classpath-clojure.git
11
22 include /usr/share/javahelper/java-vars.mk
33 include /usr/share/dpkg/pkg-info.mk
4
5 MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
64
75 export CLASSPATH=/usr/share/java/clojure.jar
86
119 %:
1210 dh $@ --with javahelper --with maven_repo_helper
1311
14 override_jh_build: $(MDWN_DOCS)
12 override_jh_build:
1513 jar cf $(PRODUCED_JAR) -C src/main/clojure .
16 mkdir -p $(CURDIR)/doc/html && mv $^ $(CURDIR)/doc/html
1714
1815 override_jh_clean:
1916 jh_clean
2017 rm -f $(CURDIR)/$(PRODUCED_JAR)
21 rm -rf $(CURDIR)/doc
22
23 get-orig-source:
24 uscan --download-version $(DEB_VERSION_UPSTREAM) --force-download --rename
25
26 %.html:%.md
27 @echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' \
28 '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' > $@
29 @echo "<html>" >> $@
30 @echo "<head>" >> $@
31 @echo "<title>$(shell head -n 1 $< | sed 's/^#*\s*//')</title>" >> $@
32 @echo "</head>" >> $@
33 @echo "<body>" >> $@
34 markdown $< >> $@
35 @echo "</body>" >> $@
36 @echo "</html>" >> $@