Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/boot-bin/files/, dev-java/boot-bin/
Date: Sun, 04 Sep 2016 05:02:46
Message-Id: 1472965304.e0631bd3e5aa6d45efcfec8f2d2ce9199fdd9e6c.kentnl@gentoo
1 commit: e0631bd3e5aa6d45efcfec8f2d2ce9199fdd9e6c
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 4 04:59:42 2016 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 4 05:01:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0631bd3
7
8 dev-java/boot-bin: Added at 2.6.0
9
10 This is mostly just giving users a better choice than "sudo bash curl..."
11
12 boot will still have to install its own dependencies when executed via maven
13 glue into ~/.m2/, but this still means they can easily get `boot` accessible
14 globally in "$PATH" without security paranoia, and from then on it
15 "mostly just works" without needing to understand boot-specific install
16 procedures.
17
18 Ideally this itself will be built from sources one day, but java upstream
19 logic fights this at every stage.
20
21 Also, "boot -u" still does "something", but it doesn't do anything useful.
22
23 Package-Manager: portage-2.3.0
24
25 dev-java/boot-bin/Manifest | 1 +
26 dev-java/boot-bin/boot-bin-2.6.0.ebuild | 60 +++++++++++++++++++++++++++++++++
27 dev-java/boot-bin/files/boot | 6 ++++
28 dev-java/boot-bin/metadata.xml | 11 ++++++
29 4 files changed, 78 insertions(+)
30
31 diff --git a/dev-java/boot-bin/Manifest b/dev-java/boot-bin/Manifest
32 new file mode 100644
33 index 00000000..9d842b5
34 --- /dev/null
35 +++ b/dev-java/boot-bin/Manifest
36 @@ -0,0 +1 @@
37 +DIST boot-2.6.0.jar 8289462 SHA256 6ad8b10ff63b5ed884fefef9b784fd05675d94486526d059ebcc2c3b8a8a7701 SHA512 715aa320c0e44a2376020aa84c0640ae8e6fb15a4842b4267ff58e1d09682aae17f74dc568e50fa611993947bcd7b1430157a0f0b6b8bcddff1eaa3149ddc9ad WHIRLPOOL e39fa91d481ecf74747da7b81477d27110c61ad51ad5b662da9ef60c0a8727c035abacbc0cf1201d6dce2e31d76115ce2fecc2193228ae23dfe251e11858d93f
38
39 diff --git a/dev-java/boot-bin/boot-bin-2.6.0.ebuild b/dev-java/boot-bin/boot-bin-2.6.0.ebuild
40 new file mode 100644
41 index 00000000..8bf39a4
42 --- /dev/null
43 +++ b/dev-java/boot-bin/boot-bin-2.6.0.ebuild
44 @@ -0,0 +1,60 @@
45 +# Copyright 1999-2016 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Id$
48 +
49 +EAPI="6"
50 +
51 +inherit java-pkg-2
52 +
53 +MY_PN="${PN%-bin}"
54 +MY_PNV="${MY_PN}-${PV}"
55 +
56 +DESCRIPTION="Build tooling for Clojure"
57 +HOMEPAGE="http://boot-clj.com/"
58 +SRC_URI="https://github.com/boot-clj/${MY_PN}/releases/download/${PV}/${MY_PN}.jar -> ${MY_PNV}.jar"
59 +
60 +LICENSE="EPL-1.0"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +
64 +RDEPEND=">=virtual/jdk-1.7:*"
65 +DEPEND=">=virtual/jdk-1.7:*"
66 +
67 +RESTRICT="test"
68 +
69 +src_unpack() {
70 + mkdir -p "${S}" || die "Can't mkdir ${S}"
71 + cd "${S}" || die "Can't enter ${S}"
72 + for file in ${A}; do
73 + einfo "Copying ${file}"
74 + cp "${DISTDIR}/${file}" "${S}/" || die "Can't copy ${file}"
75 + done
76 +}
77 +
78 +src_prepare() {
79 + einfo "Copying boot shell-script"
80 + cp "${FILESDIR}/boot" "${S}/" || die "Can't copy boot"
81 +
82 + java-pkg_init_paths_
83 +
84 + sed -i "s|@@JAVA_PKG_SHAREPATH@@|${JAVA_PKG_SHAREPATH}|g" "${S}/boot" || die "Can't patch JAVA_PKG_SHAREPATH path in boot"
85 + sed -i "s|@@JAVA_PKG_JARDEST@@|${JAVA_PKG_JARDEST}|g" "${S}/boot" || die "Can't patch JAVA_PKG_JARDEST path in boot"
86 + sed -i "s|@@PN@@|${PN}|g" "${S}/boot" || die "Can't patch PN in boot"
87 +
88 + default
89 +}
90 +
91 +src_compile() { :; }
92 +
93 +src_install() {
94 + dobin "${S}/boot"
95 + java-pkg_newjar "${S}/${MY_PNV}.jar"
96 +}
97 +
98 +pkg_postinst() {
99 + einfo "This package will still download a whole lot of its own runtime"
100 + einfo "dependencies the first time you run it."
101 + einfo ""
102 + einfo "This currently can't be helped and is expected behaviour for a"
103 + einfo "java based development toolkit"
104 +}
105
106 diff --git a/dev-java/boot-bin/files/boot b/dev-java/boot-bin/files/boot
107 new file mode 100644
108 index 00000000..acd8e40
109 --- /dev/null
110 +++ b/dev-java/boot-bin/files/boot
111 @@ -0,0 +1,6 @@
112 +source @@JAVA_PKG_SHAREPATH@@/package.env
113 +jarpath="@@JAVA_PKG_JARDEST@@/@@PN@@.jar"
114 +declare -a "options=($BOOT_JVM_OPTIONS)"
115 +self="${BASH_SOURCE[0]}"
116 +exec ${BOOT_JAVA_COMMAND:-java} "${options[@]}" -Dboot.app.path="$jarpath" -jar "$jarpath" "$@"
117 +
118
119 diff --git a/dev-java/boot-bin/metadata.xml b/dev-java/boot-bin/metadata.xml
120 new file mode 100644
121 index 00000000..c22b260
122 --- /dev/null
123 +++ b/dev-java/boot-bin/metadata.xml
124 @@ -0,0 +1,11 @@
125 +<?xml version="1.0" encoding="UTF-8"?>
126 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
127 +<pkgmetadata>
128 + <maintainer type="person">
129 + <email>kentnl@g.o</email>
130 + <name>Kent Fredric</name>
131 + </maintainer>
132 + <maintainer type="project">
133 + <email>java@g.o</email>
134 + </maintainer>
135 +</pkgmetadata>