This is a new eclass that simplifies Clojure-based project packaging. In particular, it extends the java-pkg-2 eclass with the following improvements: 1. Automatically inject virtual/{jdk,jre} into DEPEND/RDEPEND based on clojure version requested. 2. Get dependencies for Clojure and Clojure-contrib. 3. Provide new src_compile that adds 'clojure.jar' and 'clojure-contrib.jar' properties to EANT_EXTRA_ARGS. 4. Provide new clojure_dosrc that packages both *.java and *.clj files. This ebuild will be available on java-experimental.
Created attachment 209572 [details] Clojure eclass
Created attachment 215821 [details] Updated eclass that uses Clojure(-contrib) slots. This revised version of the eclass uses slots. It should remain backwards compatible with the previous version. It is found in java-experimental.
I have committed this eclass to java-overlay.
Is this obsolete? The most common way to build Clojure apps appears to be Leiningen or Boot nowadays.
I really want this in order to build leiningen projects into uberjars.
I realized JVM doesn't really integrate well with linux distribution package systems. It's a lost cause. I don't use JVM anymore.