diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-02-06 10:18:56 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-02-06 10:20:05 +0100 |
commit | 4b3ccccb1edddb3b828685e7acf935e492cf661d (patch) | |
tree | f16c717badc63bc5c5a7a0d5874ff4ed747eda42 /media-gfx/gephi-bin | |
parent | app-accessibility/rhvoice-core: add missing dep (diff) | |
download | guru-4b3ccccb1edddb3b828685e7acf935e492cf661d.tar.gz guru-4b3ccccb1edddb3b828685e7acf935e492cf661d.tar.bz2 guru-4b3ccccb1edddb3b828685e7acf935e492cf661d.zip |
media-gfx/gephi-bin: add 0.10.1
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'media-gfx/gephi-bin')
-rw-r--r-- | media-gfx/gephi-bin/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/media-gfx/gephi-bin/Manifest b/media-gfx/gephi-bin/Manifest index 859b7cfd2..d6defe474 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 000000000..065c20e9b --- /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" +} |