File: README.md

package info (click to toggle)
dh-clojure 0.2.0%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144 kB
  • sloc: perl: 101; makefile: 72; sh: 13
file content (51 lines) | stat: -rw-r--r-- 1,728 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
dh-clojure - debhelper extension to assist with Debian Clojure packaging
========================================================================

Currently only Leiningen based projects are supported.

The `example-clojure/` directory contains a trivial dh-clojure based
package that provides an example, is handy for testing during
development, and is also used to test dh-clojure itself via
`dh_auto_test`.

Much of the code can be exercised/diagnosed via
```
debian/rules clean
fakeroot debian/rules binary
```
This will also build the `example-clojure` package.

See [`dh-clojure-lein(7)`](./dh-clojure-lein.7.pod) for further
information.

dh-clojure internals
--------------------

Everything is driven by the `leiningen.pm` debhelper "buildsystem"
(see `/usr/share/doc/debhelper/PROGRAMMING.md.gz`).  It implements
subroutines for `dh_auto_*` packaging command sequences for building
Leiningen-based Clojure projects.

The Leiningen support depends on a Debian patch to C<lein> that causes
it to invoke Debian-specifc code at certain points during the build.
See [`dh-clojure-lein(7)`](./dh-clojure-lein.7.pod).

`debian/dh-clojure/` is reserved for dh-clojure's use.  If possible,
keep all of the paths that dh-clojure generates during the build in
`debian/dh-clojure/tmp` so that `dh_auto_clean` only has to remove
that directory, and for now, an empty `debian/dh-clojure` will always
be removed on clean.

Source
------

The `dh-clojure-lein` directory contains the `debian.dh-clojure-lein`
library that handles Debian-related project file adjustments.

Testing
-------

"All" the tests are run during the package build, but you can also run
the `dh-clojure-lein` tests directly:

    cd dh-clojure-lein && lein test