dev-util/clojure-tools: new package; add version 1.12.4.1629

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2026-04-25 17:39:35 +02:00
parent d34d279044
commit d433cd993f
3 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST clojure-tools-1.12.4.1629.release.gh.tar.gz 15378653 BLAKE2B 7ccc8423be0d47b83cec8967caad6a633ba1dafb1247d9db8b31ba5162d1aab487e804cddca5afd61f4c99ca6155f10bdb67139ca3ccb920746fab222fa123eb SHA512 4124c64234e10eea7943c6a1f25ae3161b054443e72d5a80c9a11d6aa948e5130311be54016d006fb3b768fff9062067a306a06b0818914d102efc7caf01c19a

View File

@@ -0,0 +1,59 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit java-pkg-2
DESCRIPTION="Development tools for the Clojure programming language"
HOMEPAGE="https://clojure.org/
https://github.com/clojure/brew-install/"
SRC_URI="https://github.com/clojure/brew-install/releases/download/${PV}/${P}.tar.gz
-> ${P}.release.gh.tar.gz"
S="${WORKDIR}/${PN}"
LICENSE="EPL-1.0"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64"
RDEPEND="
>=virtual/jre-1.8:*
app-misc/rlwrap
"
src_install() {
local app_lib="/usr/share/${PN}/lib"
java-pkg_newjar "${P}.jar"
mv exec.jar "${PN}-exec.jar" || die
java-pkg_dojar "${PN}-exec.jar"
insinto "${app_lib}"
doins deps.edn example-deps.edn tools.edn
sed -i clj clojure \
-e "s|BINDIR|${EPREFIX}${app_lib}|" \
-e "s|PREFIX|${EPREFIX}${app_lib}|" \
-e "s|libexec/||g" \
-e "s|${PN}-\$version.jar|${PN}.jar|g" \
-e "s|exec.jar|${PN}-exec.jar|g" \
|| die
exeinto "${app_lib}"
doexe clj clojure
dosym -r "${app_lib}/clj" /usr/bin/clj
doman clj.1
}
pkg_postinst() {
einfo "Because Gentoo provides both dev-lang/clojure (the core language),"
einfo "the language part is installed as \"clojure\" executable and"
einfo "the development tools as the \"clj\" executable."
einfo "If you plan to use CIDER (GNU Emacs package) you probably"
einfo "need to customize the \"cider-clojure-cli-command\" variable and"
einfo "set it to \"/usr/share/${PN}/lib/clojure\"."
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@gentoo.org</email>
<name>Maciej Barć</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/clojure/brew-install/issues/</bugs-to>
<remote-id type="github">clojure/brew-install</remote-id>
</upstream>
</pkgmetadata>