Installing the dev-lang/clojure package doesn't install the `clj` command (different from the `clojure` command)
This is quite difficult in a Clojure from-source build. I've investigated a little but this subject (and of packaging up `tools-dep`) and sadly this is currently not possible. This is due to 2 things: 1st - many external dependencies of additional clojure tools, 2nd - nontrivial build scripts and how the repo that builds clj is split from the repo we use to build clojure. You have correctly noticed that most Linux distros provide clj from upstream as a binary package (`Component: Binary packages → Current packages`), but we do not. At the time clojure was packaged up this was a good choice since we had leiningen for building clojure projects. But now the upstream also produced a tool for building clj projects hence this mess. As a alternative for project management you can still use lein tho. If You have any idea how to switch up our ebuild to support `clj`/`tools-deps`, or how to emulate them (upstream's binary pkg) correctly - then patches welcome!
Thanks Maciej for the explanation. I was looking at the official installation script (https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh). If I were to convert it into an Ebuild, would this be a dev-lang/clojure-bin installation? Because going with a binary installation could be a solution (just like with the dev-lang/scala-bin package).
> If I were to convert it into an Ebuild, would this be a dev-lang/clojure-bin installation? yes > Because going with a binary installation could be a solution (just like with the dev-lang/scala-bin package). It can. If you look into Gentoo overlays you might even find that somebody might have already made such -bin pkg.
Hey Maciej. Following your advice, I searched and couldn't find a clojure-bin ebuild in Zugaina; so I did it myself. It's working (even tho it may need a little bit of polish). I would like to share it with the community, so that anybody can use it. Should I open a PR on the main Gentoo repository or GURU?