diff options
author | Chris Reffett <creffett@gentoo.org> | 2018-03-04 21:08:19 -0500 |
---|---|---|
committer | Chris Reffett <creffett@gentoo.org> | 2018-03-04 21:11:54 -0500 |
commit | a5d30f542a0246872dac3bfb367a3add2d0b6584 (patch) | |
tree | 2caba08d9d7ccf77ebad1a0dd4f15601c1900f41 /sci-misc/netlogo-bin/netlogo-bin-6.0.2.ebuild | |
parent | sys-apps/shadow-4.5: arm64 stable (bug #627044) (diff) | |
download | gentoo-a5d30f542a0246872dac3bfb367a3add2d0b6584.tar.gz gentoo-a5d30f542a0246872dac3bfb367a3add2d0b6584.tar.bz2 gentoo-a5d30f542a0246872dac3bfb367a3add2d0b6584.zip |
sci-misc/netlogo-bin: Version bump, major rework
Bug: https://bugs.gentoo.org/648562
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sci-misc/netlogo-bin/netlogo-bin-6.0.2.ebuild')
-rw-r--r-- | sci-misc/netlogo-bin/netlogo-bin-6.0.2.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/sci-misc/netlogo-bin/netlogo-bin-6.0.2.ebuild b/sci-misc/netlogo-bin/netlogo-bin-6.0.2.ebuild new file mode 100644 index 000000000000..ae454d5e6ce7 --- /dev/null +++ b/sci-misc/netlogo-bin/netlogo-bin-6.0.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop + +MY_PN="NetLogo" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Cross-platform multi-agent programmable modeling environment" +HOMEPAGE="http://ccl.northwestern.edu/netlogo/" +SRC_URI=" + https://dev.gentoo.org/~jlec/distfiles/${PN/-bin}.gif.tar + amd64? ( http://ccl.northwestern.edu/netlogo/${PV}/${MY_P}-64.tgz ) + x86? ( http://ccl.northwestern.edu/netlogo/${PV}/${MY_P}-32.tgz ) +" +LICENSE="netlogo GPL-2 LGPL-2.1 LGPL-3 BSD Apache-2.0" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=">=virtual/jre-1.8" + +S="${WORKDIR}/${MY_PN} ${PV}" + +DOCS=( "NetLogo User Manual.pdf" app/docs/shapes.nlogo readme.md ) +HTML_DOCS=( app/docs app/behaviorsearch/documentation ) + +QA_PREBUILT="opt/netlogo/app/natives/linux-*/*.so" + +src_prepare() { + default + cp "${FILESDIR}"/netlogo-${PV}.sh netlogo.sh + cp "${FILESDIR}"/netlogo3d-${PV}.sh netlogo3d.sh + cp "${FILESDIR}"/behaviorsearch-${PV}.sh behaviorsearch.sh + cp "${FILESDIR}"/hubnetclient-${PV}.sh hubnetclient.sh + if use x86; then + sed -i -e 's/linux-amd64/linux-i586/g' netlogo3d.sh + fi +} + +src_install() { + einstalldocs + + # 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 + + # Once docs are installed, remove them from the source so they don't get + # installed below + rm -rf app/docs app/behaviorsearch/documentation + insinto /opt/netlogo + doins -r app/ + doins -r "Mathematica Link" + + doicon "${WORKDIR}"/netlogo.gif + + exeinto /opt/netlogo/ + # We don't copy the NetLogo binaries since they are hardcoded to use embedded java + doexe netlogo.sh + doexe netlogo3d.sh + doexe behaviorsearch.sh + doexe hubnetclient.sh + doexe netlogo-headless.sh + doexe app/behaviorsearch/behaviorsearch_headless.sh + + insinto /opt/bin + dosym ../netlogo/netlogo.sh /opt/bin/netlogo.sh + dosym ../netlogo/netlogo3d.sh /opt/bin/netlogo3d.sh + dosym ../netlogo/behaviorsearch.sh /opt/bin/behaviorsearch.sh + dosym ../netlogo/hubnetclient.sh /opt/bin/hubnetclient.sh + dosym ../netlogo/netlogo-headless.sh /opt/bin/netlogo-headless.sh + dosym ../netlogo/behaviorsearch_headless.sh /opt/bin/behaviorsearch_headless.sh + + make_desktop_entry behaviorsearch.sh "NetLogo Behavior Search" /usr/share/pixmaps/netlogo.gif + make_desktop_entry netlogo.sh "NetLogo" /usr/share/pixmaps/netlogo.gif + make_desktop_entry netlogo3d.sh "NetLogo 3D" /usr/share/pixmaps/netlogo.gif + make_desktop_entry hubnetclient.sh "NetLogo Hubnet Client" /usr/share/pixmaps/netlogo.gif +} |