mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
media-gfx/gephi-bin: add 0.10.1
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
60
media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild
Normal file
60
media-gfx/gephi-bin/gephi-bin-0.10.1.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user