diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/ApE/ApE-2.0.7-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/ApE/ApE-2.0.7-r1.ebuild')
-rw-r--r-- | sci-biology/ApE/ApE-2.0.7-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sci-biology/ApE/ApE-2.0.7-r1.ebuild b/sci-biology/ApE/ApE-2.0.7-r1.ebuild new file mode 100644 index 000000000000..a86386004736 --- /dev/null +++ b/sci-biology/ApE/ApE-2.0.7-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="A Plasmid Editor" +HOMEPAGE="http://www.biology.utah.edu/jorgensen/wayned/ape/" +SRC_URI="http://www.biology.utah.edu/jorgensen/wayned/ape/Download/Linux/ApE_linux_current.zip -> ${P}.zip" + +LICENSE="ApE" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND=" + dev-lang/tcl:0 + dev-lang/tk:0" + +RESTRICT="mirror" + +S="${WORKDIR}/ApE Linux/" + +src_compile() { :; } + +src_install() { + cat >> "${T}/ApE" <<- "EOF" + #!/bin/bash + cmdArgs="" + + # AppMain.tcl searches files relative to the directory where it resides. + # Add absolute path to file here, if necessary. + for rfpath in "$@"; do + afpath="$PWD/${rfpath}" + if test -r "${afpath}"; then + cmdArgs="${cmdArgs} \"${afpath}\""; + else + cmdArgs="${cmdArgs} \"${rfpath}\""; + fi + done + + eval exec tclsh "\"/usr/share/ApE-2.0.7/AppMain.tcl\"" "${cmdArgs}" + EOF + + dobin "${T}/ApE" + insinto "/usr/share/${P}" + doins -r "${WORKDIR}"/ApE\ Linux/* + make_desktop_entry ${PN} ${PN} \ + "/usr/share/${P}/Accessory Files/Icons and images/monkey_icon.gif" \ + "Science" +} |