From: "Kent Fredric" <kentnl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/clojure/
Date: Thu, 23 Apr 2020 05:19:14 +0000 (UTC) [thread overview]
Message-ID: <1587618187.421fb65443c227152636a9378dd9963bd65427b0.kentnl@gentoo> (raw)
commit: 421fb65443c227152636a9378dd9963bd65427b0
Author: Tom Gillespie <tgbugs <AT> gmail <DOT> com>
AuthorDate: Fri Jan 3 07:41:15 2020 +0000
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Thu Apr 23 05:03:07 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421fb654
dev-lang/clojure: >=1.9.0 fix sandbox violations
This commit updates the clojure ebuilds to use the latest ebuild
conventions and updates the dependencies to include two new packages.
This is the last in a series of 3 commits that make it possible to build
>=clojure-1.9.0 on gentoo without pulling in any maven dependencies which
trigger network-sandbox violations.
To accomplish this two new packages dev-java/spec-alpha and
dev-java/core-specs-alpha have been added to the tree. They are
dependencies written in clojure that are required to build clojure but
that do not themselves depend on clojure.
Closes: https://bugs.gentoo.org/670680
Closes: https://bugs.gentoo.org/684536
Closes: https://github.com/gentoo/gentoo/pull/14224
Signed-off-by: Tom Gillespie <tgbugs <AT> gmail.com>
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
dev-lang/clojure/clojure-1.10.0.ebuild | 20 ++++++++++--------
dev-lang/clojure/clojure-1.9.0-r1.ebuild | 35 ++++++++++++++++----------------
2 files changed, 29 insertions(+), 26 deletions(-)
diff --git a/dev-lang/clojure/clojure-1.10.0.ebuild b/dev-lang/clojure/clojure-1.10.0.ebuild
index 1df71774d54..60aef391a05 100644
--- a/dev-lang/clojure/clojure-1.10.0.ebuild
+++ b/dev-lang/clojure/clojure-1.10.0.ebuild
@@ -1,24 +1,27 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
JAVA_PKG_IUSE="test"
inherit java-pkg-2 java-ant-2
+EGIT_REF="76b87a6"
+
DESCRIPTION="General-purpose programming language with an emphasis on functional programming"
HOMEPAGE="https://clojure.org/"
-SRC_URI="https://github.com/clojure/clojure/tarball/${P} -> ${P}.tar.gz"
+SRC_URI="https://github.com/clojure/${PN}/archive/${P}.tar.gz"
LICENSE="EPL-1.0 Apache-2.0 BSD"
SLOT="1.10"
KEYWORDS="~amd64 ~x86 ~x86-linux"
-RESTRICT="test" # patches welcome to fix the test
+RESTRICT="!test? ( test )" # broken due to file not found issue and more
CDEPEND="
- dev-java/ant-core:0
- dev-java/maven-bin:3.6"
+ dev-java/spec-alpha:0.2
+ dev-java/core-specs-alpha:0.2
+ dev-java/ant-core:0"
RDEPEND="
${CDEPEND}
@@ -28,13 +31,12 @@ DEPEND="
${CDEPEND}
>=virtual/jdk-1.8"
-S="${WORKDIR}/clojure-clojure-76b87a6"
+S="${WORKDIR}/clojure-${PN}-${EGIT_REF}"
DOCS=( changes.md CONTRIBUTING.md readme.txt )
src_compile() {
- ./antsetup.sh || die "antsetup.sh failed"
- eant -f build.xml jar
+ eant -Dmaven.compile.classpath=$(java-pkg_getjars core-specs-alpha-0.2,spec-alpha-0.2) -f build.xml jar
}
src_test() {
diff --git a/dev-lang/clojure/clojure-1.9.0-r1.ebuild b/dev-lang/clojure/clojure-1.9.0-r1.ebuild
index 5abaab94b14..25c5659590a 100644
--- a/dev-lang/clojure/clojure-1.9.0-r1.ebuild
+++ b/dev-lang/clojure/clojure-1.9.0-r1.ebuild
@@ -1,49 +1,50 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-JAVA_PKG_IUSE="source test"
+JAVA_PKG_IUSE="test"
inherit java-pkg-2 java-ant-2
+EGIT_REF="e5a8cfa"
+
DESCRIPTION="General-purpose programming language with an emphasis on functional programming"
HOMEPAGE="https://clojure.org/"
-SRC_URI="https://github.com/clojure/clojure/tarball/${P} -> ${P}.tar.gz"
+SRC_URI="https://github.com/clojure/${PN}/archive/${P}.tar.gz"
LICENSE="EPL-1.0 Apache-2.0 BSD"
SLOT="1.9"
KEYWORDS="~amd64 ~x86 ~x86-linux"
-RESTRICT="test" # patches welcome to fix the test
+RESTRICT="!test? ( test )" # broken due to file not found issue and more
+
+CDEPEND="
+ dev-java/spec-alpha:0.1
+ dev-java/core-specs-alpha:0.1
+ dev-java/ant-core:0"
RDEPEND="
+ ${CDEPEND}
>=virtual/jre-1.8"
DEPEND="
- >=virtual/jdk-1.8
- dev-java/ant-core
- dev-java/maven-bin:3.6"
+ ${CDEPEND}
+ >=virtual/jdk-1.8"
-S="${WORKDIR}/clojure-clojure-e5a8cfa"
+S="${WORKDIR}/clojure-${PN}-${EGIT_REF}"
DOCS=( changes.md CONTRIBUTING.md readme.txt )
src_compile() {
- ./antsetup.sh || die "antsetup.sh failed"
- eant local
+ eant -Dmaven.compile.classpath=$(java-pkg_getjars core-specs-alpha-0.1,spec-alpha-0.1) -f build.xml jar
}
src_test() {
- java-pkg-2_src_test
+ eant -f build.xml test
}
src_install() {
java-pkg_newjar "${PN}.jar"
java-pkg_dolauncher ${PN}-${SLOT} --main clojure.main
- if use source; then
- mv target/${P}-sources.jar ${PN}-sources.jar
- insinto /usr/share/${PN}-${SLOT}/sources
- doins ${PN}-sources.jar
- fi
einstalldocs
}
next reply other threads:[~2020-04-23 5:19 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 5:19 Kent Fredric [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-04 0:19 [gentoo-commits] repo/gentoo:master commit in: dev-lang/clojure/ Maciej Barć
2024-10-30 15:18 Sam James
2024-10-17 15:32 Arthur Zamarin
2024-09-11 22:21 Sam James
2024-09-11 22:21 Sam James
2024-08-10 18:16 Maciej Barć
2024-06-30 11:24 Miroslav Šulc
2024-06-16 11:37 Maciej Barć
2024-06-07 16:59 Arthur Zamarin
2024-06-07 16:56 Arthur Zamarin
2024-05-12 22:41 Sam James
2024-05-12 22:41 Sam James
2024-05-06 18:00 Maciej Barć
2024-04-06 16:27 Maciej Barć
2024-03-11 11:21 Maciej Barć
2023-09-02 14:30 Maciej Barć
2022-08-12 11:55 Agostino Sarubbo
2022-08-08 12:34 Agostino Sarubbo
2022-06-29 19:02 Maciej Barć
2022-06-29 19:02 Maciej Barć
2021-10-24 16:58 Jakov Smolić
2021-10-24 16:53 Agostino Sarubbo
2021-10-23 13:51 Sam James
2021-03-22 18:53 Joonas Niilola
2021-03-21 13:12 Joonas Niilola
2021-03-21 13:12 Joonas Niilola
2019-04-17 8:43 Patrice Clement
2019-01-27 11:05 Pacho Ramos
2019-01-14 13:24 Miroslav Šulc
2018-11-07 22:31 Patrice Clement
2018-11-07 22:31 Patrice Clement
2016-04-05 1:55 Michael Sterrett
2015-10-25 10:47 Mikle Kolyada
2015-10-23 9:05 Agostino Sarubbo
2015-09-17 8:44 Michael Sterrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1587618187.421fb65443c227152636a9378dd9963bd65427b0.kentnl@gentoo \
--to=kentnl@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox