summaryrefslogtreecommitdiff
blob: f54ad286701462fca4a3bbca27b272130eb6183e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit java-pkg-2 java-ant-2

EGIT_REF="d69f559"

MY_PN=${PN//-/.}
MY_P=${MY_PN}-${PV}

DESCRIPTION="A Clojure library with specs to describe Clojure core macros and functions"
HOMEPAGE="https://clojure.org/ https://github.com/clojure/core.specs.alpha"
SRC_URI="https://github.com/clojure/${MY_PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"

LICENSE="EPL-1.0"
SLOT="0.2"
KEYWORDS="~amd64 ~x86 ~x86-linux"
IUSE=""

CDEPEND="dev-java/ant-core:0"
RDEPEND=">=virtual/jre-1.8:*"
DEPEND="
	${CDEPEND}
	>=virtual/jdk-1.8:*"

S="${WORKDIR}/${MY_PN}-${MY_P}"

EANT_TASKS="jar"
EANT_EXTRA_ARGS="-Dmaven.build.finalName=${MY_P}"

src_prepare() {
	default
	cp "${FILESDIR}/build.xml" . || die
}

src_install() {
	java-pkg_newjar "target/${MY_P}.jar"
	dodoc CONTRIBUTING.md README.md
}