public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-java/core-specs-alpha/files/, dev-java/core-specs-alpha/
@ 2020-04-23  5:19 Kent Fredric
  0 siblings, 0 replies; only message in thread
From: Kent Fredric @ 2020-04-23  5:19 UTC (permalink / raw
  To: gentoo-commits

commit:     2cf09e558a820243d3d6a10c906c1161a1339004
Author:     Tom Gillespie <tgbugs <AT> gmail <DOT> com>
AuthorDate: Fri Jan  3 07:40:25 2020 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Thu Apr 23 05:01:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cf09e55

dev-java/core-specs-alpha: new package for clojure

>=clojure-1.9.0 depends on dev-java/core-specs-alpha
This commit includes an ant build.xml file so that no maven dependencies
are needed.

Signed-off-by: Tom Gillespie <tgbugs <AT> gmail.com>
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 dev-java/core-specs-alpha/Manifest                 |  2 ++
 .../core-specs-alpha-0.1.24.ebuild                 | 41 ++++++++++++++++++++++
 .../core-specs-alpha-0.2.44.ebuild                 | 41 ++++++++++++++++++++++
 dev-java/core-specs-alpha/files/build.xml          | 37 +++++++++++++++++++
 dev-java/core-specs-alpha/metadata.xml             | 15 ++++++++
 5 files changed, 136 insertions(+)

diff --git a/dev-java/core-specs-alpha/Manifest b/dev-java/core-specs-alpha/Manifest
new file mode 100644
index 00000000000..771bb73d365
--- /dev/null
+++ b/dev-java/core-specs-alpha/Manifest
@@ -0,0 +1,2 @@
+DIST core-specs-alpha-0.1.24.tar.gz 9896 BLAKE2B cb06053d2aa77b4bbd58b612fb0f80137833e156a5136e4f53f6123d158bdbe676e9bacdfe76728b1320986589e8242c52f49a4d8922bda5374e34fe52969ddc SHA512 6ddf20bf9be36f7493104f69f4e9402fc62f49005471a967843c7cfee898c67aaf5046886db73e6b54942538beed9556d83f4582e85fd02ef4cb755cb5a18d34
+DIST core-specs-alpha-0.2.44.tar.gz 10163 BLAKE2B c81ebb08779c3db137363ffb12bc7e26d29cd67323c98430a033f639714da83bf8c9d14146c12d925094e057d3735d100e33656e9571a0a4c107dc9fb56359e9 SHA512 1a59b947c580e45a280b25d5827a174565e066dde577685ca86aa1bbd9767716991cefb8a944c7ded0f84a71f9902f7fcdb5baacc7e19180096d599a51083048

diff --git a/dev-java/core-specs-alpha/core-specs-alpha-0.1.24.ebuild b/dev-java/core-specs-alpha/core-specs-alpha-0.1.24.ebuild
new file mode 100644
index 00000000000..1dbd7e47739
--- /dev/null
+++ b/dev-java/core-specs-alpha/core-specs-alpha-0.1.24.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit java-pkg-2 java-ant-2
+
+EGIT_REF="43815fc"
+
+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.1"
+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
+}

diff --git a/dev-java/core-specs-alpha/core-specs-alpha-0.2.44.ebuild b/dev-java/core-specs-alpha/core-specs-alpha-0.2.44.ebuild
new file mode 100644
index 00000000000..ebab256dc34
--- /dev/null
+++ b/dev-java/core-specs-alpha/core-specs-alpha-0.2.44.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2020 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
+}

diff --git a/dev-java/core-specs-alpha/files/build.xml b/dev-java/core-specs-alpha/files/build.xml
new file mode 100644
index 00000000000..0499525e881
--- /dev/null
+++ b/dev-java/core-specs-alpha/files/build.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
+<!-- ====================================================================== -->
+
+<project name="spec.alpha" default="package" basedir=".">
+  <property name="maven.build.finalName" value="core.specs.alpha-SNAPSHOT"/>
+  <property name="maven.build.dir" value="target"/>
+  <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
+  <property name="maven.build.srcDir.0" value="src/main/clojure"/>
+
+  <!-- clean -->
+  <target name="clean" description="Clean the output directory">
+    <delete dir="${maven.build.dir}"/>
+  </target>
+
+  <!-- build -->
+  <target name="build" description="Copy the files">
+    <mkdir dir="${maven.build.outputDir}"/>
+    <copy todir="${maven.build.outputDir}">
+      <fileset dir="${maven.build.srcDir.0}"/>
+    </copy>
+  </target>
+
+  <!-- package -->
+  <target name="package" depends="build" description="Package the application">
+    <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
+         compress="true"
+         index="false"
+         basedir="${maven.build.outputDir}"
+         excludes="**/package.html"/>
+  </target>
+
+  <!-- jar -->
+  <target name="jar" depends="package" description="Builds the jar for the application"/>
+</project>

diff --git a/dev-java/core-specs-alpha/metadata.xml b/dev-java/core-specs-alpha/metadata.xml
new file mode 100644
index 00000000000..3e2f01e0d96
--- /dev/null
+++ b/dev-java/core-specs-alpha/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>tgbugs@gmail.com</email>
+		<name>Tom Gillespie</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">clojure/core.specs.alpha</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-23  5:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23  5:19 [gentoo-commits] repo/gentoo:master commit in: dev-java/core-specs-alpha/files/, dev-java/core-specs-alpha/ Kent Fredric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox