diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-01-11 16:19:44 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-01-11 16:19:51 +0100 |
commit | 4be2cc112e82f1d1641a570b6a17959785e28a50 (patch) | |
tree | 58e9cd93dc22bf4c5f3ca2b40e4bec729e3d54b3 /sci-misc | |
parent | dev-python/chart-studio: enable python3.10 (diff) | |
download | gentoo-4be2cc112e82f1d1641a570b6a17959785e28a50.tar.gz gentoo-4be2cc112e82f1d1641a570b6a17959785e28a50.tar.bz2 gentoo-4be2cc112e82f1d1641a570b6a17959785e28a50.zip |
sci-misc/netlogo-bin: add version 6.2.2
add sci as maintainer
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/netlogo-bin/Manifest | 2 | ||||
-rw-r--r-- | sci-misc/netlogo-bin/metadata.xml | 7 | ||||
-rw-r--r-- | sci-misc/netlogo-bin/netlogo-bin-6.2.2.ebuild | 112 |
3 files changed, 119 insertions, 2 deletions
diff --git a/sci-misc/netlogo-bin/Manifest b/sci-misc/netlogo-bin/Manifest index 81dc3c0a0f63..4989dd783877 100644 --- a/sci-misc/netlogo-bin/Manifest +++ b/sci-misc/netlogo-bin/Manifest @@ -2,5 +2,7 @@ DIST NetLogo-6.0.2-32.tgz 192943415 BLAKE2B c7d20154ade89ae54f98fa08ae4832d9c81a DIST NetLogo-6.0.2-64.tgz 190213078 BLAKE2B 6b0a077538f3e3f3e7769c605a67f6bb6b791319877910eac74e065091d3f6b8cd328d8b354415234b2dd9d4b96b3ca7d18074f54263f460f38b77b8dbe4b9bb SHA512 091200b66305e3ff84e9d1b9a293eaa5f6000a103de86d942c5d0f749aee52cf5519954d05807609f7c0cbeceeab15930ef48612b4f6c1445e529e876aaa9d8e DIST NetLogo-6.2.0-32.tgz 225021142 BLAKE2B e7570ae8d865a650ebc90fe66d57aefaa1f413dea54f778ee3f0d5621fad40c16e2a7d3e26f6d51b08f02c25a1adc7ed30e22e01b43abc68b933f414ff57461f SHA512 9c399a00a49ccc0d40e1ddb3c61e41b3aa4e5aff50cf7d872f954ea47956f60faec8f5c0f0082e5b35070d32129c5b8eecceeb93d39b878ad58f13850ccd358f DIST NetLogo-6.2.0-64.tgz 224714930 BLAKE2B 5149f9b3ad9e49f50b907223ca554ec9bb01fc679a94f2dfe38d4c2535f6f9d3529d2189362a910ae0cc802e9e0de11f46e6dd0453b91caa87410990a7c80b52 SHA512 e6323ef608db55a187ba26604336a927ddcb6de3c51d8d6d5c701f1d1d2041752efe856f564aff50133446f9d51b663258e29bc18e1a42ffa3f6107023538f36 +DIST NetLogo-6.2.2-32.tgz 232876084 BLAKE2B c32b74d57b9671c6de380b77d78d305582b2dd594b9c6dc4640c6978630c1def5ccf24dd21a25fd9bec868908f3b41c93d40d090b540d1a6dd1840620a0ea5be SHA512 c27c7a73f51dc919e9acebc32b3fcd399d8597b2e0141d0cdf0ffc06e932afbdeb759a5b298aa337af5b846ed6c9f31ca8a0c6441f8f31f29151ea8a96433840 +DIST NetLogo-6.2.2-64.tgz 232588273 BLAKE2B 65d0f5ed9ba4616ac4a9f6df2f0a3f3fec280343233f4d715c7eb96002860b0a2377dc354913bd78527df45c7f93bb97e0979d18f49e3dc987847a73d879ee51 SHA512 0f38e34507897dd36a3053415bf191b8e71a7ef601ac6fe407bff0faa50c2e915e283e3e043379e19fcc4449934e1b7ceaffb68eadab1e529a5494b3a2d0f11f DIST netlogo.gif.tar 10240 BLAKE2B 5199290ca492dc4be03dac04a672b4a187daa6caa12a5a487137259071dad156e553ca7eea02f6cd7d66187e4956324fc2d3f2818f10f1557f276f003986be69 SHA512 9a9bc81660599d2b35875f301d5b9824bfa2dafa21dc96b1e6e281d4682ab7b4052844a961b46f5300131c91a4562c58e4b1a4d753cb2b24a18e64b42d333e32 DIST netlogo.png 23702 BLAKE2B 60816d1bf1ee265b6d4dfa7f4d4b3df22d03996b551d7056b51ea8fc2703a6037fb7d0fb1fc5d0557255eac569aeb17dc0f32bfc91db2b13411588e5f821bdba SHA512 37945b2739f7f25f5b443c03914c4f6e28ed81efe2a0eca5dd83c7c5961fdeeb681b80b162dc45e1de3f65e013a38999b91b9b0ad1cfd5bf664d5e11029b62dd diff --git a/sci-misc/netlogo-bin/metadata.xml b/sci-misc/netlogo-bin/metadata.xml index 8d72190c0107..4a51e37f3518 100644 --- a/sci-misc/netlogo-bin/metadata.xml +++ b/sci-misc/netlogo-bin/metadata.xml @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> <longdescription> NetLogo is a programmable modeling environment for simulating natural and social phenomena. It is particularly well suited for modeling complex @@ -10,5 +13,5 @@ or thousands of independent "agents" all operating concurrently. This makes it possible to explore the connection between the micro-level behavior of individuals and the macro-level patterns that emerge from the interaction of many individuals. -</longdescription> + </longdescription> </pkgmetadata> diff --git a/sci-misc/netlogo-bin/netlogo-bin-6.2.2.ebuild b/sci-misc/netlogo-bin/netlogo-bin-6.2.2.ebuild new file mode 100644 index 000000000000..587353e581fc --- /dev/null +++ b/sci-misc/netlogo-bin/netlogo-bin-6.2.2.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop java-pkg-2 xdg + +MY_PN="NetLogo" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Programming language and IDE for agent-based modelling" +HOMEPAGE="https://ccl.northwestern.edu/netlogo/" +SRC_URI=" + https://netlogoweb.org/assets/images/desktopicon.png -> ${PN//-bin}.png + amd64? ( https://ccl.northwestern.edu/netlogo/${PV}/${MY_P}-64.tgz ) + x86? ( https://ccl.northwestern.edu/netlogo/${PV}/${MY_P}-32.tgz ) +" +S="${WORKDIR}/${MY_PN} ${PV}" + +LICENSE="netlogo GPL-2 LGPL-2.1 LGPL-3 BSD Apache-2.0" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RDEPEND=" + >=virtual/jre-1.8:* + media-libs/mesa + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libXrender + x11-libs/libXxf86vm +" + +DOCS=( + "readme.md" + "NetLogo User Manual.pdf" + "Mathematica Link/NetLogo-Mathematica Tutorial.pdf" + "app/behaviorsearch/README.TXT" +) +HTML_DOCS=( + "app/docs" + "app/behaviorsearch/documentation" +) + +QA_PREBUILT="opt/netlogo/app/natives/linux-*/*.so" + +src_install() { + einstalldocs + + # Remove the bundled libs if we are not installing on this arch + # This avoids: "QA Notice: Unresolved SONAME dependencies:" + if ! use amd64; then + rm -r app/natives/linux-amd64 || die + fi + if ! use x86; then + rm -r app/natives/linux-i586 || die + fi + + # Override the config files so they don't use the bundled java path + sed -i -e 's/app.runtime=.*/app.runtime=$JAVA_HOME/g' app/*.cfg || die + + local basedir="/opt/${PN//-bin}" + insinto "${basedir}" + doins -r app/ + # The whitespace causes issues when we try to java-pkg_regjar, because + # classpath can't contain paths with whitespaces + mv "Mathematica Link/" "MathematicaLink/" || die + doins -r "MathematicaLink/" + + doicon -s 256x256 "${DISTDIR}/${PN//-bin}.png" + doicon -s scalable app/behaviorsearch/resources/icon_behaviorsearch.svg + doicon -s 256x256 app/behaviorsearch/resources/icon_behaviorsearch.png + + # Register all these jars so they are available in the classpath + for jar in "${ED}/${basedir}/app/"*.jar ; do + java-pkg_regjar "${jar}" + done + java-pkg_regjar "${ED}/${basedir}/MathematicaLink/mathematica-link.jar" + + use amd64 && java-pkg_dolauncher netlogo3d \ + --main org.nlogo.app.App \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dnetlogo.extensions.dir=${EPREFIX}/${basedir}/app/extensions -Dorg.nlogo.is3d=true -Djava.library.path=${EPREFIX}/${basedir}/app/natives/linux-amd64/:\${env_var:PATH}" + use x86 && java-pkg_dolauncher netlogo3d \ + --main org.nlogo.app.App \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dnetlogo.extensions.dir=${EPREFIX}/${basedir}/app/extensions -Dorg.nlogo.is3d=true -Djava.library.path=${EPREFIX}/${basedir}/app/natives/linux-i586/:\${env_var:PATH}" + java-pkg_dolauncher netlogo \ + --main org.nlogo.app.App \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dnetlogo.extensions.dir=${EPREFIX}/${basedir}/app/extensions" + java-pkg_dolauncher netlogo-headless \ + --main org.nlogo.headless.Main \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dnetlogo.extensions.dir=${EPREFIX}/${basedir}/app/extensions" + java-pkg_dolauncher hubnetclient \ + --main org.nlogo.hubnet.client.App \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dnetlogo.extensions.dir=${EPREFIX}/${basedir}/app/extensions -Dorg.nlogo.is3d=true" + java-pkg_dolauncher behaviorsearch \ + --main bsearch.app.BehaviorSearchGUI \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dbsearch.startupfolder=${EPREFIX}/${basedir} -Dbsearch.appfolder=${EPREFIX}/${basedir}/app/behaviorsearch -server" + java-pkg_dolauncher behaviorsearch-headless \ + --main bsearch.app.BehaviorSearch \ + --pwd "${EPREFIX}/${basedir}" \ + --java_args "-Dbsearch.startupfolder=${EPREFIX}/${basedir} -Dbsearch.appfolder=${EPREFIX}/${basedir}/app/behaviorsearch -server" + + make_desktop_entry netlogo "NetLogo" netlogo + make_desktop_entry netlogo3d "NetLogo 3D" netlogo + make_desktop_entry hubnetclient "NetLogo Hubnet Client" netlogo + make_desktop_entry behaviorsearch "NetLogo Behavior Search" icon_behaviorsearch +} |