public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: media-gfx/gephi-bin/
Date: Tue,  6 Feb 2024 09:20:44 +0000 (UTC)	[thread overview]
Message-ID: <1707211205.4b3ccccb1edddb3b828685e7acf935e492cf661d.flow@gentoo> (raw)

commit:     4b3ccccb1edddb3b828685e7acf935e492cf661d
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  6 09:18:56 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Feb  6 09:20:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b3ccccb

media-gfx/gephi-bin: add 0.10.1

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 media-gfx/gephi-bin/Manifest                |  1 +
 media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild | 60 +++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/media-gfx/gephi-bin/Manifest b/media-gfx/gephi-bin/Manifest
index 859b7cfd2e..d6defe4748 100644
--- a/media-gfx/gephi-bin/Manifest
+++ b/media-gfx/gephi-bin/Manifest
@@ -1,2 +1,3 @@
+DIST gephi-0.10.1-linux-x64.tar.gz 149246671 BLAKE2B 921d8b780043de03d8c9b538be3dce0c0f23623e1024ca5d37736f468533655985e480c48c944c55d90ab8309f22103dab44eefd82086ed0be8178aa9a2989c2 SHA512 cf92298e0db9c3038db68227056acd9379d15a2dcbb726fd5dc92e47295924b24acb7fe5fab02cf533208bffb83bc725421d2be1d908d8129b4475db984f91d3
 DIST gephi-0.9.5-linux-x64.tar.gz 141580518 BLAKE2B f49c0c6537b6a2ae0a57f08464b249fa6c12a80c6b63cecdd9a9202643eb075b76051bf871618556521a6258fda11289d2595bd6aa22c0fa70200685c23da5f7 SHA512 fc0c1200e3bbbc348a6acb3df7362f55825bd02659b84183ca669a967efec6dc25fb3cb26fd231104988e416c5abe7c4c689b940fae8eee8d4e60271092fe079
 DIST gephi-0.9.6-linux-x64.tar.gz 141861129 BLAKE2B 7991d6370f7d95c7c8fcaf355541e74bbf579c26a0a869448d7f1478eaaa3d8cef8a780df2f269e2b690dcbf5194dddf3a50eaf09b65c83a4c0dda80760b4aa3 SHA512 c1db889bf8423d59a28400b5b2e70d7df157e9d68d30eb7c06528faadaaa617797cd88f8b5a10f962043f92ff82c03e02fbade140897a0358616959b6f8ead05

diff --git a/media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild b/media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild
new file mode 100644
index 0000000000..065c20e9ba
--- /dev/null
+++ b/media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MYPN="${PN/-bin/}"
+MYP="${MYPN}-${PV}"
+
+DESCRIPTION="The Open Graph Viz Platform"
+HOMEPAGE="
+	https://gephi.org/
+	https://github.com/gephi/gephi
+"
+SRC_URI="https://github.com/gephi/gephi/releases/download/v${PV}/${MYP}-linux-x64.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="CDDL GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+MY_JAVA_DEPEND=">=virtual/jre-11"
+RDEPEND="${MY_JAVA_DEPEND}"
+
+RESTRICT="strip"
+
+QA_PREBUILT="/opt/${MYPN}/platform/modules/lib/amd64/linux/libjnidispatch-nb.so"
+
+src_prepare() {
+	default
+
+	local gephi_conf="${MYP}/etc/gephi.conf"
+	sed -e '/jdkhome=.*/d' -i "${gephi_conf}" || die
+	# Extra newline since gephi.conf does not end with a newline char.
+	cat <<-EOF >> "${gephi_conf}"
+
+	gentoo_java_vm="\$(depend-java-query --get-vm '${MY_JAVA_DEPEND}')"
+	jdkhome="\$(java-config -P \${gentoo_java_vm} | grep JAVA_HOME | cut -d '=' -f 2)"
+EOF
+
+	#remove windows things
+	rm -r "${MYP}"/bin/*.exe || die
+	rm -r "${MYP}"/platform/lib/*.exe || die
+	rm -r "${MYP}"/platform/lib/*.dll || die
+	rm -r "${MYP}/platform/modules/lib/x86" || die #windows only
+	rm -r "${MYP}"/platform/modules/lib/amd64/*.dll || die
+
+	rm -rf "${MYP}/platform/modules/lib/i386" || die
+	rm -rf "${MYP}/platform/modules/lib/aarch64" || die
+
+	# remove bundled jre
+	rm -rf "${MYP}/jre-x64" || die
+}
+
+src_install() {
+	insinto "/opt/${MYPN}"
+	doins -r "${MYP}"/*
+	keepdir "/opt/${MYPN}/etc"
+	fperms a+x "/opt/${MYPN}/bin/gephi"
+	fperms a+x "/opt/${MYPN}/platform/lib/nbexec"
+	dosym "../../opt/${MYPN}/bin/gephi" "${EPREFIX}/usr/bin/gephi"
+}


WARNING: multiple messages have this Message-ID (diff)
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/gephi-bin/
Date: Tue,  6 Feb 2024 09:20:34 +0000 (UTC)	[thread overview]
Message-ID: <1707211205.4b3ccccb1edddb3b828685e7acf935e492cf661d.flow@gentoo> (raw)
Message-ID: <20240206092034.ljlxEXQ5OF-OtNS8FIU_zDTJgWZ8YWaANG93qJnjHm4@z> (raw)

commit:     4b3ccccb1edddb3b828685e7acf935e492cf661d
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  6 09:18:56 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Feb  6 09:20:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b3ccccb

media-gfx/gephi-bin: add 0.10.1

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 media-gfx/gephi-bin/Manifest                |  1 +
 media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild | 60 +++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/media-gfx/gephi-bin/Manifest b/media-gfx/gephi-bin/Manifest
index 859b7cfd2e..d6defe4748 100644
--- a/media-gfx/gephi-bin/Manifest
+++ b/media-gfx/gephi-bin/Manifest
@@ -1,2 +1,3 @@
+DIST gephi-0.10.1-linux-x64.tar.gz 149246671 BLAKE2B 921d8b780043de03d8c9b538be3dce0c0f23623e1024ca5d37736f468533655985e480c48c944c55d90ab8309f22103dab44eefd82086ed0be8178aa9a2989c2 SHA512 cf92298e0db9c3038db68227056acd9379d15a2dcbb726fd5dc92e47295924b24acb7fe5fab02cf533208bffb83bc725421d2be1d908d8129b4475db984f91d3
 DIST gephi-0.9.5-linux-x64.tar.gz 141580518 BLAKE2B f49c0c6537b6a2ae0a57f08464b249fa6c12a80c6b63cecdd9a9202643eb075b76051bf871618556521a6258fda11289d2595bd6aa22c0fa70200685c23da5f7 SHA512 fc0c1200e3bbbc348a6acb3df7362f55825bd02659b84183ca669a967efec6dc25fb3cb26fd231104988e416c5abe7c4c689b940fae8eee8d4e60271092fe079
 DIST gephi-0.9.6-linux-x64.tar.gz 141861129 BLAKE2B 7991d6370f7d95c7c8fcaf355541e74bbf579c26a0a869448d7f1478eaaa3d8cef8a780df2f269e2b690dcbf5194dddf3a50eaf09b65c83a4c0dda80760b4aa3 SHA512 c1db889bf8423d59a28400b5b2e70d7df157e9d68d30eb7c06528faadaaa617797cd88f8b5a10f962043f92ff82c03e02fbade140897a0358616959b6f8ead05

diff --git a/media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild b/media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild
new file mode 100644
index 0000000000..065c20e9ba
--- /dev/null
+++ b/media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MYPN="${PN/-bin/}"
+MYP="${MYPN}-${PV}"
+
+DESCRIPTION="The Open Graph Viz Platform"
+HOMEPAGE="
+	https://gephi.org/
+	https://github.com/gephi/gephi
+"
+SRC_URI="https://github.com/gephi/gephi/releases/download/v${PV}/${MYP}-linux-x64.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="CDDL GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+MY_JAVA_DEPEND=">=virtual/jre-11"
+RDEPEND="${MY_JAVA_DEPEND}"
+
+RESTRICT="strip"
+
+QA_PREBUILT="/opt/${MYPN}/platform/modules/lib/amd64/linux/libjnidispatch-nb.so"
+
+src_prepare() {
+	default
+
+	local gephi_conf="${MYP}/etc/gephi.conf"
+	sed -e '/jdkhome=.*/d' -i "${gephi_conf}" || die
+	# Extra newline since gephi.conf does not end with a newline char.
+	cat <<-EOF >> "${gephi_conf}"
+
+	gentoo_java_vm="\$(depend-java-query --get-vm '${MY_JAVA_DEPEND}')"
+	jdkhome="\$(java-config -P \${gentoo_java_vm} | grep JAVA_HOME | cut -d '=' -f 2)"
+EOF
+
+	#remove windows things
+	rm -r "${MYP}"/bin/*.exe || die
+	rm -r "${MYP}"/platform/lib/*.exe || die
+	rm -r "${MYP}"/platform/lib/*.dll || die
+	rm -r "${MYP}/platform/modules/lib/x86" || die #windows only
+	rm -r "${MYP}"/platform/modules/lib/amd64/*.dll || die
+
+	rm -rf "${MYP}/platform/modules/lib/i386" || die
+	rm -rf "${MYP}/platform/modules/lib/aarch64" || die
+
+	# remove bundled jre
+	rm -rf "${MYP}/jre-x64" || die
+}
+
+src_install() {
+	insinto "/opt/${MYPN}"
+	doins -r "${MYP}"/*
+	keepdir "/opt/${MYPN}/etc"
+	fperms a+x "/opt/${MYPN}/bin/gephi"
+	fperms a+x "/opt/${MYPN}/platform/lib/nbexec"
+	dosym "../../opt/${MYPN}/bin/gephi" "${EPREFIX}/usr/bin/gephi"
+}


             reply	other threads:[~2024-02-06  9:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06  9:20 Florian Schmaus [this message]
2024-02-06  9:20 ` [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/gephi-bin/ Florian Schmaus
  -- strict thread matches above, loose matches on Subject: below --
2024-02-06  9:20 [gentoo-commits] repo/proj/guru:master " Florian Schmaus
2022-06-29 15:37 Florian Schmaus
2022-05-05  4:07 Haelwenn Monnier
2022-04-21 17:46 Arthur Zamarin
2021-03-17 10:43 Andrew Ammerlaan
2021-03-17 10:43 Andrew Ammerlaan

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=1707211205.4b3ccccb1edddb3b828685e7acf935e492cf661d.flow@gentoo \
    --to=flow@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