parent
135d66c984
commit
79706f271c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit golang-build systemd
|
||||
|
||||
DESCRIPTION="Keybase Filesystem (KBFS)"
|
||||
HOMEPAGE="https://keybase.io/docs/kbfs"
|
||||
SRC_URI="https://github.com/keybase/kbfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
app-crypt/gnupg
|
||||
sys-fs/fuse
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${P}.tar.gz"
|
||||
mkdir -vp "${S}/src/github.com/keybase" || die
|
||||
ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
||||
EGO_BUILD_FLAGS="-tags production -o ${T}/kbfsfuse" \
|
||||
golang-build_src_compile
|
||||
EGO_PN="github.com/keybase/kbfs/kbfsgit/git-remote-keybase" \
|
||||
EGO_BUILD_FLAGS="-tags production -o ${T}/git-remote-keybase" \
|
||||
golang-build_src_compile
|
||||
EGO_PN="github.com/keybase/kbfs/redirector" \
|
||||
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase-redirector" \
|
||||
golang-build_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
||||
golang-build_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${T}/kbfsfuse"
|
||||
dobin "${T}/git-remote-keybase"
|
||||
dobin "${T}/keybase-redirector"
|
||||
systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit golang-build systemd
|
||||
|
||||
DESCRIPTION="Client for keybase.io"
|
||||
HOMEPAGE="https://keybase.io/"
|
||||
SRC_URI="https://github.com/keybase/client/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
~app-crypt/kbfs-2.8.0"
|
||||
RDEPEND="
|
||||
app-crypt/gnupg"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${P}.tar.gz"
|
||||
ln -vs "client-${PV}" "${P}" || die
|
||||
mkdir -vp "${S}/src/github.com/keybase" || die
|
||||
ln -vs "${S}" "${S}/src/github.com/keybase/client" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
EGO_PN="github.com/keybase/client/go/keybase" \
|
||||
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase" \
|
||||
golang-build_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
EGO_PN="github.com/keybase/client/go/keybase" \
|
||||
golang-build_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${T}/keybase"
|
||||
dobin "${S}/packaging/linux/run_keybase"
|
||||
systemd_douserunit "${S}/packaging/linux/systemd/keybase.service"
|
||||
dodir "/opt/keybase"
|
||||
insinto "/opt/keybase"
|
||||
doins "${S}/packaging/linux/crypto_squirrel.txt"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Start/Restart keybase: run_keybase"
|
||||
elog "Run the service: keybase service"
|
||||
elog "Run the client: keybase login"
|
||||
ewarn "Note that the user keybasehelper is obsolete and can be removed"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST graphviz-dot-mode-0.3.7.el.xz 10840 BLAKE2B 6d4d80705ba01723ce538dcf97a218197c4d5295196d94c72dc5debdd59bf3e755227088a89b55c0ef019c9c4dbdaf5a7c01c441440ae8be32d5d472711160b2 SHA512 1b142cd4ea257a1b18f557d9b166db9c69538238c100d3eb682219df3488803566bbb366be6b57d129753c745b21a585eb815dbef870ad2e71560d4acc33edf3
|
||||
DIST graphviz-dot-mode-0.4.tar.gz 12288 BLAKE2B 2757734b1aae33322d3c093be4d650dd8c464292a50915463ea23e946a695986c6b36650c3f5baee69d402b2cd3747cc453cf18c56bd128dc6bdc9e15e2445ba SHA512 db50adc0550629adcee8ea7482e678b2fbfa8db514e9ea80381dec47fef75cd0a61b7cfbeef59aae102e50d824edfb06b8ee56c4e964cd3e90ec8540b1b250a6
|
||||
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Emacs mode for editing and previewing Graphviz dot graphs"
|
||||
HOMEPAGE="http://users.skynet.be/ppareit/projects/graphviz-dot-mode/graphviz-dot-mode.html
|
||||
https://github.com/ppareit/graphviz-dot-mode
|
||||
http://www.graphviz.org/"
|
||||
SRC_URI="https://github.com/ppareit/graphviz-dot-mode/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
@ -1,4 +1,3 @@
|
||||
DIST with-editor-2.6.0.tar.gz 28124 BLAKE2B b727fc645cba8c85e0ff688ffbb7fd165feeb3e2fe5033475d9f9b333435cdbb4bc6e0c05f862021c1cd32dcdf1c813a0d3a8fb6221a757c7cf4ee4853d40272 SHA512 454af6222f54b6695aedb085b6f9a4e60d4ebd9dd6047d67cba13087d3966670aa63358dff45633f3492152f6a15c4c1e92efbaaa787867fef9edcf8b14f690c
|
||||
DIST with-editor-2.7.2.tar.gz 30121 BLAKE2B a610348a3a2b26059bf58b4b26fdb4e2edddcf70604db7c9d69d2050f4ed1ac745cf94638656339a915ac11a2abe0e8eee5fcb73c768747a8d14078931106332 SHA512 9d412928ce5234d3541d717b5b800312c82495f937088cb8308ff64ab92d2639ce078cdc8eb86d34b775a0e6567409249d58d94eb61183b82b5c19e2465905a7
|
||||
DIST with-editor-2.7.3.tar.gz 30133 BLAKE2B af4455f06f5aa867fa7b57222b62a060dd325bea8ef4b408177666914cb97a4f614f13daaf281fe9ca65b90e94dbda33fcb845e822e025ed8b415c4d0d01d3a9 SHA512 1c613e49bfe4a9812e69ec62d6518b29e59bfde84c83097323dfa3274da7fe4ff6431c0ebcbbc889c2237bc535d7cdb2ab7ab1dd171b26e553f03dcf71efd09c
|
||||
DIST with-editor-2.7.4.tar.gz 30159 BLAKE2B 2e1e84dd1e4bd0c4f5c0e0bb8730e8c4327e58ae38ee445c4f7f365279f7b8293639be675e735e82fea15c0fa93ff7b02c18d0fdb81889d6b44459d40f7322ae SHA512 d35409bc761e5ee797ca758878365a11695e0e8558275e8dd8eb2b22c92b7ea92024a56c1adbab47d4b5e0cc49a2e6adf5e8d1f7fd3e784774dab39bdbf1d93c
|
||||
DIST with-editor-2.8.0.tar.gz 30519 BLAKE2B 80502d3839818e5d0277b0189b7c7b814eddae72007c4018500cf64136beaea3eccf23c147f02eaf734558c2f24e0dd7cb2a2a80c09e700df3e5ba1e911ba798 SHA512 15df8706754d61ab8d57f866cde54833ea3126915352ed7ebd5020224141a069a62a3872694f95fcff66be165310f8111e4d4c9a1717189686460e8264636b4c
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
NEED_EMACS=24
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Use the Emacsclient as the \$EDITOR of child processes"
|
||||
HOMEPAGE="https://magit.vc/manual/with-editor"
|
||||
SRC_URI="https://github.com/magit/with-editor/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
ELISP_TEXINFO="*.texi"
|
||||
DOCS="README.md with-editor.org"
|
||||
|
||||
DEPEND=""
|
||||
# Versions of magit before 2.5.0 bundled with-editor
|
||||
RDEPEND="!!<app-emacs/magit-2.5.0 ${DEPEND}"
|
||||
DEPEND="${DEPEND} sys-apps/texinfo"
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST docker-compose-1.19.0.tar.gz 238307 BLAKE2B 2a7bbcf50c2cc591eba1d59db30cb0341e33e3f1ebe948e0b6762d9bffcdcc72d98e2da19fc549c5fabda192fca69a9d54e016601ddb4f4a94f0dc1c93f99a29 SHA512 f1d522621580a5130378508e6b15ad2e4708e9c5ff713627ca54308ab3e6bf000e21c55bbdf9585b2116e73648fdc773500a5415ab81a72dd2c69c9c07e71581
|
||||
DIST docker-compose-1.21.2.tar.gz 294070 BLAKE2B c27ce8708f20385ee3f072c4aa832a42dc975d08d71d9e61ce3a822055d606db7e1e7b6e182523e64115922416d5c1baeca14897a241e84873a97aa755bce539 SHA512 6392582d8c6c321458b1163336f1c902548cc250f9ab5b765d144287b006ef6dacdc47199fafbb6efe426e382325b94986aa159df08dec4974a71968862a8435
|
||||
DIST docker-compose-1.22.0.tar.gz 296747 BLAKE2B 9dfd25fb186436801d9c12900c4103c1c0d83bee3b424b3f2373247aeeb8261fed04cf9be9cee230a48e1c19523b48d5618a18f322c236bac1d769036f9ac979 SHA512 eccef2165221fcfdac089ffd3bd0795d08d8c6f7158709dbc2fc83a6d6e9466af4b73c0c7d24a751c6b546b4219e10dfc96cd41e13e7ebc676da603c97b7620e
|
||||
DIST docker-compose-1.23.0.tar.gz 302110 BLAKE2B 0239d787a383c983d9965cecb087ff8d3050cd98bba0c324ea8f12f062f1b582fcfb20498d0cd0e323fe0912439f6ba288798f5c3d83e3c6a77fb298225fdf3a SHA512 b22f4c76e4187e9a01186516bbfaf988e9fc3e74e7a8455b6424cec61572a621d82f7bec9e23188fa297da26b0777c83d01374a628575d73fbb95502fb27d2db
|
||||
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 vcs-snapshot
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
DESCRIPTION="Multi-container orchestration for Docker"
|
||||
HOMEPAGE="https://github.com/docker/compose"
|
||||
SRC_URI="https://github.com/docker/compose/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/colorama-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/docker-py-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}]
|
||||
!~dev-python/PySocks-1.5.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.6.1[${PYTHON_USEDEP}]
|
||||
!~dev-python/requests-2.11.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/requests-2.12.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/requests-2.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/texttable-0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=dev-python/enum34-1.0.4[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
$(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
$(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
)
|
||||
"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-setup-py.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Address QA issue "docker-compose.exe: missing alias (symlink) for completed command."
|
||||
sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
${PYTHON} -m pytest tests/unit || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp contrib/completion/bash/docker-compose ${PN}
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins contrib/completion/zsh/*
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
From c481f53ff75d015b4db37b294c5a2142d0272f32 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Pipping <sebastian@pipping.org>
|
||||
Date: Wed, 31 Oct 2018 18:45:59 +0100
|
||||
Subject: [PATCH] setup.py: Drop generic upper version boundaries
|
||||
|
||||
---
|
||||
setup.py | 28 ++++++++++++++--------------
|
||||
1 file changed, 14 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 8260ebc..7f76abb 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -30,16 +30,16 @@ def find_version(*file_paths):
|
||||
|
||||
|
||||
install_requires = [
|
||||
- 'cached-property >= 1.2.0, < 2',
|
||||
- 'docopt >= 0.6.1, < 0.7',
|
||||
- 'PyYAML >= 3.10, < 4',
|
||||
- 'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0, < 2.21',
|
||||
- 'texttable >= 0.9.0, < 0.10',
|
||||
- 'websocket-client >= 0.32.0, < 1.0',
|
||||
- 'docker >= 3.5.0, < 4.0',
|
||||
- 'dockerpty >= 0.4.1, < 0.5',
|
||||
- 'six >= 1.3.0, < 2',
|
||||
- 'jsonschema >= 2.5.1, < 3',
|
||||
+ 'cached-property >= 1.2.0',
|
||||
+ 'docopt >= 0.6.1',
|
||||
+ 'PyYAML >= 3.10',
|
||||
+ 'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0',
|
||||
+ 'texttable >= 0.9.0',
|
||||
+ 'websocket-client >= 0.32.0',
|
||||
+ 'docker >= 3.5.0',
|
||||
+ 'dockerpty >= 0.4.1',
|
||||
+ 'six >= 1.3.0',
|
||||
+ 'jsonschema >= 2.5.1',
|
||||
]
|
||||
|
||||
|
||||
@@ -52,11 +52,11 @@ if sys.version_info[:2] < (3, 4):
|
||||
tests_require.append('mock >= 1.0.1')
|
||||
|
||||
extras_require = {
|
||||
- ':python_version < "3.4"': ['enum34 >= 1.0.4, < 2'],
|
||||
+ ':python_version < "3.4"': ['enum34 >= 1.0.4'],
|
||||
':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5'],
|
||||
- ':python_version < "3.3"': ['ipaddress >= 1.0.16'],
|
||||
- ':sys_platform == "win32"': ['colorama >= 0.4, < 0.5'],
|
||||
- 'socks': ['PySocks >= 1.5.6, != 1.5.7, < 2'],
|
||||
+ ':python_version < "3.3"': ['ipaddress'],
|
||||
+ ':sys_platform == "win32"': ['colorama >= 0.4'],
|
||||
+ 'socks': ['PySocks >= 1.5.6, != 1.5.7'],
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
2.19.1
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST img-0.4.8.tar.gz 5587652 BLAKE2B 5b74ff24e6f36674b66b3f87abe928a9d8c8361835eb61cb04ddfce6bfc7cb7b8e6e1f41d61d9f75c09c3646d0d697074882e1f7b87259b60d7c53303718e325 SHA512 fb5b97c4794798dc2dba5d4c9493da9708a55a9e5e7b2259585409c4e7973fecd362132dabb81c72f20b61956c5a8bc67b58db49c22e7ce56eaec784bbb51ca5
|
||||
DIST img-0.4.9.tar.gz 4654821 BLAKE2B b3cd419aeb64ec8c2e8ee0fd523d387fd5b1a340ad61deec1e3fda59ba4e58e7594682aa49e04922e5bdcad4c458f23d4b8081784ba9d7d88dc953a0bd7c24a9 SHA512 c529affce023a8ae972a8526b48701d137edd3a8d5a22687269eec07864a1c30edf1c84bfea29cb7d166cc4fed4b0eb1e34e41d5d21be9d1a3b975b4c1bc678f
|
||||
DIST img-0.5.1.tar.gz 6394095 BLAKE2B 5c26487f721ef7157c8dc47c5abc2f4f296efe4ddf3b4e1e0513e4a2a71c96287e92c2332b340d583f0687ff7c3b1f10aea107f9ab1527b3f6760f1f359de867 SHA512 66f812da0b77882a610f4de849eaf473a0a6e964fff7cc0b596b46411aa33d625a376d3e829b8eb438e26d09624146c18b83a2289ddf2785024e3f8a6fee6cf9
|
||||
DIST img-0.5.2.tar.gz 3426613 BLAKE2B 75da804bee0960c195f3f5af6f10276d3d9a93dfcf08c784b831da2dd4e27714f0c8c24b24d2683b1b75276362b47a2bbc251e032b5b1b87c081922cee4f90f4 SHA512 cbae3fab61005238c939ad5fa5b785b07ee10f964a686962bdaec7170297840ebda188b93a1e3b89c6041db455a085d537005f8b1dc8753cd4e77f3e699f40e4
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
EGO_PN="github.com/genuinetools/img"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
GIT_COMMIT="0b967de9a93f2a8b014b216daff36b9201f232ee"
|
||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Standalone daemon-less unprivileged Dockerfile and OCI container image builder"
|
||||
HOMEPAGE="https://github.com/genuinetools/img"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="seccomp"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
local TAGS=$(usex seccomp 'seccomp' '')
|
||||
pushd src/${EGO_PN} || die
|
||||
GOPATH="${S}" go build -tags "noembed ${TAGS}" -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/img . || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
dodoc -r src/${EGO_PN}/README.md
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST libjson-rpc-cpp-1.1.0.tar.gz 179442 BLAKE2B cfbfe703d1a3d4ccaf6d4d475a7c1686c8f7afc28b025d6fd3bfebdc41cff2b944e6600e68073c1b7e7c0a2463cbf6e9724cf618c5d481bf7a4600019b529922 SHA512 bf34eedb196b1e214292976036a00e933f8a9b4325441ea2e4ae049a7c818014a68dd9d2f22d01588f5e6d1e9f465c73a133b0fd8282f8cf78a05a493f4c461b
|
||||
DIST libjson-rpc-cpp-1.1.1.tar.gz 179249 BLAKE2B bd8b737f76bceaa1be73d89a1f75472d8eae6f3da57a4da5a5a9eee2a52ba06034bcb4404e6b65368f6be1967c1a8b40f71e3bfbaa58f65b0ac8dced1b3f43af SHA512 64043aee3227262da41b56f6d53e4f8f9a56d3a43b695200020b47fb7eb6e121cf086b6e121c0eccecf381be90d77910d0f4371254d147f33310af4584a7d433
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="JSON-RPC (1.0 & 2.0) framework for C++"
|
||||
HOMEPAGE="https://github.com/cinemast/libjson-rpc-cpp"
|
||||
SRC_URI="https://github.com/cinemast/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/1"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc +http-client +http-server redis-client redis-server +stubgen test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/jsoncpp:=
|
||||
http-client? ( net-misc/curl:= )
|
||||
http-server? ( net-libs/libmicrohttpd:= )
|
||||
redis-client? ( dev-libs/hiredis:= )
|
||||
redis-server? ( dev-libs/hiredis:= )
|
||||
stubgen? ( dev-libs/argtable:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( <dev-cpp/catch-2 )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DHTTP_CLIENT=$(usex http-client)
|
||||
-DHTTP_SERVER=$(usex http-server)
|
||||
-DREDIS_CLIENT=$(usex redis-client)
|
||||
-DREDIS_SERVER=$(usex redis-server)
|
||||
# they have no deps
|
||||
-DTCP_SOCKET_CLIENT=ON
|
||||
-DTCP_SOCKET_SERVER=ON
|
||||
-DUNIX_DOMAIN_SOCKET_CLIENT=ON
|
||||
-DUNIX_DOMAIN_SOCKET_SERVER=ON
|
||||
# they are not installed
|
||||
-DCOMPILE_EXAMPLES=OFF
|
||||
-DCOMPILE_STUBGEN=$(usex stubgen)
|
||||
-DCOMPILE_TESTS=$(usex test)
|
||||
-DCATCH_INCLUDE_DIR="${EPREFIX}/usr/include/catch"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
use doc && emake -C "${BUILD_DIR}" doc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests fail randomly when run in parallel
|
||||
local MAKEOPTS=-j1
|
||||
cmake-utils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
use doc && dodoc -r "${BUILD_DIR}"/doc/html
|
||||
}
|
Binary file not shown.
@ -1,190 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PATCH_VER="1.4"
|
||||
|
||||
TOOLCHAIN_GCC_PV=7.3.0
|
||||
GCC_CONFIG_VER=7.3.1
|
||||
|
||||
inherit eutils toolchain-funcs toolchain
|
||||
|
||||
REL=7
|
||||
MYP=gcc-${REL}-gpl-${PV}-src
|
||||
BTSTRP_X86=gnat-gpl-2014-x86-linux-bin
|
||||
BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin
|
||||
|
||||
DESCRIPTION="GNAT Ada Compiler - GPL version"
|
||||
HOMEPAGE="http://libre.adacore.com/"
|
||||
SRC_URI+="
|
||||
http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27aa5
|
||||
-> ${P}-src.tar.gz
|
||||
http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27aa7
|
||||
-> ${MYP}.tar.gz
|
||||
http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27aa6
|
||||
-> gcc-interface-${REL}-gpl-${PV}-src.tar.gz
|
||||
bootstrap? (
|
||||
amd64? (
|
||||
http://mirrors.cdn.adacore.com/art/564b3ebec8e196b040fbe66c ->
|
||||
${BTSTRP_AMD64}.tar.gz
|
||||
)
|
||||
x86? (
|
||||
http://mirrors.cdn.adacore.com/art/564b3e9dc8e196b040fbe248 ->
|
||||
${BTSTRP_X86}.tar.gz
|
||||
)
|
||||
)"
|
||||
|
||||
LICENSE+=" GPL-2 GPL-3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+bootstrap"
|
||||
|
||||
RDEPEND="!sys-devel/gcc:${GCC_CONFIG_VER}"
|
||||
DEPEND="${RDEPEND}
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.13 )
|
||||
>=sys-devel/binutils-2.20"
|
||||
|
||||
S="${WORKDIR}"/${MYP}
|
||||
PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 )"
|
||||
FSFGCC=gcc-${TOOLCHAIN_GCC_PV}
|
||||
|
||||
pkg_setup() {
|
||||
toolchain_pkg_setup
|
||||
|
||||
if use amd64; then
|
||||
BTSTRP=${BTSTRP_AMD64}
|
||||
else
|
||||
BTSTRP=${BTSTRP_X86}
|
||||
fi
|
||||
|
||||
if use bootstrap; then
|
||||
GCC="${WORKDIR}"/${BTSTRP}/bin/gcc
|
||||
else
|
||||
GCC=${ADA:-$(tc-getCC)}
|
||||
fi
|
||||
|
||||
gnatbase=$(basename ${GCC})
|
||||
gnatpath=$(dirname ${GCC})
|
||||
|
||||
GNATMAKE=${gnatbase/gcc/gnatmake}
|
||||
if [[ ${gnatpath} != "." ]] ; then
|
||||
GNATMAKE="${gnatpath}/${GNATMAKE}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then
|
||||
eerror "You need a gcc compiler that provides the Ada Compiler:"
|
||||
eerror "1) use gcc-config to select the right compiler or"
|
||||
eerror "2) set the bootstrap use flag"
|
||||
die "ada compiler not available"
|
||||
fi
|
||||
|
||||
GCC_A_FAKEIT="
|
||||
${P}-src.tar.gz
|
||||
${MYP}.tar.gz
|
||||
gcc-interface-${REL}-gpl-${PV}-src.tar.gz"
|
||||
if use bootstrap; then
|
||||
GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz"
|
||||
fi
|
||||
|
||||
toolchain_src_unpack
|
||||
if use bootstrap; then
|
||||
rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
CC=${GCC}
|
||||
CXX="${gnatbase/gcc/g++}"
|
||||
GNATBIND="${gnatbase/gcc/gnatbind}"
|
||||
GNATLINK="${gnatbase/gcc/gnatlink}"
|
||||
GNATLS="${gnatbase/gcc/gnatls}"
|
||||
if [[ ${gnatpath} != "." ]] ; then
|
||||
CXX="${gnatpath}/${CXX}"
|
||||
GNATBIND="${gnatpath}/${GNATBIND}"
|
||||
GNATLINK="${gnatpath}/${GNATLINK}"
|
||||
GNATLS="${gnatpath}/${GNATLS}"
|
||||
fi
|
||||
mkdir bin || die
|
||||
ln -s $(which ${GCC}) bin/gcc || die
|
||||
ln -s $(which ${CXX}) bin/g++ || die
|
||||
ln -s $(which ${GNATMAKE}) bin/gnatmake || die
|
||||
ln -s $(which ${GNATBIND}) bin/gnatbind || die
|
||||
ln -s $(which ${GNATLINK}) bin/gnatlink || die
|
||||
ln -s $(which ${GNATLS}) bin/gnatls || die
|
||||
|
||||
cd ..
|
||||
mv ${P}-src/src/ada ${MYP}/gcc/ || die
|
||||
mv gcc-interface-${REL}-gpl-${PV}-src ${MYP}/gcc/ada/gcc-interface || die
|
||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||
rm patch/91_all_bmi-i386-PR-target-81763.patch || die
|
||||
rm patch/93_all_copy-constructible-fix.patch || die
|
||||
cd -
|
||||
sed -i \
|
||||
-e 's:$(P) ::g' \
|
||||
gcc/ada/gcc-interface/Makefile.in \
|
||||
|| die "sed failed"
|
||||
toolchain_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export PATH=${PWD}/bin:${PATH}
|
||||
local trueGCC_BRANCH_VER=${GCC_BRANCH_VER}
|
||||
GCC_BRANCH_VER=$(gcc-version)
|
||||
downgrade_arch_flags
|
||||
GCC_BRANCH_VER=${trueGCC_BRANCH_VER}
|
||||
toolchain_src_configure \
|
||||
--enable-languages=ada \
|
||||
--disable-libada
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
unset ADAFLAGS
|
||||
toolchain_src_compile
|
||||
gcc_do_make "-C gcc gnatlib-shared"
|
||||
ln -s gcc ../build/prev-gcc || die
|
||||
ln -s ${CHOST} ../build/prev-${CHOST} || die
|
||||
gcc_do_make "-C gcc gnattools"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
toolchain_src_install
|
||||
cd "${D}"${BINPATH}
|
||||
for x in gnat*; do
|
||||
# For some reason, g77 gets made instead of ${CTARGET}-g77...
|
||||
# this should take care of that
|
||||
if [[ -f ${x} ]] ; then
|
||||
# In case they're hardlinks, clear out the target first
|
||||
# otherwise the mv below will complain.
|
||||
rm -f ${CTARGET}-${x}
|
||||
mv ${x} ${CTARGET}-${x}
|
||||
fi
|
||||
|
||||
if [[ -f ${CTARGET}-${x} ]] ; then
|
||||
if ! is_crosscompile ; then
|
||||
ln -sf ${CTARGET}-${x} ${x}
|
||||
dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \
|
||||
/usr/bin/${x}-${GCC_CONFIG_VER}
|
||||
fi
|
||||
# Create versioned symlinks
|
||||
dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \
|
||||
/usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER}
|
||||
fi
|
||||
|
||||
if [[ -f ${CTARGET}-${x}-${GCC_CONFIG_VER} ]] ; then
|
||||
rm -f ${CTARGET}-${x}-${GCC_CONFIG_VER}
|
||||
ln -sf ${CTARGET}-${x} ${CTARGET}-${x}-${GCC_CONFIG_VER}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
toolchain_pkg_postinst
|
||||
einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more"
|
||||
einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}"
|
||||
einfo "Even if the c/c++ compilers are using almost the same patched"
|
||||
einfo "source as the sys-devel/gcc package its use is not extensively"
|
||||
einfo "tested, and not supported for updating your system, except for ada"
|
||||
einfo "related packages"
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
+lastcommitdate="2014-05-19"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# printf %016s is not portable for 0-padding, has to be a digit.
|
||||
# so we're stuck disassembling it.
|
||||
-hash=$(git log -1 --format="%H" HEAD)
|
||||
+hash="1e1defd99c4b8874c517daf877b583a81e056c15"
|
||||
hash=${hash#g}
|
||||
hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,24 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
+lastcommitdate="2014-07-21"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# printf %016s is not portable for 0-padding, has to be a digit.
|
||||
# so we're stuck disassembling it.
|
||||
-hash=$(git log -1 --format="%H" HEAD)
|
||||
+hash="73fb460c1cd20ee97556ec0867d17efaa795d129"
|
||||
hash=${hash#g}
|
||||
hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,24 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
+lastcommitdate="2014-10-23"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# printf %016s is not portable for 0-padding, has to be a digit.
|
||||
# so we're stuck disassembling it.
|
||||
-hash=$(git log -1 --format="%H" HEAD)
|
||||
+hash="d783face36a464498c4832acb059a61192dfb105"
|
||||
hash=${hash#g}
|
||||
hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,24 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
+lastcommitdate="2015-02-25"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# printf %016s is not portable for 0-padding, has to be a digit.
|
||||
# so we're stuck disassembling it.
|
||||
-hash=$(git log -1 --format="%H" HEAD)
|
||||
+hash="092690e7bf71bb22e6e57afb7ea7f67fdfe31a0a"
|
||||
hash=${hash#g}
|
||||
hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,24 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
+lastcommitdate="2015-06-23"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# printf %016s is not portable for 0-padding, has to be a digit.
|
||||
# so we're stuck disassembling it.
|
||||
-hash=$(git log -1 --format="%H" HEAD)
|
||||
+hash="1fbce4612c21a4d0c553ea489b4765494828c09f"
|
||||
hash=${hash#g}
|
||||
hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,24 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
+lastcommitdate="2016-03-04"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# printf %016s is not portable for 0-padding, has to be a digit.
|
||||
# so we're stuck disassembling it.
|
||||
-hash=$(git log -1 --format="%H" HEAD)
|
||||
+hash="1706a37eb84ec252aea77bccebad3e48448534ad"
|
||||
hash=${hash#g}
|
||||
hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,37 +0,0 @@
|
||||
--- a/tools/get-scala-commit-date
|
||||
+++ b/tools/get-scala-commit-date
|
||||
@@ -10,13 +10,8 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
|
||||
- lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
|
||||
- lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
|
||||
-else
|
||||
- lastcommitdate=$(date +%Y-%m-%d)
|
||||
- lastcommithours=$(date +%H:%M:%S)
|
||||
-fi
|
||||
+lastcommitdate="2016-12-05"
|
||||
+lastcommithours="00:00:00"
|
||||
|
||||
# 20120324
|
||||
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
|
||||
--- a/tools/get-scala-commit-sha
|
||||
+++ b/tools/get-scala-commit-sha
|
||||
@@ -10,13 +10,7 @@
|
||||
|
||||
[[ $# -eq 0 ]] || cd "$1"
|
||||
|
||||
-if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
|
||||
- # printf %016s is not portable for 0-padding, has to be a digit.
|
||||
- # so we're stuck disassembling it.
|
||||
- hash=$(git log -1 --format="%H" HEAD)
|
||||
- hash=${hash#g}
|
||||
- hash=${hash:0:10}
|
||||
-else
|
||||
- hash="unknown"
|
||||
-fi
|
||||
+hash="2787b47396013a44072fa7321482103b66fbccd3"
|
||||
+hash=${hash#g}
|
||||
+hash=${hash:0:10}
|
||||
echo "$hash"
|
@ -1,22 +0,0 @@
|
||||
--- a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
|
||||
+++ b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
|
||||
@@ -197,14 +197,11 @@
|
||||
# to java to suppress "." from materializing.
|
||||
if [[ "$usebootcp" == "true" ]]; then
|
||||
classpath_args=("-Xbootclasspath/a:$TOOL_CLASSPATH" -classpath "\"\"")
|
||||
- # Note that the version numbers go 1.7, 1.8, 9, 10, ...
|
||||
- java_release="$(cat $JAVA_HOME/release | grep JAVA_VERSION)"
|
||||
- if [[ ! "$java_release" =~ JAVA_VERSION=\"1\. ]]; then
|
||||
- # Java 9 removed sun.boot.class.path, and the supposed replacement to at least see
|
||||
- # the appended boot classpath (jdk.boot.class.path.append) is not visible.
|
||||
- # So we have to pass a custom system property that PathResolver will find.
|
||||
- classpath_args+=("-Dscala.boot.class.path=$TOOL_CLASSPATH")
|
||||
- fi
|
||||
+ # Java 9 removed sun.boot.class.path, and the supposed replacement to at least see
|
||||
+ # the appended boot classpath (jdk.boot.class.path.append) is not visible.
|
||||
+ # So we have to pass a custom system property that PathResolver will find.
|
||||
+ # We do this for all JVM versions, rather than getting into the business of JVM version detection.
|
||||
+ classpath_args+=("-Dscala.boot.class.path=$TOOL_CLASSPATH")
|
||||
else
|
||||
classpath_args=(-classpath "$TOOL_CLASSPATH")
|
||||
fi
|
@ -1,23 +0,0 @@
|
||||
--- a/project/VersionUtil.scala
|
||||
+++ b/project/VersionUtil.scala
|
||||
@@ -80,18 +80,8 @@
|
||||
|
||||
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 = "21d12e9f5ec1ffe023f509848911476c1552d06f"
|
||||
+ (new Date, commit.substring(0, 7))
|
||||
} catch { case ex: Exception =>
|
||||
log.error("Could not determine commit date + SHA: "+ex)
|
||||
log.trace(ex)
|
@ -1,216 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.6" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.1-gentoo-binary.tar.bz2 scala-2.11.1/build/pack/bin \
|
||||
# scala-2.11.1/build/pack/lib/ scala-2.11.1/build/pack/man \
|
||||
# scala-2.11.1/src/actors/ scala-2.11.1/src/forkjoin/ \
|
||||
# scala-2.11.1/src/library scala-2.11.1/src/library-aux/ \
|
||||
# scala-2.11.1/src/reflect/ scala-2.11.1/docs/TODO \
|
||||
# scala-2.11.1/doc/README scala-2.11.1/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar" \
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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" \
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar" \
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
CHECKREQS_MEMORY="1532M"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.1-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc/compiler"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"
|
||||
fi
|
||||
}
|
@ -1,224 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.8-gentoo-binary.tar.bz2 scala-2.11.8/build/pack/bin \
|
||||
# scala-2.11.8/build/pack/lib/ scala-2.11.8/build/pack/man \
|
||||
# scala-2.11.8/src/actors/ scala-2.11.8/src/forkjoin/ \
|
||||
# scala-2.11.8/src/library scala-2.11.8/src/library-aux/ \
|
||||
# scala-2.11.8/src/reflect/ scala-2.11.8/docs/TODO \
|
||||
# scala-2.11.8/doc/README scala-2.11.8/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar"
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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"
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="
|
||||
!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~patrick/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~patrick/${P}-gentoo-binary.tar.bz2 )
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.8-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
sed -e 's@-Xmx1024M@-Xmx1536M@' \
|
||||
-e 's@-XX:MaxPermSize=128M@-XX:MaxPermSize=256M@' \
|
||||
-i "${S}/test/partest" \
|
||||
|| die "Could not change increase memory size in ${S}/test/partest"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,218 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.2-gentoo-binary.tar.bz2 scala-2.11.2/build/pack/bin \
|
||||
# scala-2.11.2/build/pack/lib/ scala-2.11.2/build/pack/man \
|
||||
# scala-2.11.2/src/actors/ scala-2.11.2/src/forkjoin/ \
|
||||
# scala-2.11.2/src/library scala-2.11.2/src/library-aux/ \
|
||||
# scala-2.11.2/src/reflect/ scala-2.11.2/docs/TODO \
|
||||
# scala-2.11.2/doc/README scala-2.11.2/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar" \
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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" \
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar" \
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
CHECKREQS_MEMORY="1532M"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.2-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,218 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.4-gentoo-binary.tar.bz2 scala-2.11.4/build/pack/bin \
|
||||
# scala-2.11.4/build/pack/lib/ scala-2.11.4/build/pack/man \
|
||||
# scala-2.11.4/src/actors/ scala-2.11.4/src/forkjoin/ \
|
||||
# scala-2.11.4/src/library scala-2.11.4/src/library-aux/ \
|
||||
# scala-2.11.4/src/reflect/ scala-2.11.4/docs/TODO \
|
||||
# scala-2.11.4/doc/README scala-2.11.4/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar"
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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"
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.6
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
CHECKREQS_MEMORY="1532M"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.4-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,218 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.4-gentoo-binary.tar.bz2 scala-2.11.4/build/pack/bin \
|
||||
# scala-2.11.4/build/pack/lib/ scala-2.11.4/build/pack/man \
|
||||
# scala-2.11.4/src/actors/ scala-2.11.4/src/forkjoin/ \
|
||||
# scala-2.11.4/src/library scala-2.11.4/src/library-aux/ \
|
||||
# scala-2.11.4/src/reflect/ scala-2.11.4/docs/TODO \
|
||||
# scala-2.11.4/doc/README scala-2.11.4/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar"
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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"
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
CHECKREQS_MEMORY="1532M"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.4-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,218 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.6-gentoo-binary.tar.bz2 scala-2.11.6/build/pack/bin \
|
||||
# scala-2.11.6/build/pack/lib/ scala-2.11.6/build/pack/man \
|
||||
# scala-2.11.6/src/actors/ scala-2.11.6/src/forkjoin/ \
|
||||
# scala-2.11.6/src/library scala-2.11.6/src/library-aux/ \
|
||||
# scala-2.11.6/src/reflect/ scala-2.11.6/docs/TODO \
|
||||
# scala-2.11.6/doc/README scala-2.11.6/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar"
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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"
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
CHECKREQS_MEMORY="1532M"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.6-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,222 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.7-gentoo-binary.tar.bz2 scala-2.11.7/build/pack/bin \
|
||||
# scala-2.11.7/build/pack/lib/ scala-2.11.7/build/pack/man \
|
||||
# scala-2.11.7/src/actors/ scala-2.11.7/src/forkjoin/ \
|
||||
# scala-2.11.7/src/library scala-2.11.7/src/library-aux/ \
|
||||
# scala-2.11.7/src/reflect/ scala-2.11.7/docs/TODO \
|
||||
# scala-2.11.7/doc/README scala-2.11.7/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar"
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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"
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.7-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
sed -e 's@-Xmx1024M@-Xmx1536M@' \
|
||||
-e 's@-XX:MaxPermSize=128M@-XX:MaxPermSize=256M@' \
|
||||
-i "${S}/test/partest" \
|
||||
|| die "Could not change increase memory size in ${S}/test/partest"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,222 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes"
|
||||
EANT_TEST_TARGET="test.suite"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
|
||||
|
||||
MY_P="${PN}-sources-${PV}"
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# creating the binary:
|
||||
# JAVA_PKG_FORCE_VM="$available-1.7" USE="doc source" ebuild scala-*.ebuild compile
|
||||
# cd $WORDKIR
|
||||
# tar -cjf scala-2.11.8-gentoo-binary.tar.bz2 scala-2.11.8/build/pack/bin \
|
||||
# scala-2.11.8/build/pack/lib/ scala-2.11.8/build/pack/man \
|
||||
# scala-2.11.8/src/actors/ scala-2.11.8/src/forkjoin/ \
|
||||
# scala-2.11.8/src/library scala-2.11.8/src/library-aux/ \
|
||||
# scala-2.11.8/src/reflect/ scala-2.11.8/docs/TODO \
|
||||
# scala-2.11.8/doc/README scala-2.11.8/build/scaladoc/compiler
|
||||
|
||||
# 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}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar"
|
||||
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.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"
|
||||
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="!binary?
|
||||
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${JURI[@]}
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz
|
||||
)
|
||||
binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
dev-java/ant-core:0
|
||||
dev-java/ant-contrib:0
|
||||
dev-java/ant-nodeps:0
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
=virtual/jdk-1.8*
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.7
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
java-pkg_getjars ant-core,hawtjni-runtime
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}/${PN}-2.11.8-no-git.patch"
|
||||
# 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}-maven-deps.tar.gz from SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to ${WORKDIR}/.m2
|
||||
# or /var/tmp/portage/.m2 or /root/.m2
|
||||
# 4. tar up all the .m2 junk into ${P}-maven-deps.tar.gz and add it to SRC_URI.
|
||||
sed -e "s@\(<mkdir dir=\"\)\${user.home}\(/.m2/repository\"/>\)@\1${WORKDIR}\2\n <artifact:localRepository id=\"localrepo\" path=\"${WORKDIR}/.m2/repository\" />@" \
|
||||
-e "s@\${user.home}/.m2@${WORKDIR}/.m2@g" \
|
||||
-e 's@\(<artifact:dependencies .*>\)@\1\n <localRepository refid="localrepo" />@g' \
|
||||
-i "${S}/build.xml" \
|
||||
|| die "Could not change location of .m2 maven download directory in ${S}/build.xml"
|
||||
sed -e 's@-Xmx1024M@-Xmx1536M@' \
|
||||
-e 's@-XX:MaxPermSize=128M@-XX:MaxPermSize=256M@' \
|
||||
-i "${S}/test/partest" \
|
||||
|| die "Could not change increase memory size in ${S}/test/partest"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
#unset ANT_OPTS as this is set in the build.xml
|
||||
#sets -X type variables which might come back to bite me
|
||||
unset ANT_OPTS
|
||||
|
||||
# reported in bugzilla that multiple launches use less resources
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=282023
|
||||
eant all.clean
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
fastdist-opt
|
||||
if use doc; then
|
||||
# The separate build for doc is to workaround this problem that occurs
|
||||
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M)
|
||||
# java.lang.OutOfMemoryError: PermGen space
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docscomp
|
||||
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \
|
||||
docs
|
||||
fi
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir "${SCALADIR}/lib"
|
||||
insinto "${SCALADIR}/lib"
|
||||
pushd lib || die
|
||||
for j in *.jar; do
|
||||
local i="$(echo "${j}" | sed -e "s@[_-][0-9.-]*\.jar@.jar@")"
|
||||
newins "${j}" "${i}"
|
||||
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}"
|
||||
done
|
||||
popd
|
||||
|
||||
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
|
||||
|
||||
pushd man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
|
||||
#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 actors forkjoin library library-aux reflect
|
||||
fi
|
||||
popd
|
||||
|
||||
local docdir="build/scaladoc"
|
||||
dodoc docs/TODO doc/README
|
||||
if use doc; then
|
||||
dohtml -r "${docdir}"/{compiler,library}
|
||||
fi
|
||||
}
|
@ -1,213 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit eutils 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="http://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 ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
>=dev-java/sbt-0.13.13
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
>=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,hawtjni-runtime
|
||||
|
||||
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.1-no-git.patch"
|
||||
|
||||
# https://issues.scala-lang.org/browse/SI-10098
|
||||
eapply "${FILESDIR}/${PN}-2.12.1-runner-script.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 -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
|
||||
source /usr/share/java-config-2/launcher/launcher.bash
|
||||
EOF
|
||||
chmod u+x "${S}/sbt" || die
|
||||
|
||||
sed -e 's@-Xmx1024M@-Xmx1536M@' \
|
||||
-e 's@-XX:MaxPermSize=128M@-XX:MaxPermSize=256M@' \
|
||||
-i "${S}/test/partest" \
|
||||
|| die "Could not change increase memory size in ${S}/test/partest"
|
||||
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() {
|
||||
"${S}"/sbt -Dsbt.log.noformat=true test || die "sbt test failed"
|
||||
}
|
||||
|
||||
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
|
||||
}
|
@ -1,214 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit eutils 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="http://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 ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/hawtjni-runtime:0"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
>=dev-java/sbt-0.13.13
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
>=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,hawtjni-runtime
|
||||
|
||||
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.2-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 -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
|
||||
source /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
|
||||
}
|
Binary file not shown.
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils multilib
|
||||
|
||||
DESCRIPTION="A C++ toolkit"
|
||||
HOMEPAGE="https://github.com/puppetlabs/leatherman"
|
||||
SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
IUSE="debug static-libs test"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
RDEPEND="net-misc/curl"
|
||||
DEPEND=">=dev-libs/boost-1.54:=[nls]
|
||||
net-misc/curl
|
||||
>=sys-devel/gcc-4.8:*"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/portage-sandbox-test-fix.patch )
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/\-Werror\ //g' "cmake/cflags.cmake" || die
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
-DCMAKE_BUILD_TYPE=None
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
)
|
||||
if ! use static-libs; then
|
||||
mycmakeargs+=(
|
||||
-DLEATHERMAN_SHARED=ON
|
||||
)
|
||||
else
|
||||
mycmakeargs+=(
|
||||
-DLEATHERMAN_SHARED=OFF
|
||||
)
|
||||
fi
|
||||
if use debug; then
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${WORKDIR}/${P}"_build/bin/leatherman_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
|
||||
HOMEPAGE="https://www.libressl.org/"
|
||||
SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC openssl"
|
||||
# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
|
||||
# we'll try to use the max of either. However, if either change between
|
||||
# versions, we have to change the subslot to trigger rebuild of consumers.
|
||||
SLOT="0/46"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="+asm static-libs test"
|
||||
REQUIRED_USE="test? ( static-libs )"
|
||||
|
||||
RDEPEND="!dev-libs/openssl:0"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_prepare() {
|
||||
touch crypto/Makefile.in
|
||||
|
||||
sed -i \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g"#"#' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
|
||||
configure || die "fixing CFLAGS failed"
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable asm) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
find "${D}" -name '*.la' -exec rm -f {} + || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libsigc++-1.2.7.tar.bz2 326205 BLAKE2B b316460178224c0b8177ce9a236c69a8b737bf7356b290b59eaeb60b09285c61d113bfc7de89bd712c3c049a492f5cc36d205ac77816aff73e587e8a42ade520 SHA512 79fd9657219459bce64fc069dbcb054959e324b5d546b5f11acaae5e5bedcc4dca699a21c949e3f6b2ec0dbe1c3dba3981158e5950d0aaba5028445b2ad5740f
|
||||
DIST libsigc++-2.10.0.tar.xz 3794612 BLAKE2B 205cd8cedbe25d04108df888c392fe6a14829826cf1b6b7604a03f357788dfa83a5ba213d6365c48965dd16fcd7b545c9e76d4e4d10971cc1c9ccb172ec0400f SHA512 5b96df21d6bd6ba41520c7219e77695a86aabc60b7259262c7a9f4b8475ce0e2fd8dc37bcf7c17e24e818ff28c262d682b964c83e215b51bdbe000f3f58794ae
|
||||
DIST libsigc++-2.10.1.tar.xz 4062388 BLAKE2B 3bd988acae78b7d463c966fa5c8da68b35d8a0b0bf4762811b7a9fdf82357b29aaa48d64e19f4cb6bd0f42ee70ad77a64a4905d1ad609dbe11ca8ff7596527c6 SHA512 e2bd7b1a97019be010dee1594271bbf7cae92b28e31dcb3c6d7d60643a0996233f0a75a9337b4afcb5b7dc453bfc3159d82f6daacfbcd8993a39ccecaf811bb2
|
||||
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnome2 flag-o-matic multilib-minimal
|
||||
|
||||
DESCRIPTION="Typesafe callback system for standard C++"
|
||||
HOMEPAGE="http://libsigc.sourceforge.net/"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc static-libs test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="sys-devel/m4
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( dev-libs/boost[${MULTILIB_USEDEP}] )"
|
||||
# Needs mm-common for eautoreconf
|
||||
|
||||
src_prepare() {
|
||||
# don't waste time building examples
|
||||
sed -i 's|^\(SUBDIRS =.*\)examples\(.*\)$|\1\2|' \
|
||||
Makefile.am Makefile.in || die "sed examples failed"
|
||||
|
||||
# don't waste time building tests unless USE=test
|
||||
if ! use test ; then
|
||||
sed -i 's|^\(SUBDIRS =.*\)tests\(.*\)$|\1\2|' \
|
||||
Makefile.am Makefile.in || die "sed tests failed"
|
||||
fi
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
filter-flags -fno-exceptions #84263
|
||||
|
||||
ECONF_SOURCE="${S}" gnome2_src_configure \
|
||||
$(multilib_native_use_enable doc documentation) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable test benchmark)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
gnome2_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
# Note: html docs are installed into /usr/share/doc/libsigc++-2.0
|
||||
# We can't use /usr/share/doc/${PF} because of links from glibmm etc. docs
|
||||
use doc && dodoc -r examples
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
From 3984ef0b72831da8b3ece4745cac4f8575b19098 Mon Sep 17 00:00:00 2001
|
||||
From: Guido Vranken <guidovranken@gmail.com>
|
||||
Date: Mon, 11 Jun 2018 19:38:54 +0200
|
||||
Subject: [PATCH] Reject excessively large primes in DH key generation.
|
||||
|
||||
CVE-2018-0732
|
||||
|
||||
Signed-off-by: Guido Vranken <guidovranken@gmail.com>
|
||||
|
||||
(cherry picked from commit 91f7361f47b082ae61ffe1a7b17bb2adf213c7fe)
|
||||
|
||||
Reviewed-by: Tim Hudson <tjh@openssl.org>
|
||||
Reviewed-by: Matt Caswell <matt@openssl.org>
|
||||
(Merged from https://github.com/openssl/openssl/pull/6457)
|
||||
---
|
||||
crypto/dh/dh_key.c | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/crypto/dh/dh_key.c b/crypto/dh/dh_key.c
|
||||
index 387558f1467..f235e0d682b 100644
|
||||
--- a/crypto/dh/dh_key.c
|
||||
+++ b/crypto/dh/dh_key.c
|
||||
@@ -130,10 +130,15 @@ static int generate_key(DH *dh)
|
||||
int ok = 0;
|
||||
int generate_new_key = 0;
|
||||
unsigned l;
|
||||
- BN_CTX *ctx;
|
||||
+ BN_CTX *ctx = NULL;
|
||||
BN_MONT_CTX *mont = NULL;
|
||||
BIGNUM *pub_key = NULL, *priv_key = NULL;
|
||||
|
||||
+ if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) {
|
||||
+ DHerr(DH_F_GENERATE_KEY, DH_R_MODULUS_TOO_LARGE);
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
ctx = BN_CTX_new();
|
||||
if (ctx == NULL)
|
||||
goto err;
|
@ -1,290 +0,0 @@
|
||||
Port of Fedora's Hobble-EC patches for OpenSSL 1.0 series.
|
||||
|
||||
From https://src.fedoraproject.org/git/rpms/openssl.git
|
||||
|
||||
Contains parts of the following patches, rediffed. The patches are on various
|
||||
different branches.
|
||||
f23 openssl-1.0.2c-ecc-suiteb.patch
|
||||
f23 openssl-1.0.2a-fips-ec.patch
|
||||
f28 openssl-1.1.0-ec-curves.patch
|
||||
|
||||
Signed-off-By: Robin H. Johnson <robbat2@gentoo.org>
|
||||
|
||||
diff -Nuar --exclude ec_curve.c -p openssl-1.0.2m.hobble/apps/speed.c openssl-1.0.2m.mod/apps/speed.c
|
||||
--- openssl-1.0.2m.hobble/apps/speed.c 2017-11-02 07:32:57.000000000 -0700
|
||||
+++ openssl-1.0.2m.mod/apps/speed.c 2018-06-10 19:00:09.264550382 -0700
|
||||
@@ -989,10 +989,7 @@ int MAIN(int argc, char **argv)
|
||||
} else
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_ECDSA
|
||||
- if (strcmp(*argv, "ecdsap160") == 0)
|
||||
- ecdsa_doit[R_EC_P160] = 2;
|
||||
- else if (strcmp(*argv, "ecdsap192") == 0)
|
||||
- ecdsa_doit[R_EC_P192] = 2;
|
||||
+ if (0) {}
|
||||
else if (strcmp(*argv, "ecdsap224") == 0)
|
||||
ecdsa_doit[R_EC_P224] = 2;
|
||||
else if (strcmp(*argv, "ecdsap256") == 0)
|
||||
@@ -1001,36 +998,13 @@ int MAIN(int argc, char **argv)
|
||||
ecdsa_doit[R_EC_P384] = 2;
|
||||
else if (strcmp(*argv, "ecdsap521") == 0)
|
||||
ecdsa_doit[R_EC_P521] = 2;
|
||||
- else if (strcmp(*argv, "ecdsak163") == 0)
|
||||
- ecdsa_doit[R_EC_K163] = 2;
|
||||
- else if (strcmp(*argv, "ecdsak233") == 0)
|
||||
- ecdsa_doit[R_EC_K233] = 2;
|
||||
- else if (strcmp(*argv, "ecdsak283") == 0)
|
||||
- ecdsa_doit[R_EC_K283] = 2;
|
||||
- else if (strcmp(*argv, "ecdsak409") == 0)
|
||||
- ecdsa_doit[R_EC_K409] = 2;
|
||||
- else if (strcmp(*argv, "ecdsak571") == 0)
|
||||
- ecdsa_doit[R_EC_K571] = 2;
|
||||
- else if (strcmp(*argv, "ecdsab163") == 0)
|
||||
- ecdsa_doit[R_EC_B163] = 2;
|
||||
- else if (strcmp(*argv, "ecdsab233") == 0)
|
||||
- ecdsa_doit[R_EC_B233] = 2;
|
||||
- else if (strcmp(*argv, "ecdsab283") == 0)
|
||||
- ecdsa_doit[R_EC_B283] = 2;
|
||||
- else if (strcmp(*argv, "ecdsab409") == 0)
|
||||
- ecdsa_doit[R_EC_B409] = 2;
|
||||
- else if (strcmp(*argv, "ecdsab571") == 0)
|
||||
- ecdsa_doit[R_EC_B571] = 2;
|
||||
else if (strcmp(*argv, "ecdsa") == 0) {
|
||||
- for (i = 0; i < EC_NUM; i++)
|
||||
+ for (i = R_EC_P224; i < R_EC_P521; i++)
|
||||
ecdsa_doit[i] = 1;
|
||||
} else
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_ECDH
|
||||
- if (strcmp(*argv, "ecdhp160") == 0)
|
||||
- ecdh_doit[R_EC_P160] = 2;
|
||||
- else if (strcmp(*argv, "ecdhp192") == 0)
|
||||
- ecdh_doit[R_EC_P192] = 2;
|
||||
+ if (0) {}
|
||||
else if (strcmp(*argv, "ecdhp224") == 0)
|
||||
ecdh_doit[R_EC_P224] = 2;
|
||||
else if (strcmp(*argv, "ecdhp256") == 0)
|
||||
@@ -1039,28 +1013,8 @@ int MAIN(int argc, char **argv)
|
||||
ecdh_doit[R_EC_P384] = 2;
|
||||
else if (strcmp(*argv, "ecdhp521") == 0)
|
||||
ecdh_doit[R_EC_P521] = 2;
|
||||
- else if (strcmp(*argv, "ecdhk163") == 0)
|
||||
- ecdh_doit[R_EC_K163] = 2;
|
||||
- else if (strcmp(*argv, "ecdhk233") == 0)
|
||||
- ecdh_doit[R_EC_K233] = 2;
|
||||
- else if (strcmp(*argv, "ecdhk283") == 0)
|
||||
- ecdh_doit[R_EC_K283] = 2;
|
||||
- else if (strcmp(*argv, "ecdhk409") == 0)
|
||||
- ecdh_doit[R_EC_K409] = 2;
|
||||
- else if (strcmp(*argv, "ecdhk571") == 0)
|
||||
- ecdh_doit[R_EC_K571] = 2;
|
||||
- else if (strcmp(*argv, "ecdhb163") == 0)
|
||||
- ecdh_doit[R_EC_B163] = 2;
|
||||
- else if (strcmp(*argv, "ecdhb233") == 0)
|
||||
- ecdh_doit[R_EC_B233] = 2;
|
||||
- else if (strcmp(*argv, "ecdhb283") == 0)
|
||||
- ecdh_doit[R_EC_B283] = 2;
|
||||
- else if (strcmp(*argv, "ecdhb409") == 0)
|
||||
- ecdh_doit[R_EC_B409] = 2;
|
||||
- else if (strcmp(*argv, "ecdhb571") == 0)
|
||||
- ecdh_doit[R_EC_B571] = 2;
|
||||
else if (strcmp(*argv, "ecdh") == 0) {
|
||||
- for (i = 0; i < EC_NUM; i++)
|
||||
+ for (i = R_EC_P224; i <= R_EC_P521; i++)
|
||||
ecdh_doit[i] = 1;
|
||||
} else
|
||||
# endif
|
||||
@@ -1149,21 +1103,13 @@ int MAIN(int argc, char **argv)
|
||||
BIO_printf(bio_err, "dsa512 dsa1024 dsa2048\n");
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_ECDSA
|
||||
- BIO_printf(bio_err, "ecdsap160 ecdsap192 ecdsap224 "
|
||||
+ BIO_printf(bio_err, "ecdsap224 "
|
||||
"ecdsap256 ecdsap384 ecdsap521\n");
|
||||
- BIO_printf(bio_err,
|
||||
- "ecdsak163 ecdsak233 ecdsak283 ecdsak409 ecdsak571\n");
|
||||
- BIO_printf(bio_err,
|
||||
- "ecdsab163 ecdsab233 ecdsab283 ecdsab409 ecdsab571\n");
|
||||
BIO_printf(bio_err, "ecdsa\n");
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_ECDH
|
||||
- BIO_printf(bio_err, "ecdhp160 ecdhp192 ecdhp224 "
|
||||
+ BIO_printf(bio_err, "ecdhp224 "
|
||||
"ecdhp256 ecdhp384 ecdhp521\n");
|
||||
- BIO_printf(bio_err,
|
||||
- "ecdhk163 ecdhk233 ecdhk283 ecdhk409 ecdhk571\n");
|
||||
- BIO_printf(bio_err,
|
||||
- "ecdhb163 ecdhb233 ecdhb283 ecdhb409 ecdhb571\n");
|
||||
BIO_printf(bio_err, "ecdh\n");
|
||||
# endif
|
||||
|
||||
@@ -1242,11 +1188,11 @@ int MAIN(int argc, char **argv)
|
||||
for (i = 0; i < DSA_NUM; i++)
|
||||
dsa_doit[i] = 1;
|
||||
# ifndef OPENSSL_NO_ECDSA
|
||||
- for (i = 0; i < EC_NUM; i++)
|
||||
+ for (i = R_EC_P224; i <= R_EC_P521; i++)
|
||||
ecdsa_doit[i] = 1;
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_ECDH
|
||||
- for (i = 0; i < EC_NUM; i++)
|
||||
+ for (i = R_EC_P224; i <= R_EC_P521; i++)
|
||||
ecdh_doit[i] = 1;
|
||||
# endif
|
||||
}
|
||||
diff -Nuar --exclude ec_curve.c -p openssl-1.0.2m.hobble/crypto/ec/ecp_smpl.c openssl-1.0.2m.mod/crypto/ec/ecp_smpl.c
|
||||
--- openssl-1.0.2m.hobble/crypto/ec/ecp_smpl.c 2017-11-02 07:32:57.000000000 -0700
|
||||
+++ openssl-1.0.2m.mod/crypto/ec/ecp_smpl.c 2018-06-10 18:45:36.909911848 -0700
|
||||
@@ -187,6 +187,11 @@ int ec_GFp_simple_group_set_curve(EC_GRO
|
||||
return 0;
|
||||
}
|
||||
|
||||
+ if (BN_num_bits(p) < 224) {
|
||||
+ ECerr(EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE, EC_R_UNSUPPORTED_FIELD);
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
if (ctx == NULL) {
|
||||
ctx = new_ctx = BN_CTX_new();
|
||||
if (ctx == NULL)
|
||||
diff -Nuar --exclude ec_curve.c -p openssl-1.0.2m.hobble/ssl/t1_lib.c openssl-1.0.2m.mod/ssl/t1_lib.c
|
||||
--- openssl-1.0.2m.hobble/ssl/t1_lib.c 2017-11-02 07:32:58.000000000 -0700
|
||||
+++ openssl-1.0.2m.mod/ssl/t1_lib.c 2018-06-10 18:46:55.329811812 -0700
|
||||
@@ -271,10 +271,7 @@ static const unsigned char eccurves_auto
|
||||
0, 23, /* secp256r1 (23) */
|
||||
/* Other >= 256-bit prime curves. */
|
||||
0, 25, /* secp521r1 (25) */
|
||||
- 0, 28, /* brainpool512r1 (28) */
|
||||
- 0, 27, /* brainpoolP384r1 (27) */
|
||||
0, 24, /* secp384r1 (24) */
|
||||
- 0, 26, /* brainpoolP256r1 (26) */
|
||||
0, 22, /* secp256k1 (22) */
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
/* >= 256-bit binary curves. */
|
||||
@@ -292,10 +289,7 @@ static const unsigned char eccurves_all[
|
||||
0, 23, /* secp256r1 (23) */
|
||||
/* Other >= 256-bit prime curves. */
|
||||
0, 25, /* secp521r1 (25) */
|
||||
- 0, 28, /* brainpool512r1 (28) */
|
||||
- 0, 27, /* brainpoolP384r1 (27) */
|
||||
0, 24, /* secp384r1 (24) */
|
||||
- 0, 26, /* brainpoolP256r1 (26) */
|
||||
0, 22, /* secp256k1 (22) */
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
/* >= 256-bit binary curves. */
|
||||
@@ -310,13 +304,6 @@ static const unsigned char eccurves_all[
|
||||
* Remaining curves disabled by default but still permitted if set
|
||||
* via an explicit callback or parameters.
|
||||
*/
|
||||
- 0, 20, /* secp224k1 (20) */
|
||||
- 0, 21, /* secp224r1 (21) */
|
||||
- 0, 18, /* secp192k1 (18) */
|
||||
- 0, 19, /* secp192r1 (19) */
|
||||
- 0, 15, /* secp160k1 (15) */
|
||||
- 0, 16, /* secp160r1 (16) */
|
||||
- 0, 17, /* secp160r2 (17) */
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
0, 8, /* sect239k1 (8) */
|
||||
0, 6, /* sect233k1 (6) */
|
||||
@@ -351,29 +338,21 @@ static const unsigned char fips_curves_d
|
||||
0, 9, /* sect283k1 (9) */
|
||||
0, 10, /* sect283r1 (10) */
|
||||
# endif
|
||||
- 0, 22, /* secp256k1 (22) */
|
||||
0, 23, /* secp256r1 (23) */
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
0, 8, /* sect239k1 (8) */
|
||||
0, 6, /* sect233k1 (6) */
|
||||
0, 7, /* sect233r1 (7) */
|
||||
# endif
|
||||
- 0, 20, /* secp224k1 (20) */
|
||||
- 0, 21, /* secp224r1 (21) */
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
0, 4, /* sect193r1 (4) */
|
||||
0, 5, /* sect193r2 (5) */
|
||||
# endif
|
||||
- 0, 18, /* secp192k1 (18) */
|
||||
- 0, 19, /* secp192r1 (19) */
|
||||
# ifndef OPENSSL_NO_EC2M
|
||||
0, 1, /* sect163k1 (1) */
|
||||
0, 2, /* sect163r1 (2) */
|
||||
0, 3, /* sect163r2 (3) */
|
||||
# endif
|
||||
- 0, 15, /* secp160k1 (15) */
|
||||
- 0, 16, /* secp160r1 (16) */
|
||||
- 0, 17, /* secp160r2 (17) */
|
||||
};
|
||||
# endif
|
||||
|
||||
diff -up openssl-1.0.2a/crypto/ecdh/ecdhtest.c.fips-ec openssl-1.0.2a/crypto/ecdh/ecdhtest.c
|
||||
--- openssl-1.0.2a/crypto/ecdh/ecdhtest.c.fips-ec 2015-03-19 14:30:36.000000000 +0100
|
||||
+++ openssl-1.0.2a/crypto/ecdh/ecdhtest.c 2015-04-22 19:00:19.721884512 +0200
|
||||
@@ -501,11 +501,13 @@ int main(int argc, char *argv[])
|
||||
goto err;
|
||||
|
||||
/* NIST PRIME CURVES TESTS */
|
||||
+# if 0
|
||||
if (!test_ecdh_curve
|
||||
(NID_X9_62_prime192v1, "NIST Prime-Curve P-192", ctx, out))
|
||||
goto err;
|
||||
if (!test_ecdh_curve(NID_secp224r1, "NIST Prime-Curve P-224", ctx, out))
|
||||
goto err;
|
||||
+# endif
|
||||
if (!test_ecdh_curve
|
||||
(NID_X9_62_prime256v1, "NIST Prime-Curve P-256", ctx, out))
|
||||
goto err;
|
||||
@@ -536,13 +538,14 @@ int main(int argc, char *argv[])
|
||||
if (!test_ecdh_curve(NID_sect571r1, "NIST Binary-Curve B-571", ctx, out))
|
||||
goto err;
|
||||
# endif
|
||||
+# if 0
|
||||
if (!test_ecdh_kat(out, "Brainpool Prime-Curve brainpoolP256r1", 256))
|
||||
goto err;
|
||||
if (!test_ecdh_kat(out, "Brainpool Prime-Curve brainpoolP384r1", 384))
|
||||
goto err;
|
||||
if (!test_ecdh_kat(out, "Brainpool Prime-Curve brainpoolP512r1", 512))
|
||||
goto err;
|
||||
-
|
||||
+# endif
|
||||
ret = 0;
|
||||
|
||||
err:
|
||||
diff -up openssl-1.0.2a/crypto/ecdsa/ecdsatest.c.fips-ec openssl-1.0.2a/crypto/ecdsa/ecdsatest.c
|
||||
--- openssl-1.0.2a/crypto/ecdsa/ecdsatest.c.fips-ec 2015-03-19 14:19:00.000000000 +0100
|
||||
+++ openssl-1.0.2a/crypto/ecdsa/ecdsatest.c 2015-04-22 19:00:19.722884536 +0200
|
||||
@@ -138,11 +138,14 @@ int restore_rand(void)
|
||||
}
|
||||
|
||||
static int fbytes_counter = 0;
|
||||
-static const char *numbers[8] = {
|
||||
+static const char *numbers[10] = {
|
||||
+ "651056770906015076056810763456358567190100156695615665659",
|
||||
"651056770906015076056810763456358567190100156695615665659",
|
||||
"6140507067065001063065065565667405560006161556565665656654",
|
||||
"8763001015071075675010661307616710783570106710677817767166"
|
||||
"71676178726717",
|
||||
+ "8763001015071075675010661307616710783570106710677817767166"
|
||||
+ "71676178726717",
|
||||
"7000000175690566466555057817571571075705015757757057795755"
|
||||
"55657156756655",
|
||||
"1275552191113212300012030439187146164646146646466749494799",
|
||||
@@ -158,7 +161,7 @@ int fbytes(unsigned char *buf, int num)
|
||||
int ret;
|
||||
BIGNUM *tmp = NULL;
|
||||
|
||||
- if (fbytes_counter >= 8)
|
||||
+ if (fbytes_counter >= 10)
|
||||
return 0;
|
||||
tmp = BN_new();
|
||||
if (!tmp)
|
||||
@@ -532,8 +535,10 @@ int main(void)
|
||||
RAND_seed(rnd_seed, sizeof(rnd_seed));
|
||||
|
||||
/* the tests */
|
||||
+# if 0
|
||||
if (!x9_62_tests(out))
|
||||
goto err;
|
||||
+# endif
|
||||
if (!test_builtin(out))
|
||||
goto err;
|
||||
|
@ -1,4 +1,3 @@
|
||||
DIST spdlog-0.17.0.tar.gz 172323 BLAKE2B 2ca821fb3da0ee82601dd9ef54ca155ffdf19ea1e51c6fbb7269a58bf7a662b5225c9ef7e4d8ccbe7a05c56aeefaad27ddc9cfe21a329f52490078ccd0fb2ce6 SHA512 c3d7c7b2d221b33ad4f4685207ff606d271635bd1ad7edab763a823880386f604d264343139f37b36a3e8654d6382dbed0d431556728676523e390b8fb4b2aef
|
||||
DIST spdlog-1.0.0.tar.gz 183855 BLAKE2B 30d54fef03a83f968cfebacf95a484ff397126771a7ea022556aebd07e2f7694af35b278f75ee24372283ff1428e21247fd4329794d64a65bd6220a93f21db3c SHA512 4d3cbc1926be513256b5837a53fce425f6d352bb4ab262074f205450cd4eadc09feea9dc8d8c03b3f1e9792bcfbcff414be79e51d58234f540946428bbd88cd1
|
||||
DIST spdlog-1.1.0.tar.gz 183937 BLAKE2B 51af49f641df69e78835bd6b9545da53c0e111bab60a5f0dbf4a1d0e70101309394ffea195176ea371f08b772c2be1c22c2da16006fc9699f47593cf82a6c0fd SHA512 65fbe6e9dffb25e814f72f2ef7982eed213fc16edfabb1377f865c94fd0488190e160dfea83ac06979a41f2fb2fa47a454989ebee0a2c5012bd404b977648439
|
||||
DIST spdlog-1.2.1.tar.gz 188284 BLAKE2B c3491a9c44d8a94c51d50c9ef36a2105f77e8fb61bb7b2b81a341609f433abbe3a74e7b4a467dd715a5d906f976740716488d07b4510f366556ab59d160ceefe SHA512 418f91efc207fa227558212d82c41639c0bb59e84ea47447e0b6276c4842e97f1f8aaf5802c071ef15d80ec525e317e70b6a39661a6c96ab39d33d9bd1570da1
|
||||
|
@ -1,35 +0,0 @@
|
||||
diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h
|
||||
--- a/include/spdlog/fmt/fmt.h
|
||||
+++ b/include/spdlog/fmt/fmt.h
|
||||
@@ -18,16 +18,11 @@
|
||||
#ifndef FMT_USE_WINDOWS_H
|
||||
#define FMT_USE_WINDOWS_H 0
|
||||
#endif
|
||||
-#include "bundled/format.h"
|
||||
-#if defined(SPDLOG_FMT_PRINTF)
|
||||
-#include "bundled/printf.h"
|
||||
-#endif
|
||||
|
||||
-#else // external fmtlib
|
||||
+#endif // external fmtlib
|
||||
|
||||
#include <fmt/format.h>
|
||||
#if defined(SPDLOG_FMT_PRINTF)
|
||||
#include <fmt/printf.h>
|
||||
#endif
|
||||
|
||||
-#endif
|
||||
diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h
|
||||
--- a/include/spdlog/fmt/ostr.h
|
||||
+++ b/include/spdlog/fmt/ostr.h
|
||||
@@ -11,8 +11,6 @@
|
||||
#ifndef FMT_HEADER_ONLY
|
||||
#define FMT_HEADER_ONLY
|
||||
#endif
|
||||
-#include "bundled/ostream.h"
|
||||
-#include "fmt.h"
|
||||
-#else
|
||||
-#include <fmt/ostream.h>
|
||||
#endif
|
||||
+
|
||||
+#include <fmt/ostream.h>
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Very fast, header only, C++ logging library"
|
||||
HOMEPAGE="https://github.com/gabime/spdlog"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gabime/spdlog"
|
||||
else
|
||||
SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
<=dev-libs/libfmt-4.1.0
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.17.0-unbundle-fmt.patch" )
|
||||
|
||||
src_configure() {
|
||||
rm -r include/spdlog/fmt/bundled || die
|
||||
|
||||
local mycmakeargs=(
|
||||
-DSPDLOG_BUILD_EXAMPLES=no
|
||||
-DSPDLOG_BUILD_TESTING=$(usex test)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST Console_Table-1.3.0.tgz 11391 BLAKE2B 25cbb72f2fa23026320840eb3e3b85f08dfc6a90ae9a613ec3e7251b407fc971c0a8aad3ac6bccbb9cd99066aca30249373539b8758fed58b0d1fc53898fc71b SHA512 83227ce8e55ae38cdf91b7097879a3406898064d1c047c5a94c6cadc46cbeeea51c43d135e6aadfbdb38fa080a1b27a1d4cea1c36ff9eb3e14dc4b04de334c11
|
||||
DIST Console_Table-1.3.1.tgz 11492 BLAKE2B bff94b2ae1b6d23eaf9a60deee4e78ee3467eff9d53c1d6ac8330347647b54700d4b3cf30be84c071afc34a4517b3135f6b18011418ea5dfc0e2841da1a30874 SHA512 abac68c20bb670b29f405625edff0330ce5af51763a50ee7482c3ab9d39c7335134d77c0f1a94ce4914c2f454d493a685841e07628eb2aa58cc66617521b6a65
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit php-pear-r2
|
||||
|
||||
DESCRIPTION="Class that makes it easy to build console style tables"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
BDEPEND="test? ( dev-php/pear )"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/php/Console
|
||||
doins Table.php
|
||||
php-pear-r2_install_packagexml
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pear run-tests tests || die "Tests failed"
|
||||
}
|
@ -1 +1 @@
|
||||
DIST Net_IPv6-1.3.0b3.tgz 11030 BLAKE2B aefeac440451ea3a37c84dcbae52d9d068bed57d0e2e113683b48414b31d9d77bb28ab2fe89d482e377fbe987411ba836e65ffb00c91eb5060bd5d4945c899dc SHA512 77d30c18c00aa03207b58dc7e54553e4cb3f424dcc831c67ab1081cfbc0dee121998866e995bf0e0029e9de1a6e28acb57aed63c837e894beb6cf4a5d3f39231
|
||||
DIST Net_IPv6-1.3.0b4.tgz 11437 BLAKE2B 535bb88e650e0985ef18e9415c1be827798d28fe30cae8afa7bf352d3a30e0ac51499662925e2c389e04bf872d240651d671c94a25584df9f3537db4d4695646 SHA512 aabf31e062ff4b3994ec8f5278556ff7e06c01b0cc86de2e57f4a994c71a182663e720a33b312d7e2874008c04ac9c493bb855b9b7ee5d0f008d5c517cb11fbc
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST Net_SMTP-1.7.2.tgz 14795 BLAKE2B e7be5c595e5eb9cd98c0cb82899545b02399ce3aedd35e419a451ad1aa3f4c3c36a10c212508795bc39a044c99206db5ad700f6e7c110eec3b68cb623af4e457 SHA512 06ab00a033709c5f4adc01fabe100ee0033b07e1c5633f995a672bf463484622a5bd976ada9932ee741ff593d739bd1172566f0a8446060bbccde71ea5b0160d
|
||||
DIST Net_SMTP-1.7.3.tgz 14855 BLAKE2B b6891196a6871adc3936c89507e3aef1f7d9af045acab09aba5f145a9d1e1da5cee2608873f7a42ebc1d00f99ec733823afe94e15c283245ed1bc035858d94a7 SHA512 b1c2be95c50151e91c2dcc7b9d98233504cc2389c01e4e42e752cba606355da616e570ca86042b68498aad63aaad14ea048b0a0e4e2baa802dc58c440eb60f15
|
||||
DIST Net_SMTP-1.8.1.tgz 14931 BLAKE2B 9194e46d1987e48f58c3b851bf6921b4308d39d17b7ca028a4a58a6583171dbe31020477cd7f808ac72ffae81f315e3b416cd5f52e898e0d12cc802af5dbcaa7 SHA512 ba3b68e35d95cc41ef33105402348a322e54c6335d819d1a6e1264f25bc30def4485d0da34901ca203ccd591aeddffbe75b5acb11fb7415a1a13668198aa9942
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit php-pear-r2
|
||||
|
||||
MY_PN="${PN/PEAR-/}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="A PHP implementation of the SMTP protocol"
|
||||
HOMEPAGE="http://pear.php.net/package/Net_SMTP"
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="examples sasl"
|
||||
DEPEND=""
|
||||
RDEPEND="dev-lang/php:*
|
||||
dev-php/PEAR-Net_Socket
|
||||
dev-php/PEAR-PEAR
|
||||
sasl? ( dev-php/PEAR-Auth_SASL )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_install() {
|
||||
DOCS=( docs/guide.txt )
|
||||
use examples && HTML_DOCS=( examples )
|
||||
php-pear-r2_src_install
|
||||
}
|
@ -1 +1 @@
|
||||
DIST tcpdf-6.2.16.tar.gz 17006033 BLAKE2B a4a9b502812bca3babe9d89bc215e75c951a2f3649ac01cf7327d5e13ccfd36e9586eb15a712fd48245f504ace2bcf7075413f9ee06526f4dec5c7d6c3e34b9d SHA512 302022636cd2c178e2d015b702188d59b608855110928e253daf7dd14e117a6770ad85385023c7970f13347142c60cc62a8fbdcee471364c47cb499fc3fbaa6c
|
||||
DIST tcpdf-6.2.25.tar.gz 17006366 BLAKE2B f95d9d4931d56459d5ae9ea9bcaad72a31abaa8e9404fea17bc69089fb93b89d94a027512568282b6b8758651c3d347c3190a38db7ee200939cc045b9f12650b SHA512 d2e2bdf080c0a6af918a14c4f5704ee4bf7adad76044c89c3165afe392e39fa7bf98271da976cec7f024e3047e1df49090cb0206084efa77bb5b76708d6524c8
|
||||
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST colorama-0.3.3.tar.gz 22765 BLAKE2B 3dc399c3a073fba825e85c667c6af1a5b8777dc65ff5ae8fcdb7fe6d20a3193ff391a28140ee90316893250a61b77bd8efca9df03ae88c7f20c24545c8f30e4c SHA512 8e6177ea60ab8f1267ce982f23803a9d2eb0c4550d7eac4776416d62a99d1ce03254fc64cc959ca95e2409ceeff081d4d19359c383e969dfb921b44c56914495
|
||||
DIST colorama-0.3.9.github.tar.gz 122180 BLAKE2B 0ef1b2876a8d790e434548649d34bc38940eb48883080168d11cca79fc17c2cab258831ac2660be69eca28000864d617cb4a448558f8e473bca22cce090a8e03 SHA512 7bf6ec19181431d91f5c7a5334d01f9934d4555004e985f82ad74fc325c465339a4c3fdf017af6e0682e0b22e2bf78938cd222b670e5035f305d2d616b03d1d1
|
||||
DIST colorama-0.3.9.tar.gz 25053 BLAKE2B f633a188d032c41d0b6de60540ca1774dd8f3e8fe2e558333baf09855db30fa7a7ade5944ff12e4ca1a3685930d10a02009162733666d711ad25a16ee96ace55 SHA512 248e3d3d1f95cb85baf55ef4d705508213b81edfb04b39fe9a7bc9c7ac564986726ab6e9d9f73d64ee02e1c9b86d4c6bba40543590dbd170180a37d69e07b627
|
||||
DIST colorama-0.4.0.github.tar.gz 104679 BLAKE2B 416a8bc5af470dc22b71a84279e4d984b57fad7ddb617c80c9104830127efa4f545eb08c003d263e48edbc0db39bc150e74f64f68f22075e759c11a6e84c75d5 SHA512 e2214c0a4ce1dd5515cf12cbb91220d2314da747b1a1246641117e70ea81b162cb4748b2b5dff049e102540470617a0076a3afff64bfe67158bf7bd95e1cc6f8
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="ANSI escape character sequences for colored terminal text & cursor positioning"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/colorama/
|
||||
https://github.com/tartley/colorama
|
||||
"
|
||||
# https://github.com/tartley/colorama/pull/183
|
||||
SRC_URI="https://github.com/tartley/${PN}/archive/${PV}.tar.gz -> ${P}.github.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples test"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r demos/.
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Some tests require stdout to be a TTY
|
||||
# https://github.com/tartley/colorama/issues/169
|
||||
script -eqc "pytest -vv -s" /dev/null \
|
||||
|| die "tests failed with ${EPYTHON}"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST reno-2.11.2.tar.gz 74623 BLAKE2B 5c985a81fb6ef7926eadfd1b096f1a1358cb814100b75c6175b6507c2d9ce64f5a06799164a7593cc40f00695cf538c9a49bee1a4d0f78c115519d660681b315 SHA512 b2ef0d9112e327d3a581bfe9b4d6e47b7b4edaa3fe463716772438aab0dcee445d94aaa93bfc7036ead297206353ade73a34d148521ef5d25abe9ca5e655a13f
|
||||
DIST reno-2.2.1.tar.gz 56013 BLAKE2B db1966cf542e74e6842be64ee6a1a13cefcedab261bab951c9e39082ab0c0bf278e0b88bf3e876250f141c627a3625fb8038d190a6d58ee8d87054a86da38172 SHA512 278a7a43168f9467342f25c3eb8692e119cac285940b5d3f5a13f8f45acaffde962d2eeac720f2e5d824d085446fe5d660ef7082f95dd3c0360d594de5a65fb1
|
||||
DIST reno-2.5.0.tar.gz 62819 BLAKE2B 1446d1289749df74d09c123af69dc6cacedb539b8387c73a1b0f0425651679e1332427afc482ba352e5176a76fcd6bfb65b31f731e0cfb2d137e23b739110b56 SHA512 ee7c44235dd1c3c253b426abbafd490658d642d56ebac5688dd1e3fca45451f26855f421b252c64f9e143bd67c8b08a9e4c6b79edc9c7341b26150a576458570
|
||||
DIST reno-2.7.0.tar.gz 65269 BLAKE2B f3ba0e33246d40f7f16739f367ad313ce440cd33c6f03de268f2e02293446e0d3a043287c36492d8cae44b65c682c09d13ab0e2c86beffc23a85184ef27a751b SHA512 daf32dd7c08f9f75a9a334db8aa9e8c4fdad266bd5e68a43a87920751cf57549fba7906da26dc6c8f79b97bfaf51ad481f80ce99168cd65cfbd62848cb3d0cab
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Release notes manager, storing release notes in a git repo and building docs"
|
||||
HOMEPAGE="https://pypi.org/project/reno/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.4[${PYTHON_USEDEP}]"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/dulwich-0.15.0[${PYTHON_USEDEP}]"
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python module for downloading files"
|
||||
HOMEPAGE="http://urlgrabber.baseurl.org"
|
||||
SRC_URI="http://urlgrabber.baseurl.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/pycurl[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
# Entire testsuite relies on connecting to the i'net
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
# Fix "#! /usr/bin/python" to not end up with Python 3
|
||||
python_setup
|
||||
python_fix_shebang "${ED}"/usr/libexec/urlgrabber-ext-down
|
||||
}
|
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
DIST acts_as_list-0.9.11.gem 34816 BLAKE2B 6cbe53615b29c5e97aca86acfd0d82b6ea1027d2f2f9a1680aa7c42429d203188af08ab5fd9cbd1502f4028b807ecaab0c1c158efcd9969faecaa0a04efad821 SHA512 b439bacfde4f698e696e748ba26fc1138336d4b8215a3e862416eccf8ea881205c38a4300eddb026902e1b2320a0d0a8dc07ce358482c07ed0d50dedc5c7b4c8
|
||||
DIST acts_as_list-0.9.12.gem 35328 BLAKE2B 1e2e11bddf94c5e9213a397e4473c96331352f76581224faf29c125cdf7a0c3cbd6191270921e7134c8c8bc2faad862aab043cea2bf8ab7cec87d71012121ad1 SHA512 7120cbf538fe660861b4a83477ff914deee6f8bed94eaeccf74e1a19cb49ab27fc6e62b01f7295750c2521f92823c4e5167ede8bae1dfe55f00d292b67ad5f21
|
||||
DIST acts_as_list-0.9.14.gem 35328 BLAKE2B 6d8e9c505a11f0483127b64c62ce86e4228ffeb11fe8a78af44820c614120dd80c87db796eb4130710012a1fba35b03520e23ee4acac988f95cc38be30f7abde SHA512 4a04e4431d6076f8fe28a2039836722540512bb66fa574d0bcb64283e89369423fab460e1aa6da11d9e92b7b7fbae8a03b38cc1d24ea3c3c6e0c99018ca6ac1e
|
||||
DIST acts_as_list-0.9.15.gem 35840 BLAKE2B 3a1c5929d5f51804b5d4ee1d754f951ce0615bf4fa80345bb55d7c1b821fcd3378ec6817da697381d6692e97b790823a2f00e41742608a04ea399c3c1bf6ba30 SHA512 76b2b80c4b3011b69f027066d5a1d458727209f8c05ec3f01f5479db18dcae85213cb1c9111aa152093148e2e5c2235b2714760141504939005e656c891135b1
|
||||
DIST acts_as_list-0.9.16.gem 35840 BLAKE2B 189e05a7f9ba231a4d49f00df0941edef820ef4e1d8705f6b36b8dbffe9125a77b964997e58712d293785396b3b0847b494758bb4b9e0102c53df78ee0817728 SHA512 e01c7814669bfd408a27b37ff88c42adfd52b4001f0e835f134dbb5de8d041d27dc95b3549271ffe81b3b5991e149ff0958f8c14bb59425f29dd1493db474f22
|
||||
DIST acts_as_list-0.9.17.gem 36352 BLAKE2B 6f876dbeab3e84952da4b04f98e8283284fdfe34deab0a0e950606b935e4b64e5adba057aef33daa2279faf9e1f24240f653a2f4c5a56120d5a9019c1dca76ed SHA512 a65cb1e4d8ff99f40ed6ef16344a2884e80d861064c91ccaeb5baa35f4bce72ab77e4f0cc2110ae5734e8c329c7dee19ff0a38f59bd518a97ea7073ce4e61678
|
||||
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
DESCRIPTION="Capabilities for sorting and reordering a number of objects in a list"
|
||||
HOMEPAGE="https://github.com/swanandp/acts_as_list"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/activerecord-3:*"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/test-unit:2
|
||||
dev-ruby/activerecord[sqlite]
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
sed -i -e '/bundler/,/^end/ s:^:#:' test/helper.rb || die
|
||||
sed -i -e '/git ls/d' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
sed -i -e '/github_changelog/,$ s:^:#:' Rakefile || die
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
DESCRIPTION="Capabilities for sorting and reordering a number of objects in a list"
|
||||
HOMEPAGE="https://github.com/swanandp/acts_as_list"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/activerecord-3:*"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/test-unit:2
|
||||
dev-ruby/activerecord[sqlite]
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
sed -i -e '/bundler/,/^end/ s:^:#:' test/helper.rb || die
|
||||
sed -i -e '/git ls/d' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
sed -i -e '/github_changelog/,$ s:^:#:' Rakefile || die
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue