forked from hiredman/Broca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.clj
More file actions
27 lines (23 loc) · 811 Bytes
/
project.clj
File metadata and controls
27 lines (23 loc) · 811 Bytes
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
(defproject sonian/broca "1.0.0"
:description "broca allows you to map a charset name to another charset using binding"
:dependencies [[org.clojure/clojure "1.10.0"]]
:aot [broca.CharsetProvider])
(ns leiningen.char-set-install
(:require [leiningen.jar]
[robert.hooke]))
(declare ^:dynamic *project*)
(robert.hooke/add-hook
(resolve 'leiningen.jar/filespecs)
(fn [f & args]
(cons {:type :bytes
:path "META-INF/services/java.nio.charset.spi.CharsetProvider"
:bytes (.getBytes
(apply str
(interpose \space
(:aot *project*))))}
(apply f args))))
(robert.hooke/add-hook
#'leiningen.jar/jar
(fn [f project & args]
(binding [*project* project]
(apply f project args))))