summaryrefslogtreecommitdiff
path: root/dev-lang/scala
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/scala')
-rw-r--r--dev-lang/scala/Manifest27
-rw-r--r--dev-lang/scala/files/scala-2.12.10-no-git.patch37
-rw-r--r--dev-lang/scala/files/scala-2.12.4-no-git.patch37
-rw-r--r--dev-lang/scala/metadata.xml14
-rw-r--r--dev-lang/scala/scala-2.12.10-r2.ebuild190
-rw-r--r--dev-lang/scala/scala-2.12.4.ebuild211
6 files changed, 0 insertions, 516 deletions
diff --git a/dev-lang/scala/Manifest b/dev-lang/scala/Manifest
deleted file mode 100644
index ccdf28c7fb15..000000000000
--- a/dev-lang/scala/Manifest
+++ /dev/null
@@ -1,27 +0,0 @@
-AUX scala-2.12.10-no-git.patch 1556 BLAKE2B c3c4e0dc416aceb7b0a90425d719e6de716364a7f2cfc91e863e37b902ece95f903098d98ea37c1b662423e84700561aa8510ed7e191973f86b5544f356ba89c SHA512 565cf1b242b374803211c5fea7e71e8ccb654462b043810b28f7b15ad3641a20bd57fb5005de09a6b9d63ca113e8f578992c650ea286879dd32888762bb4b9b0
-AUX scala-2.12.4-no-git.patch 1453 BLAKE2B 6d77493326398d00c103e6342ff4765f9a2f3b270a819d651ca4435ed473416b3882f6a98707c181131ea539d7a034a862bd1768cff1eab44d12a23899f5ef67 SHA512 48e12f3a6cc6ee65f9ea7afbd403d67e7bc642e242677d38f4a87f74f90b3feb5efe8fd6798bc36d0f209b27f323e854173cfa104dd149e24dd1809f64f61475
-DIST scala-2.12.10-gentoo-binary.tar.xz 79479656 BLAKE2B 2d75552ba960a1f1cda5f678f1ba6ca01d5a41b813c098ceacdea93f8a3ea3f7c45d18a94f7be891f22d01fc9fc9a14b0c077723056e859ade327f973c545572 SHA512 f9eee5667bd31e1d90da2a95ffde9f894bef557dcebd6db9e882baed9b9ba6a9d290cdb34688307467578fdc8e20993911d64bd5d442e0a7198e4889edb80a2b
-DIST scala-2.12.10-ivy2-deps.tar.xz 76800392 BLAKE2B 4290f8f3a2f0122620e5c459e23fece319168c1c7807c93ec731b99d89ec2ffb19591c3e01d2827e984f46214895dac7c68456f92241afb165a0cb6088ac33d6 SHA512 71870332e8488de99d0e8dc11c8afe009152b83feef1912c91c7ca6201de67c96b9760ee039ce0449d5893da0c2086e5c9f7819ad8008e899ab49508a1de1e99
-DIST scala-2.12.10-sbt-deps.tar.xz 34944260 BLAKE2B a42a320340f180c60ae2f5e908eb5fabd3cd4d4e9218c724ec74a79f288b4145445de7ccf91cc2dea3ab1bb128beffbbaeedfb1ed4e44f9c0ad66b16fba4741b SHA512 08bb9eea27ac3603bf4772d29235bf076bf7bb5433fc13d2faf85d7362b4a80176651457851c4eefb41a0169ce1204e634f44e22e5d6ac83777c11c90d9a8aae
-DIST scala-2.12.10.tar.gz 6725873 BLAKE2B 5534baed3c51d8234b67cec79d8f6859bde403e79e557a0d50019d834c9f448398b507ad90aca522437f870a2f4cbdf56a2b7c5bee67a95c1e96b237bebcefc6 SHA512 30079ee83e89c189e84e94068f261aafe1fd7fe0cb4177e2802ac85372c4c2272c5af2b57424ab90e5236cbaca2f30936635f8f3bb4bfb2c748483e9c52ae96e
-DIST scala-2.12.4-annotations.jar 2242 BLAKE2B 0c731c25eaa407bdfb51d749f688062a33bd7f2815e8303ba5c56532027350f58d5ab364f2428547c2a99e2032ba0d0d20d4d50cc27dc5c42946e7842111547d SHA512 3ceee0b1361b9e0911c1ff060ad108a1d93f7ea3e82ef946401cd5f895cb06016ac0ecdfd095f99b11cfb28c4cef7705c1b564c7af644c5f19b45c14a413c4dd
-DIST scala-2.12.4-ant-contrib.jar 224277 BLAKE2B f43bfe3da05decbcf4ec9d2f48bface141907abfbe5b17532e970dbb660e0e1ffae9807c12da38cd6dc8e57c2605c6ec86ad11a99331e73edd3e4418656ab27e SHA512 5ec325a55bb213226c86faf8a99951839319e9579956ae58e2ccfe84f62d2742542998f98eed3f0dc8f8f94635d6dff1fe02e3c0f5289df1f09027ae2b9bee83
-DIST scala-2.12.4-ant-dotnet-1.0.jar 57795 BLAKE2B 1f04f20739a231816a6d9c81ac0ba23f155ebdb467f466640b18ba2b4f125a6171bcf420c42f71fcfa2c13293a5241e200d0d908bd460ca3ae0342b13747aaad SHA512 72afc387cf9dbeb99e627ca7f35f919f627bbf3f072eb46036120695fb70311490593c255c2a2e79b684adb8f213d8ab591d4ceda5d5f2e6b6906a6977b38867
-DIST scala-2.12.4-ant.jar 1506140 BLAKE2B 790d0f38316e0772b2f315220bbf70328e1e136bccb99bd2f2b2986b33aed60da5ca699c11eeaf653c64f4d07505e168442eea0711b6c627ee97b661d3933584 SHA512 ddee72ca62adb20e700022609749a4d6cc848c94e597a7450226770c8b97aa2c1f7f23b7a1c6ac8acd63047101997ebd68c19b393ebffde9ff5c7bb1957cd18c
-DIST scala-2.12.4-code.jar 683 BLAKE2B b19a34aacc82dcc6bf4efb5556896521ce606cbd72a36ca5c2a019d3aec294172b13968e506373afdd1328668190f60ed337431def7744269cef024e5f82825a SHA512 d963c186f3029858b1f6b53cf6e3470946365f13a6bcc334a7c959fd449dace10a953c496dbf3036828f2b5e5ad17d22f5e3912446bed14bd71b2f0de2f6c767
-DIST scala-2.12.4-enums.jar 1372 BLAKE2B d3fc4941297344cd42c515ac6564092be7f80676aaf83029ebbcabbcce5ccfb71c008cc56a6fadadb0869d7f53e49a1f85c42e74c7b688acf43f677aa566dd82 SHA512 3d2356b9f610e98a03f64cbdd18ee36138b68ba5b170bb9b78bc7449439c3870f6f5bc795f3e1b8d325daf468ae85c581b60d1d360c1ae68c70792ad62b9c1dc
-DIST scala-2.12.4-genericNest.jar 1136 BLAKE2B 7ae0cbd5445d5d504738a00fce77ce411ac7371c48b742ea2ec1f686298eeb891e33cc74eb6ccffd15753a11ed0eb3aa0b3859ba7a18566e9021d64124a2d7b5 SHA512 32c3b3e14bc72db2572bf120c1fda49a369b27ff8ae6ae12f6d7b12fdffef4064b515671c8f1b6dbfd78209247f6a7b7b26e700dd70a105de3ca59f5185ff9d6
-DIST scala-2.12.4-gentoo-binary.tar.xz 78241224 BLAKE2B 5caefb6c057b18cffdeb39440cabe14499d9f760a36ee9f1bd671c20f1961d463e13d8f81f2eb237a299cc4bd6e7f06cacad41b667ff7ccc20d439886f804af9 SHA512 dcf0ffa9eddf5d76d38b4078fe82715b667a0905273a5fe433e752e34a099c4aec4d53bc542a3be341b849857945f698cca384f824a4dae6406243eca36c5e1c
-DIST scala-2.12.4-instrumented.jar 31725 BLAKE2B 5dc07140fbdd895512b41ebdacd56763f99ff0043f39652b0bce510fdc61c7c75fc5babb977c03b01cc7913339a4623fa698a513eb32a2c4b1314d033b74cb7e SHA512 b1d77c4380a2b8ffe715ec106e58081e5c89e314c5a13071d627c3f974144ad453e79d405cd722d75095b62e8682b7414d40b691506c7d2f5dde62e2fce51e39
-DIST scala-2.12.4-ivy2-deps.tar.xz 66284364 BLAKE2B 83f3d0d6735afa801345c93d5b468d1c9fceba23526628a534fe3e9b1f301cbc561844fe1e30d0015bd3b705bcc15095649265e0927cf70d955980658a50eeba SHA512 c890a3f85734b35b398d5266f4507284e7474bac6018a34945d858ebebefa225a00238bd3a82e99ab83e344e98f6b14f6c2852a6b05eb5d7ef2094039d53a6d7
-DIST scala-2.12.4-jsoup-1.3.1.jar 133835 BLAKE2B 0e57e44ff0283f18e07e05feb22ee8d5d8edb575c85a6cb42dc2c866e0dd4752a2bd0a5318bf5fc3764c9c408b89d690bfb6f3b1b4754a50397f229543d30591 SHA512 365e43b6d8ba14ae32607241481f7c0e6393268f5c3faef860be7674150edece2c30376108e54f307df6a266a91100a1c7dbc2f28b4207b5227bc1bec6e1106d
-DIST scala-2.12.4-macro210.jar 2065 BLAKE2B d1194e28fe0d2740a370e343bed3e5084d69c2dedfbe0e0c135f16ce6a3c3467277084f003d567e93aaeb445e8f6140287c58a5ea01960d03aabad31f5f567bd SHA512 13c119afc4400f1531cad0cf38ab1652fce641090c11bff8f044a0d7f99df90412241ae78d5c623b7ecff1ce4720ae51fca4324f51bde0331e12f2e6e9898dd0
-DIST scala-2.12.4-maven-ant-tasks-2.1.1.jar 1314262 BLAKE2B 9dc8e5fbab52d8cf97287e9696181ea3a86e8915b152d8be56fc5e1f7a4c75c066f350a0dab7b957269cc6a8a9d6ed42ca37bfcc20ad61b2f32ac9e348009e99 SHA512 e3f0ff1d41ec31b2b64acb2ebcc175709714033589cb8e763f94aa80359c84f5d960c46dae713c9e37e1a09b977e7da617f8fe10a5b6fb30c55efd19bc307e68
-DIST scala-2.12.4-methvsfield.jar 609 BLAKE2B 56a86d8409af806474a46d9f2c5afa8533e0689b4d238258be986ac308a6a060e6d66e3d594ad8d7658b539cdc0b96e442b79279c4e71f27924fcfcf1c94cd16 SHA512 6db923ed7059bc91c8442d5804ccd8336e94f5202b3dcc348a4eb5026f09e1e86862f6e94818beae9ad42fcdc8e51df4d59a27109903a8ccb78054425ae47a71
-DIST scala-2.12.4-nest.jar 2920 BLAKE2B 3c48a2ea7501be03ede0fd9c1f907508491299cd68051e283fcce5576c1dde1032afa766e48529d4ce33e0f9ffe6f18d20e7341776e857f991969fe713a382ea SHA512 5eaaa870e06b5e00efb1f6ccced71343e8aa01578ea2b320b2d051f2df3713df9c500f074cc74a9e3c5cc509e03cf9c71265329bf2ddb3e82cb331524202fa38
-DIST scala-2.12.4-sbt-deps.tar.xz 34841672 BLAKE2B 0f1577bba65eb5863013014b16627c28934f13e84a6ed0a52748e2007417ae074bcb4b68650993d870f4ada872248d489f84ea02ee19521dd9ce8faae963e221 SHA512 74455451e77f0d935c8027e67b898e5eec9e984158292a37a4362072f4922eb53dfe9ddd5d52da8066fb8949c6469bff70405df8581633a49a37c8b900c6885e
-DIST scala-2.12.4-vizant.jar 15910 BLAKE2B 393ddd38ff2528b9c54fbb2b79111858a2dfeab66e4b10daf4e23d113963edb3002db8c9415fe47557736a63ecef4b198bd90b87a54240a9a43823fdab0f3082 SHA512 4464d7349016f4999199e227e8eaf7bb3ef6b7e38ad0e8e710faad55df2e1243d99b53b9a789a1ffd3c39aef0d979dffc543f4691feae68cfa743e51bcf61390
-DIST scala-2.12.4.tar.gz 5999529 BLAKE2B 5dfeadb9ac9562dd825f6a41f9cabdd353f669a58dc3aaec714d6155e9e598296c1e31dcc8956a24a97103e3449fb8f8c3a9ebe5e52dd405572d59ccae89c5e6 SHA512 cad6d54777a3ad4d26df5b4d5cecbbdb4a91ecb17cbf791fe259735221d33f9dd17a14e86f5e3520464078ad9ef68581e722e3c0d7494436bf356c79a9d31697
-EBUILD scala-2.12.10-r2.ebuild 5252 BLAKE2B 1330642f586791d98f4aa4e71961218f50d83484a8b976c919c47e54a3175111e015f7776896e46bbbddf7dc71f2ae75cd33f7262d95ca9fcefeb9519f9ee5bc SHA512 3a7c474afe1f27c52831638ac6def5b1a44444a4bbdafd480a06688856f59a82a042e611c0ceaa0ae21f3b87c1266996fa46f36ac903fa3c6b804b6540ae8d05
-EBUILD scala-2.12.4.ebuild 7246 BLAKE2B f2d4b5b5cf33764ecbbc1eb83367b3bdae9fd1ce82e6f9c7759a467a132de5ad4be1623b273fdce0d7a07b28f2a354a78d4b41663bff4d62e46e4c4c78deaf52 SHA512 03673e873e5415b090d9d3582c41d6f4e88cae29b9cd466d12a21a5b8f814e7c8626f345c6fc4bb60fb4ee287c9edf3898a01185570e2268b6092347c7188a7b
-MISC metadata.xml 479 BLAKE2B 8927ad38cb58fcc55fef40f95a1e57c2172a8ca8b6994f71a92fe0e10065b80ece596696afe93595e7f6c27959d4025d5670a41bd7dfece649faaf4f7dd7ed8d SHA512 f8ed5a95195ac7d96c22d0e8b7e65e0e5d624fae245b976b1486a93910ef9b9a9cc20b9c31363085868bf120589247ddc607f22b583ba65b247b84acd4e0763f
diff --git a/dev-lang/scala/files/scala-2.12.10-no-git.patch b/dev-lang/scala/files/scala-2.12.10-no-git.patch
deleted file mode 100644
index 017cb983b59b..000000000000
--- a/dev-lang/scala/files/scala-2.12.10-no-git.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- scala-2.12.10-orig/project/VersionUtil.scala 2019-09-05 01:01:59.000000000 +1000
-+++ scala-2.12.10/project/VersionUtil.scala 2019-09-12 11:00:05.525154568 +1000
-@@ -2,7 +2,7 @@
-
- import sbt.{stringToProcess => _, _}
- import Keys._
--import java.util.{Date, Locale, Properties, TimeZone}
-+import java.util.{Calendar, Date, Locale, Properties, TimeZone}
- import java.io.{File, FileInputStream}
- import java.text.SimpleDateFormat
-
-@@ -65,18 +65,13 @@
- val log = sLog.value
- val (dateObj, sha) = {
- try {
-- // Use JGit to get the commit date and SHA
-- import org.eclipse.jgit.storage.file.FileRepositoryBuilder
-- import org.eclipse.jgit.revwalk.RevWalk
-- val db = new FileRepositoryBuilder().findGitDir.build
-- val head = db.resolve("HEAD")
-- if (head eq null) {
-- log.info("No git HEAD commit found -- Using current date and 'unknown' SHA")
-- (new Date, "unknown")
-- } else {
-- val commit = new RevWalk(db).parseCommit(head)
-- (new Date(commit.getCommitTime.toLong * 1000L), commit.getName.substring(0, 7))
-- }
-+ val commit = "61701c22900f14676fa181500722b64330eb2605"
-+ val cal = Calendar.getInstance();
-+ cal.set(Calendar.YEAR, 2019);
-+ cal.set(Calendar.MONTH, Calendar.SEPTEMBER);
-+ cal.set(Calendar.DAY_OF_MONTH, 5);
-+ val date = cal.getTime();
-+ (date, commit.substring(0, 7))
- } catch {
- case ex: Exception =>
- log.error("Could not determine commit date + SHA: " + ex)
diff --git a/dev-lang/scala/files/scala-2.12.4-no-git.patch b/dev-lang/scala/files/scala-2.12.4-no-git.patch
deleted file mode 100644
index 0114e1d42b9e..000000000000
--- a/dev-lang/scala/files/scala-2.12.4-no-git.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- a/project/VersionUtil.scala
-+++ b/project/VersionUtil.scala
-@@ -2,7 +2,7 @@
-
- import sbt.{stringToProcess => _, _}
- import Keys._
--import java.util.{Date, Locale, Properties, TimeZone}
-+import java.util.{Calendar, Date, Locale, Properties, TimeZone}
- import java.io.{File, FileInputStream}
- import java.text.SimpleDateFormat
-
-@@ -65,18 +65,13 @@
- val log = sLog.value
- val (dateObj, sha) = {
- try {
-- // Use JGit to get the commit date and SHA
-- import org.eclipse.jgit.storage.file.FileRepositoryBuilder
-- import org.eclipse.jgit.revwalk.RevWalk
-- val db = new FileRepositoryBuilder().findGitDir.build
-- val head = db.resolve("HEAD")
-- if (head eq null) {
-- log.info("No git HEAD commit found -- Using current date and 'unknown' SHA")
-- (new Date, "unknown")
-- } else {
-- val commit = new RevWalk(db).parseCommit(head)
-- (new Date(commit.getCommitTime.toLong * 1000L), commit.getName.substring(0, 7))
-- }
-+ val commit = "c2a5883891a68180b143eb462c8b0cebc8d3b02"
-+ val cal = Calendar.getInstance();
-+ cal.set(Calendar.YEAR, 2017);
-+ cal.set(Calendar.MONTH, Calendar.OCTOBER);
-+ cal.set(Calendar.DAY_OF_MONTH, 11);
-+ val date = cal.getTime();
-+ (date, commit.substring(0, 7))
- } catch {
- case ex: Exception =>
- log.error("Could not determine commit date + SHA: " + ex)
diff --git a/dev-lang/scala/metadata.xml b/dev-lang/scala/metadata.xml
deleted file mode 100644
index b109f86671ec..000000000000
--- a/dev-lang/scala/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>java@gentoo.org</email>
- <name>Java</name>
- </maintainer>
- <use>
- <flag name="binary">Install from (Gentoo-compiled) binary instead of building from sources. Set this when you run out of memory during build.</flag>
- </use>
- <upstream>
- <remote-id type="github">scala/scala</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-lang/scala/scala-2.12.10-r2.ebuild b/dev-lang/scala/scala-2.12.10-r2.ebuild
deleted file mode 100644
index 0568eda4cfce..000000000000
--- a/dev-lang/scala/scala-2.12.10-r2.ebuild
+++ /dev/null
@@ -1,190 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-JAVA_PKG_IUSE="doc source"
-
-inherit check-reqs java-pkg-2
-
-SV="$(ver_cut 1-2)"
-SBTV="0.13.18"
-
-# Note: to bump scala, some things to try are:
-# 1. remove the https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.gz
-# and https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.gz from
-# SRC_URI
-# 2. try emerge scala, with network-sandbox disabled:
-# FEATURES="noclean -network-sandbox" emerge dev-lang/scala
-# Check if it downloads more stuff in src_compile to
-# ${WORKDIR}/.ivy2 or ${WORKDIR}/.sbt or /root/.ivy2 or /root/.sbt
-# 3. tar up all the .ivy2 and .sbt junk into ${P}-ivy2-deps.tar.xz and
-# ${P}-sbt-deps.tar.xz and add them to SRC_URI, in ${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
-# 4. Add these tar files to SRC_URI (undo step 1).
-# 5. Try emerging it again, with network-sandbox, and create the bianry
-# tar archive:
-# FEATURES="noclean network-sandbox -test" USE="doc source" emerge dev-lang/scala
-# cd $WORDKIR
-# XZ_OPT=-9 tar --owner=portage --group=portage \
-# -cJf /usr/portage/distfiles/${P}-gentoo-binary.tar.xz .ivy2/local \
-# ${P}/build/pack/bin ${P}/build/quick/classes/scala-dist/man/man1 \
-# ${P}/src/library ${P}/src/library-aux ${P}/src/reflect ${P}/doc/README \
-# ${P}/build/scaladoc
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="https://www.scala-lang.org/"
-SRC_URI="
- !binary? (
- https://github.com/scala/scala/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
- )
- binary? (
- https://dev.gentoo.org/~gienah/distfiles/${P}-gentoo-binary.tar.xz
- )"
-LICENSE="BSD"
-SLOT="${SV}/${PV}"
-KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
-
-IUSE="binary emacs"
-
-COMMON_DEP=">=dev-java/ant-1.10.14-r3:0
- dev-java/jline:2"
-
-DEPEND="${COMMON_DEP}
- !binary? (
- >=dev-java/sbt-${SBTV}-r1:0
- media-gfx/graphviz
- )
- <=virtual/jdk-11:*
- app-arch/xz-utils:0"
-
-RDEPEND="${COMMON_DEP}
- >=virtual/jre-1.8:*
- app-eselect/eselect-scala
- !dev-lang/scala-bin:0"
-
-PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
-
-CHECKREQS_MEMORY="1536M"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
-
- check-reqs_pkg_setup
- fi
-}
-
-pkg_pretend() {
- if ! use binary; then
- check-reqs_pkg_pretend
- fi
-}
-
-src_unpack() {
- # Unpack tar files only.
- for f in ${A} ; do
- [[ ${f} == *".tar."* ]] && unpack ${f}
- done
-}
-
-src_prepare() {
- java-pkg_getjars ant,jline-2,sbt
-
- if ! use binary; then
- local a
- for a in "${JURI[@]}"
- do
- echo "${a}"
- local g="${a/* -> /}"
- echo "${g}"
- local j="${a/ -> */}"
- echo "${j}"
- cp -p "${DISTDIR}/${g}" "${S}/${j#${BURI}/*/}" || die
- done
-
- # gentoo patch (by gienah) to stop it calling git log in the build
- eapply "${FILESDIR}/${PN}-2.12.10-no-git.patch"
-
- cat <<- EOF > "${S}/sbt"
- #!/bin/bash
- gjl_package=sbt
- gjl_jar="sbt-launch.jar"
- gjl_java_args="-Dsbt.version=${SBTV} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
- source "${EPREFIX}"/usr/share/java-config-2/launcher/launcher.bash
- EOF
- chmod u+x "${S}/sbt" || die
-
- sed -e 's@-Xmx1024M@-Xmx1536M@' \
- -i "${S}/build.sbt" \
- || die "Could not change increase memory size in ${S}/build.sbt"
- fi
-
- default
-}
-
-src_compile() {
- if ! use binary; then
- export PATH="${EROOT}/usr/share/scala-${SV}/bin:${WORKDIR}/${L_P}:${PATH}"
- export LANG="en_US.UTF-8"
- einfo "=== scala compile ..."
- "${S}"/sbt -Dsbt.log.noformat=true compile || die "sbt compile failed"
- einfo "=== sbt publishLocal with jdk $(java-pkg_get-vm-version) ..."
- "${S}"/sbt -Dsbt.log.noformat=true publishLocal \
- || die "sbt publishLocal failed"
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- if ! use binary; then
- "${S}"/sbt -Dsbt.log.noformat=true test || die "sbt test failed"
- else
- einfo "Skipping tests, USE=binary is set."
- fi
-}
-
-src_install() {
- pushd build/pack || die
- local SCALADIR="/usr/share/${PN}-${SV}"
- exeinto "${SCALADIR}/bin"
- doexe $(find bin/ -type f ! -iname '*.bat')
- dodir /usr/bin
- for b in $(find bin/ -type f ! -iname '*.bat'); do
- local _name=$(basename "${b}")
- dosym "${SCALADIR}/bin/${_name}" "/usr/bin/${_name}-${SV}"
- done
- popd || die
- java-pkg_dojar $(find "${WORKDIR}"/.ivy2/local -name \*.jar -print)
-
- pushd build/quick/classes/scala-dist/man/man1 || die
- for i in *.1; do
- newman "${i}" "${i/./-${SV}.}"
- done
- popd || die
-
- #sources are .scala so no use for java-pkg_dosrc
- pushd src || die
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins -r library library-aux reflect
- fi
- popd || die
-
- local DOCS=( "doc/README" )
- local HTML_DOCS=( "build/scaladoc" )
- use doc && einstalldocs
-}
diff --git a/dev-lang/scala/scala-2.12.4.ebuild b/dev-lang/scala/scala-2.12.4.ebuild
deleted file mode 100644
index 58851200267d..000000000000
--- a/dev-lang/scala/scala-2.12.4.ebuild
+++ /dev/null
@@ -1,211 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-JAVA_PKG_IUSE="doc source"
-
-inherit check-reqs java-pkg-2 versionator
-
-SV="$(get_version_component_range 1-2)"
-
-# Note: to bump scala, some things to try are:
-# 1. update all the sha1s in JURI
-# 2. remove the https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.gz
-# and https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.gz from
-# SRC_URI
-# 3. try emerge scala. Check if it downloads more stuff in src_compile to
-# ${WORKDIR}/.ivy2 or ${WORKDIR}/.sbt or /root/.ivy2 or /root/.sbt
-# 4. tar up all the .ivy2 and .sbt junk into ${P}-ivy2-deps.tar.xz and
-# ${P}-sbt-deps.tar.xz and add them to SRC_URI:
-# 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
-
-# creating the binary:
-# FEATURES="noclean -test" USE="doc source" emerge dev-lang/scala
-# cd $WORDKIR
-# XZ_OPT=-9 tar --owner=portage --group=portage \
-# -cJf /usr/portage/distfiles/${P}-gentoo-binary.tar.xz .ivy2/local \
-# ${P}/build/pack/bin ${P}/build/quick/classes/scala-dist/man/man1 \
-# ${P}/src/library ${P}/src/library-aux ${P}/src/reflect ${P}/doc/README \
-# ${P}/build/scaladoc
-
-# In the pullJarFiles function in tools/binary-repo-lib.sh it executes find commands
-# to search for .desired.sha1 files, which contain sha1 hashes that are appended
-# to ${BURI} along with the subdirectory and filename to form the list of jar files
-# listed in SRC_URI. The output of this find command can be hacked into the desired format:
-# find . -name \*.desired.sha1 -exec sed -e 's@\([0-9a-f]*\).*@\1@' {} \; -print
-# After editing it into the desired format: sort -t / -k 3 file
-
-BURI="http://repo.typesafe.com/typesafe/scala-sha-bootstrap/org/scala-lang/bootstrap"
-
-declare -a JURI=(
- "${BURI}/943cd5c8802b2a3a64a010efb86ec19bac142e40/lib/ant/ant-contrib.jar -> ${P}-ant-contrib.jar"
- "${BURI}/3fc1e35ca8c991fc3488548f7a276bd9053c179d/lib/ant/ant-dotnet-1.0.jar -> ${P}-ant-dotnet-1.0.jar"
- "${BURI}/7b456ca6b93900f96e58cc8371f03d90a9c1c8d1/lib/ant/ant.jar -> ${P}-ant.jar"
- "${BURI}/7e50e3e227d834695f1e0bf018a7326e06ee4c86/lib/ant/maven-ant-tasks-2.1.1.jar -> ${P}-maven-ant-tasks-2.1.1.jar"
- "${BURI}/2c61d6e9a912b3253194d5d6d3e1db7e2545ac4b/lib/ant/vizant.jar -> ${P}-vizant.jar"
- "${BURI}/e737b123d31eede5594ceda07caafed1673ec472/test/files/codelib/code.jar -> ${P}-code.jar"
- "${BURI}/02fe2ed93766323a13f22c7a7e2ecdcd84259b6c/test/files/lib/annotations.jar -> ${P}-annotations.jar"
- "${BURI}/981392dbd1f727b152cd1c908c5fce60ad9d07f7/test/files/lib/enums.jar -> ${P}-enums.jar"
- "${BURI}/b1ec8a095cec4902b3609d74d274c04365c59c04/test/files/lib/genericNest.jar -> ${P}-genericNest.jar"
- "${BURI}/346d3dff4088839d6b4d163efa2892124039d216/test/files/lib/jsoup-1.3.1.jar -> ${P}-jsoup-1.3.1.jar"
- "${BURI}/3794ec22d9b27f2b179bd34e9b46db771b934ec3/test/files/lib/macro210.jar -> ${P}-macro210.jar"
- "${BURI}/be8454d5e7751b063ade201c225dcedefd252775/test/files/lib/methvsfield.jar -> ${P}-methvsfield.jar"
- "${BURI}/cd33e0a0ea249eb42363a2f8ba531186345ff68c/test/files/lib/nest.jar -> ${P}-nest.jar"
- "${BURI}/1b11ac773055c1e942c6b5eb4aabdf02292a7194/test/files/speclib/instrumented.jar -> ${P}-instrumented.jar"
-)
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="https://www.scala-lang.org/"
-SRC_URI="
- !binary? (
- https://github.com/scala/scala/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
- ${JURI[@]} )
- binary? (
- https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.xz )"
-LICENSE="BSD"
-SLOT="${SV}/${PV}"
-KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
-
-IUSE="binary emacs"
-
-COMMON_DEP="dev-java/ant-core:0
- dev-java/jline:2"
-
-DEPEND="${COMMON_DEP}
- !binary? (
- =virtual/jdk-1.8*
- >=dev-java/sbt-0.13.13
- media-gfx/graphviz
- )
- >=virtual/jdk-1.8
- app-arch/xz-utils:0"
-
-RDEPEND="${COMMON_DEP}
- >=virtual/jre-1.8
- app-eselect/eselect-scala
- !dev-lang/scala-bin:0"
-
-PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
-
-CHECKREQS_MEMORY="1536M"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
-
- check-reqs_pkg_setup
- fi
-}
-
-src_unpack() {
- # Unpack tar files only.
- for f in ${A} ; do
- [[ ${f} == *".tar."* ]] && unpack ${f}
- done
-}
-
-src_prepare() {
- java-pkg_getjars ant-core,jline-2
-
- if ! use binary; then
- local a
- for a in "${JURI[@]}"
- do
- echo "${a}"
- local g="${a/* -> /}"
- echo "${g}"
- local j="${a/ -> */}"
- echo "${j}"
- cp -p "${DISTDIR}/${g}" "${S}/${j#${BURI}/*/}" || die
- done
-
- # gentoo patch (by gienah) to stop it calling git log in the build
- eapply "${FILESDIR}/${PN}-2.12.4-no-git.patch"
-
- local SBT_PVR="$(java-config --query=PVR --package=sbt)"
- sed -e "s@sbt.version=0.13.11@sbt.version=${SBT_PVR}@" \
- -i "${S}/project/build.properties" \
- || die "Could not set sbt.version=${SBT_PVR} in project/build.properties"
-
- cat <<- EOF > "${S}/sbt"
- #!/bin/bash
- gjl_package=sbt
- gjl_jar="sbt-launch.jar"
- gjl_java_args="-Dsbt.version=0.13.13 -Dfile.encoding=UTF8 -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
- source "${EPREFIX}"/usr/share/java-config-2/launcher/launcher.bash
- EOF
- chmod u+x "${S}/sbt" || die
-
- sed -e 's@-Xmx1024M@-Xmx1536M@' \
- -i "${S}/build.sbt" \
- || die "Could not change increase memory size in ${S}/build.sbt"
- fi
-
- default
-}
-
-src_compile() {
- if ! use binary; then
- export PATH="${EROOT}usr/share/scala-${SV}/bin:${WORKDIR}/${L_P}:${PATH}"
- einfo "=== scala compile ..."
- "${S}"/sbt -Dsbt.log.noformat=true compile || die "sbt compile failed"
- einfo "=== sbt publishLocal with jdk $(java-pkg_get-vm-version) ..."
- "${S}"/sbt -Dsbt.log.noformat=true publishLocal \
- || die "sbt publishLocal failed"
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- if ! use binary; then
- "${S}"/sbt -Dsbt.log.noformat=true test || die "sbt test failed"
- else
- einfo "Skipping tests, USE=binary is set."
- fi
-}
-
-src_install() {
- pushd build/pack || die
- local SCALADIR="/usr/share/${PN}-${SV}"
- exeinto "${SCALADIR}/bin"
- doexe $(find bin/ -type f ! -iname '*.bat')
- dodir /usr/bin
- for b in $(find bin/ -type f ! -iname '*.bat'); do
- local _name=$(basename "${b}")
- dosym "${SCALADIR}/bin/${_name}" "/usr/bin/${_name}-${SV}"
- done
- popd || die
- java-pkg_dojar $(find "${WORKDIR}"/.ivy2/local -name \*.jar -print)
-
- pushd build/quick/classes/scala-dist/man/man1 || die
- for i in *.1; do
- newman "${i}" "${i/./-${SV}.}"
- done
- popd || die
-
- #sources are .scala so no use for java-pkg_dosrc
- pushd src || die
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins -r library library-aux reflect
- fi
- popd || die
-
- local DOCS=( "doc/README" )
- local HTML_DOCS=( "build/scaladoc" )
- einstalldocs
-}