summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/clojure/Manifest2
-rw-r--r--dev-lang/clojure/clojure-1.12.0.ebuild113
2 files changed, 115 insertions, 0 deletions
diff --git a/dev-lang/clojure/Manifest b/dev-lang/clojure/Manifest
index 562bd1cc2545..7610c0469807 100644
--- a/dev-lang/clojure/Manifest
+++ b/dev-lang/clojure/Manifest
@@ -1,5 +1,6 @@
DIST clojure-1.11.3.tar.gz 706113 BLAKE2B eed50639d251406d96e528a14d055ddc59cd7fac18a415d4947e46d93d11e67ec263f697dbc14a9e5482f134f546a55413529ed58a7b064169cb06f45bd5e5d5 SHA512 33d59a5c1b94902198e669ea7c4161c515d6463dd6e5ce7251adf8f5a9da493a5446d91f218e8e90ec8bf0866119f9c28d64361c2ed57265eea62baf39ca1302
DIST clojure-1.11.4.tar.gz 707254 BLAKE2B 2c0ff59fc1cdae36a664c46e18bef98a90cd8bba87036e868bd4cc63d44a850bd376544335fcd646db2c67602720add6b3a2afdabc3444cfb41bb8af79bdc6f9 SHA512 28eb09eeb5e9d77922a1222478d75bccbeb6b598fac7ba469f561bbbf15fe57ca093fbe5d7ff05d3d78e6260a650b545ffe90413dbba48d869dbb43f73394af2
+DIST clojure-1.12.0.tar.gz 752770 BLAKE2B 3183f40bd7e587a11ed50c7d415dbde6d5e54f85c80d8d7b1107fdb57abf30c9d88778c4270f2cf00c9b99d36ac711240c69d9d180204b7440079b7759ea8842 SHA512 9046df3a13215df07742187ff4056b391e75353a64da12f22fd680d8e02b5e19e71e9a8cad45d80c073108309f3c2b652318e0cf98db3ee3d0211f6ba6d3c832
DIST core.specs.alpha-0.3.70.tar.gz 12176 BLAKE2B 168b055ee1a518e750791cd010872b6d2f3a655c474f7feab93b0e06bca7cbaf9e029b9c042c2e218129213a5c787b3409c2ddc17f902907c1d38a4d9c22cdfd SHA512 223a8d1a2f1fbb93d9144e2a50fa7d9e5fa79657fcd0c96ece7170c33f23620aeb7645ace84edd3512fe87b88bb3e9422666c66343989bb07a4cd5fadc1216d7
DIST core.specs.alpha-0.4.74.tar.gz 12225 BLAKE2B df4238bdec9d91ad935b76d025cc439d2842e8577bafcfab5267750149e0f1dcbf9a8e35475f60f64f10b84f99b59238157fce82311684e63598a0cb31b350e8 SHA512 dae9ea983d9f46d0f3d5f8979f0f2b1a0eac3af48103063b5904f8cbe9813f87ef71f7a4a85528db7e9d2189f4ab2a656f805ddcc13e2835c47bc79d8408de31
DIST data.generators-1.1.0.tar.gz 11781 BLAKE2B cccbacb789f37a705d64c9467dcb0f737110176c92f3af89165688676c225179bdf17ca29126ab3578a54ace9137c991d2f1bf4b3024c7c6aaf9fe2f63f37fb8 SHA512 7b51fd44c9d58de639d036dbce343dd81a271e28db096c64e910ca6c87869fa6ccac9ba87d7313b53304017a335ee45bbd5ab9794bc166ec46b5a8d86b5aa82e
@@ -9,4 +10,5 @@ DIST spec.alpha-0.5.238.tar.gz 42490 BLAKE2B a519bfe4ae081359bb8038dcf58e1bf2552
DIST test.check-1.1.1.tar.gz 85399 BLAKE2B 752f0f0149dd5720dcabdcc65173906b124a85590f6b3cda41d3384a05e5b54c10b4cd399ba26ff466d637ea87e0fd81dc2a4943179818ba3d4fccdee977922d SHA512 e62ac00e302efbf4bb0c70721cd0b4438b2d302855146a052bfde492b0f36506fbd44c10c3e5c88a0eeb9b548eac40247f77d8ac590f758176e1d8f54270e196
DIST test.generative-1.1.0.tar.gz 144819 BLAKE2B b6cbf42b401380e3977ac219ddbc8b26ddcfc285a06ce5f2d68c3a52bb6c36702922975e9c9e2bfd4198ec239f2efd676fdfc8293222b75eb5c417ef1d80681f SHA512 4ef4640be2f630c4ebbe81d7bafec1e6e32619480c09ef59882b182738a998941d442231148d8cd2fb4166454780fd72067e5dda4b64d0ae0b064c91928f5c67
DIST tools.namespace-1.5.0.tar.gz 37913 BLAKE2B bae6be788507d200f6e781754b46d5c7c34069b3340006f078a3f0360c0c5d2dea0398d5afe1ea6b49166baa482cc07a7687735474afc84abe644c2b8b53cd9d SHA512 c1f4dba4758ecb39460334e61f989cf92e3e2ca1f6ff03b9e12bc137de088f994d86feec827f40d33034e2f8978e099326aed3b85a21c68a910714b662bf9052
+DIST tools.reader-1.4.0.tar.gz 63792 BLAKE2B 7d0af9ff628ca1f1e1001c134e7fd2bb1cc7258321d8d19621936cdbb7e95ea5cb842268a15115b0b6929cbc352f35ea47439657db4d5d6403cf82821f7e0ccf SHA512 55c04e94828c0bf5e854d2b1d0bfd9c27e8411def1b429aa131b5e03614955777d188ad1a43295dffce032e8347e4d9d189b7eca0df3edbb105b4257f4641581
DIST tools.reader-1.4.2.tar.gz 63868 BLAKE2B 3f4ceab49de2d518ba5854a81af13cb51902b240d2db2be2c8ededd48d6f9db3898eb54fdb41c6b9ce49d9d8eb912b0a7d3683dc1d61b6e238c5b862fad4b4a5 SHA512 bc3510887b7c5c5f84f0969ff2224dc745a54c81c186c50d0436af9e6f8eb4abf6d9c6a7bba4362ba3f8c94cd6bedefdf1a7698a1cd67db4b324fbaffaae5fbf
diff --git a/dev-lang/clojure/clojure-1.12.0.ebuild b/dev-lang/clojure/clojure-1.12.0.ebuild
new file mode 100644
index 000000000000..c731309a6b30
--- /dev/null
+++ b/dev-lang/clojure/clojure-1.12.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+SPEC_ALPHA_VER="0.5.238" # https://github.com/clojure/spec.alpha/tags/
+CORE_SPECS_ALPHA_VER="0.4.74" # https://github.com/clojure/core.specs.alpha/tags/
+
+TOOLS_NAMESPACE_VER="1.5.0" # https://github.com/clojure/tools.namespace/tags/
+JAVA_CLASSPATH_VER="1.1.0" # https://github.com/clojure/java.classpath/tags/
+TOOLS_READER_VER="1.4.0" # https://github.com/clojure/tools.reader/tags/
+TEST_GENERATIVE_VER="1.1.0" # https://github.com/clojure/test.generative/tags/
+DATA_GENERATORS_VER="1.1.0" # https://github.com/clojure/data.generators/tags/
+TEST_CHECK_VER="1.1.1" # https://github.com/clojure/test.check/tags/
+
+JAVA_PKG_IUSE="test"
+
+inherit java-pkg-2
+
+DESCRIPTION="General-purpose programming language with an emphasis on functional programming"
+HOMEPAGE="https://clojure.org/
+ https://github.com/clojure/clojure/"
+SRC_URI="
+ https://github.com/${PN}/${PN}/archive/${P}.tar.gz
+
+ https://github.com/clojure/spec.alpha/archive/v${SPEC_ALPHA_VER}.tar.gz
+ -> spec.alpha-${SPEC_ALPHA_VER}.tar.gz
+ https://github.com/clojure/core.specs.alpha/archive/v${CORE_SPECS_ALPHA_VER}.tar.gz
+ -> core.specs.alpha-${CORE_SPECS_ALPHA_VER}.tar.gz
+
+ test? (
+ https://github.com/clojure/tools.namespace/archive/v${TOOLS_NAMESPACE_VER}.tar.gz
+ -> tools.namespace-${TOOLS_NAMESPACE_VER}.tar.gz
+ https://github.com/clojure/java.classpath/archive/v${JAVA_CLASSPATH_VER}.tar.gz
+ -> java.classpath-${JAVA_CLASSPATH_VER}.tar.gz
+ https://github.com/clojure/tools.reader/archive/v${TOOLS_READER_VER}.tar.gz
+ -> tools.reader-${TOOLS_READER_VER}.tar.gz
+ https://github.com/clojure/test.generative/archive/v${TEST_GENERATIVE_VER}.tar.gz
+ -> test.generative-${TEST_GENERATIVE_VER}.tar.gz
+ https://github.com/clojure/data.generators/archive/v${DATA_GENERATORS_VER}.tar.gz
+ -> data.generators-${DATA_GENERATORS_VER}.tar.gz
+ https://github.com/clojure/test.check/archive/v${TEST_CHECK_VER}.tar.gz
+ -> test.check-${TEST_CHECK_VER}.tar.gz
+ )
+"
+S="${WORKDIR}/${PN}-${P}"
+
+LICENSE="EPL-1.0 Apache-2.0 BSD"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~x86 ~x86-linux"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ >=dev-java/ant-1.10.14-r3
+"
+RDEPEND="
+ >=virtual/jre-1.8:*
+"
+DEPEND="
+ >=virtual/jdk-1.8:*
+"
+
+PATCHES=(
+ "${FILESDIR}/add-compile-spec-ant-build-target.patch"
+)
+
+DOCS=( changes.md CONTRIBUTING.md readme.txt )
+
+src_prepare() {
+ default
+ java-pkg-2_src_prepare
+
+ ln -rs \
+ ../spec.alpha-${SPEC_ALPHA_VER}/src/main/clojure/clojure/spec \
+ src/clj/clojure/spec || die "Could not create symbolic link for spec-alpha"
+ ln -rs \
+ ../core.specs.alpha-${CORE_SPECS_ALPHA_VER}/src/main/clojure/clojure/core/specs \
+ src/clj/clojure/core/specs || die "Could not create symbolic link for core-specs-alpha"
+}
+
+src_compile() {
+ eant -f build.xml jar
+}
+
+src_test() {
+ cp -r \
+ ../tools.namespace-${TOOLS_NAMESPACE_VER}/src/main/clojure/clojure/tools/* \
+ src/clj/clojure/tools || die "Could not create symbolic link for tools-namespace"
+ cp -r \
+ ../java.classpath-${JAVA_CLASSPATH_VER}/src/main/clojure/clojure/java/* \
+ src/clj/clojure/java || die "Could not move java-classpath"
+ cp -r \
+ ../tools.reader-${TOOLS_READER_VER}/src/main/clojure/clojure/tools/* \
+ src/clj/clojure/tools || die "Could not move tools-reader"
+ cp -r \
+ ../test.generative-${TEST_GENERATIVE_VER}/src/main/clojure/clojure/test/* \
+ src/clj/clojure/test || die "Could not move test-generative"
+ ln -rs \
+ ../data.generators-${DATA_GENERATORS_VER}/src/main/clojure/clojure/data/ \
+ src/clj/clojure/data || die "Could not create symbolic link for data-generators"
+ cp -r \
+ ../test.check-${TEST_CHECK_VER}/src/main/clojure/clojure/test/* \
+ src/clj/clojure/test || die "Could not move test-check"
+
+ eant -f build.xml test
+}
+
+src_install() {
+ java-pkg_newjar "${PN}.jar"
+ java-pkg_dolauncher "${PN}" --main clojure.main
+
+ einstalldocs
+}