public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jansi/
Date: Thu, 31 Oct 2024 08:19:53 +0000 (UTC)	[thread overview]
Message-ID: <1730362662.dee181f66c7c32451752f92074e5123bc2ce009d.fordfrog@gentoo> (raw)

commit:     dee181f66c7c32451752f92074e5123bc2ce009d
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Oct 30 20:05:52 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 08:17:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee181f6

dev-java/jansi: add 2.4.1

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/39160
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/jansi/Manifest           |  3 ++
 dev-java/jansi/jansi-2.4.1.ebuild | 73 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/dev-java/jansi/Manifest b/dev-java/jansi/Manifest
index 1325190f77b1..7468150a6e16 100644
--- a/dev-java/jansi/Manifest
+++ b/dev-java/jansi/Manifest
@@ -1,2 +1,5 @@
 DIST jansi-1.13.tar.gz 253219 BLAKE2B 89fc81710bc0860c717241c97fe2e7a148ccbaa5fb1e7db30b978aa69cddccbc9ea45a0e30ef384c42a741d707f5eab73ce8b2a76e1095c66a2c95f9088f28f0 SHA512 9c4bb0b7435c102068718e039900828994f1ba60ed44307eb726eb91a2884bc406688c2747635b9353f3bd68a6bf0e7c082a4069343b59efffc900f59c563fde
 DIST jansi-2.4.0.tar.gz 225579 BLAKE2B f07dfde9b789d62ec31999632e35609143289c5ab0972ce7cb931dea72ba41e6f2b9b74f7b3d82050e9ed4abd89386040d5268c408d787d3edd49fcdf0cce965 SHA512 4172b264463b847d6008dfad5c80246b029c7add2fd659f4b1c636891a86860f8f5ddd0ce0a5150065faeae72b19682339dda2d019c82f45d8f1be7a547e4558
+DIST jansi-2.4.1-jni.h 74987 BLAKE2B 23ecaf1e83f043492d774420bb20b4a890fd37bc7469fe8710dcddc72ddbded4aaa7f17589f7b886f26bf9a95cac50c3afd6480fee25d6cf1b01660f98a55f3f SHA512 2c9be8438b8c93f3d00abb8cd3f4b14e57fbaa8de562c12b982db5d32c250a436210e4d44aba22585b489dcb47ea1504cd1a7695a6d1fc60808ecd2140f400b2
+DIST jansi-2.4.1-jni_md.h 2002 BLAKE2B 2112e87963902727e1755b6fa3bc4301b5181787a6f4003674db095896b78f9f745cabe3278b1df06b5cde13dffaf77938668f389f388e410b97cadd42851d75 SHA512 c3c7dffd9518accbcbab60c904af7acadb999048881c571acada162fd39f18de9aa024b09abe10a2138c1398b281890e4473fbaef6e27541e50370119eed5dff
+DIST jansi-2.4.1.tar.gz 243911 BLAKE2B 56955f71e37a2e2bbc59d0d859c9d04918737da02ea3121ab7747b763c2e5ef8fd0422f0be2bb51de64eaff526d73a6d78a74a3725ed7b1e93a12cf401892f97 SHA512 ca0de5a8e2098c4d2d72fff4e345d0426ac306ed6b9778ab1fc1a6a23c251a01c86da1089c663739aecea039b6bcfda785018c99046fec42112fa70d53b63ab6

diff --git a/dev-java/jansi/jansi-2.4.1.ebuild b/dev-java/jansi/jansi-2.4.1.ebuild
new file mode 100644
index 000000000000..ab0c5cb37189
--- /dev/null
+++ b/dev-java/jansi/jansi-2.4.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.fusesource.jansi:jansi:2.4.1"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple toolchain-funcs
+
+DESCRIPTION="Jansi is a java library for generating and interpreting ANSI escape sequences."
+HOMEPAGE="https://fusesource.github.io/jansi/"
+# downloading jni.h and jni_md.h according to Makefile
+SRC_URI="
+	https://github.com/fusesource/${PN}/archive/refs/tags/${P}.tar.gz
+	https://raw.githubusercontent.com/openjdk/jdk/jdk-11%2B28/src/java.base/share/native/include/jni.h
+	-> ${P}-jni.h
+	https://raw.githubusercontent.com/openjdk/jdk/jdk-11%2B28/src/java.base/unix/native/include/jni_md.h
+	-> ${P}-jni_md.h
+"
+S="${WORKDIR}/${PN}-${P}"
+
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+RESTRICT="test"	#839681
+
+DEPEND="
+	test? ( dev-java/junit:5 )
+	>=virtual/jdk-1.8:*
+"
+
+RDEPEND="
+	>=virtual/jre-1.8:*
+"
+
+DOCS=( {changelog,readme}.md license.txt )
+
+JAVA_MAIN_CLASS="org.fusesource.jansi.AnsiMain"
+JAVA_RESOURCE_DIRS="src/main/resources"
+JAVA_SRC_DIR="src/main/java"
+JAVA_TEST_GENTOO_CLASSPATH="junit-4,junit-5"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+	default
+	# Remove this directory containing libjansi.so, libjansi.jnilib and jansi.dll
+	rm -r "${JAVA_RESOURCE_DIRS}/org/fusesource/jansi/internal/native" || die
+
+	cp "${DISTDIR}/${P}-jni.h" src/main/native/jni.h || die
+	cp "${DISTDIR}/${P}-jni_md.h" src/main/native/jni_md.h || die
+}
+
+src_compile() {
+	java-pkg-simple_src_compile
+
+	# build native library.
+	local args=(
+		CCFLAGS="${CFLAGS} ${CXXFLAGS} -Os -fPIC -fvisibility=hidden"
+		LINKFLAGS="-shared ${LDFLAGS}"
+		CC="$(tc-getCC)"
+		STRIP="$(tc-getSTRIP)"
+		LIBNAME="libjansi-$(ver_cut 1-2).so"
+	)
+	emake "${args[@]}" native
+}
+
+src_install() {
+	java-pkg-simple_src_install
+	java-pkg_doso target/native--/libjansi-$(ver_cut 1-2).so
+}


             reply	other threads:[~2024-10-31  8:19 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-31  8:19 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-15  7:40 [gentoo-commits] repo/gentoo:master commit in: dev-java/jansi/ Miroslav Šulc
2024-12-14 18:12 Sam James
2024-12-10 15:25 Sam James
2024-12-10 15:22 Sam James
2024-11-30 10:38 Sam James
2024-11-30  9:40 Sam James
2024-11-11  7:52 Miroslav Šulc
2022-10-13 21:20 Sam James
2022-02-16 21:56 Arthur Zamarin
2022-02-16 21:47 Arthur Zamarin
2022-02-16  9:35 Jakov Smolić
2022-02-16  9:35 Jakov Smolić
2022-01-18  9:57 Miroslav Šulc
2022-01-18  9:57 Miroslav Šulc
2022-01-17  8:58 Miroslav Šulc
2021-12-22 18:47 Arthur Zamarin
2021-11-25  4:14 Sam James
2021-08-29 17:57 Sam James
2021-08-29 17:57 Sam James
2021-08-29 17:57 Sam James
2021-07-30  4:24 Miroslav Šulc
2021-04-29  4:40 Miroslav Šulc
2021-04-29  0:22 Sam James
2021-04-28  9:05 Miroslav Šulc
2020-07-20  1:10 Sam James
2020-07-12 12:34 Sergei Trofimovich
2017-07-13 20:42 Alexis Ballier
2017-06-12 21:34 Patrice Clement
2017-06-12 21:34 Patrice Clement
2015-12-18 16:33 Patrice Clement
2015-10-25 15:31 Patrice Clement
2015-10-25 14:41 Patrice Clement
2015-10-25 14:41 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1730362662.dee181f66c7c32451752f92074e5123bc2ce009d.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox