From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE929158091 for ; Thu, 9 Jun 2022 06:45:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9ABEE0809; Thu, 9 Jun 2022 06:45:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1DEAE0875 for ; Thu, 9 Jun 2022 06:45:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8B8A340EFB for ; Thu, 9 Jun 2022 06:45:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52B4F44B for ; Thu, 9 Jun 2022 06:45:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1654757105.3c1b60c44c5659c65b0dd40ae3fed3bfde631792.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/sbt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/sbt/sbt-0.13.18.ebuild X-VCS-Directories: dev-java/sbt/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3c1b60c44c5659c65b0dd40ae3fed3bfde631792 X-VCS-Branch: master Date: Thu, 9 Jun 2022 06:45:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 70347e19-a90d-4d6f-8940-b6d7725f8765 X-Archives-Hash: 7dac3c2d721bcbb0cb29962a11c67007 commit: 3c1b60c44c5659c65b0dd40ae3fed3bfde631792 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Wed Jun 8 09:21:10 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 9 06:45:05 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c1b60c4 dev-java/sbt: drop 0.13.18 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Sam James gentoo.org> dev-java/sbt/sbt-0.13.18.ebuild | 144 ---------------------------------------- 1 file changed, 144 deletions(-) diff --git a/dev-java/sbt/sbt-0.13.18.ebuild b/dev-java/sbt/sbt-0.13.18.ebuild deleted file mode 100644 index 4262d767d5b3..000000000000 --- a/dev-java/sbt/sbt-0.13.18.ebuild +++ /dev/null @@ -1,144 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit java-pkg-2 - -L_PN="sbt-launch" -L_P="${L_PN}-${PV}" - -DESCRIPTION="sbt is a build tool for Scala and Java projects that aims to do the basics well" -HOMEPAGE="https://www.scala-sbt.org/" -EGIT_COMMIT="v${PV}" -EGIT_REPO_URI="https://github.com/sbt/sbt.git" -SRC_URI=" - !binary? ( - https://github.com/sbt/sbt/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.xz - https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.xz - http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/${L_PN}/${PV}/${L_PN}.jar -> ${L_P}.jar - ) - binary? ( - https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.xz - )" -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="binary" - -DEPEND=" - >=virtual/jdk-1.8:* -" - -RDEPEND=" - >=virtual/jre-1.8:* -" - -# test hangs or fails -RESTRICT="test" - -# Note: to bump sbt, some things to try are: -# 1. remove the https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.xz -# https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.xz and -# binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.xz ) -# from SRC_URI -# 2. Comment the sbt publishLocal line in src_compile. -# 3. try: -# FEATURES='noclean -test' emerge -v -1 dev-java/sbt -# It should fail in src_install since the sbt publishLocal is not done. -# Check if it downloads more stuff in -# src_compile to ${WORKDIR}/.ivy2 and ${WORKDIR}/.sbt. -# 4. If some of the downloads fail, it might be necessary to run the sbt compile -# again manually to obtain all the dependencies, if so: -# cd to ${S} -# export EROOT=/ -# export WORKDIR='/var/tmp/portage/dev-java/${P}/work' -# export L_P=${P} -# export PATH="${WORKDIR}/${L_P}:${PATH}" -# sbt compile -# cd ${WORKDIR} -# find .ivy2 .sbt -uid 0 -exec chown portage:portage {} \; -# 5. cd ${WORKDIR} -# XZ_OPT=-9 tar --owner=portage --group=portage \ -# -cJf /usr/portage/distfiles/${P}-ivy2-deps.tar.xz .ivy2/cache -# XZ_OPT=-9 tar --owner=portage --group=portage \ -# -cJf /usr/portage/distfiles/${P}-sbt-deps.tar.xz .sbt -# Uncomment the sbt publishLocal line in src_compile. -# 6. It *might* download more dependencies for src_test, however the presence -# of some of these may cause the src_compile to fail. So download them -# seperately as root so we can identify the -# additional files. As root: -# cd ${S} -# ${S}/${P} test -# cd ${WORKDIR} -# XZ_OPT=-9 tar --owner=portage --group=portage \ -# -cJf /usr/portage/distfiles/${P}-test-deps.tar.xz \ -# $(find .ivy2/cache .sbt -uid 0 -type f -print) -# Note: It might not download anything in src_test, in which case -# ${P}-test-deps.tar.xz is not required. -# 7. Create the binary -# cd $WORDKIR -# XZ_OPT=-9 tar --owner=portage --group=portage \ -# -cJf /usr/portage/distfiles/${P}-gentoo-binary.tar.xz ${P} .ivy2/local -# 9. Undo the earlier temporary edits to the ebuild. - -src_unpack() { - # Unpack tar files only. - for f in ${A} ; do - [[ ${f} == *".tar."* ]] && unpack ${f} - done -} - -src_prepare() { - default - if ! use binary; then - mkdir "${WORKDIR}/${L_P}" || die - cp -p "${DISTDIR}/${L_P}.jar" "${WORKDIR}/${L_P}/${L_PN}.jar" || die - cat <<- EOF > "${WORKDIR}/${L_P}/sbt" - #!/bin/sh - SBT_OPTS="-Xms512M -Xmx3072M -Xss1M -XX:+CMSClassUnloadingEnabled" - java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${WORKDIR}/${L_P}/sbt-launch.jar" "\$@" - EOF - cat <<- EOF > "${S}/${P}" - #!/bin/sh - SBT_OPTS="-Xms512M -Xmx3072M -Xss1M -XX:+CMSClassUnloadingEnabled" - java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${S}/launch/target/sbt-launch.jar" "\$@" - EOF - chmod u+x "${WORKDIR}/${L_P}/sbt" "${S}/${P}" || die - - # suppress this warning in build.log: - # [warn] Credentials file /var/tmp/portage/dev-java/${P}/work/.bintray/.credentials does not exist - mkdir -p "${WORKDIR}/.bintray" || die - cat <<- EOF > "${WORKDIR}/.bintray/.credentials" - realm = Bintray API Realm - host = api.bintray.com - user = - password = - EOF - fi -} - -src_compile() { - if ! use binary; then - einfo "=== sbt compile ..." - "${WORKDIR}/${L_P}/sbt" -Dsbt.log.noformat=true compile || die - einfo "=== sbt publishLocal with jdk $(java-pkg_get-vm-version) ..." - cat <<- EOF | "${WORKDIR}/${L_P}/sbt" -Dsbt.log.noformat=true || die - set every javaVersionPrefix in javaVersionCheck := Some("$(java-pkg_get-vm-version)") - publishLocal - EOF - fi -} - -src_test() { - "${S}/${P}" -Dsbt.log.noformat=true test || die -} - -src_install() { - # Place sbt-launch.jar at the end of the CLASSPATH - java-pkg_dojar $(find "${WORKDIR}"/.ivy2/local -name \*.jar -print | grep -v sbt-launch.jar) \ - $(find "${WORKDIR}"/.ivy2/local -name sbt-launch.jar -print) - local ja="-Dsbt.version=${PV} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled" - java-pkg_dolauncher sbt --jar sbt-launch.jar --java_args "${ja}" -}