Gentoo Archives: gentoo-commits

From: "Jeffrey Gardner (je_fro)" <je_fro@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/ApE: ChangeLog ApE-2.0.7-r1.ebuild
Date: Mon, 31 Dec 2012 18:16:16
Message-Id: 20121231181606.56D232171D@flycatcher.gentoo.org
1 je_fro 12/12/31 18:16:06
2
3 Modified: ChangeLog
4 Added: ApE-2.0.7-r1.ebuild
5 Log:
6 Forward command line arguments to ApE startup script, thanks to Markus Meier in bug #375919
7
8 (Portage version: 2.1.11.38/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.9 sci-biology/ApE/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ApE/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ApE/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ApE/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-biology/ApE/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 25 Apr 2012 08:38:13 -0000 1.8
24 +++ ChangeLog 31 Dec 2012 18:16:06 -0000 1.9
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-biology/ApE
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/ApE/ChangeLog,v 1.8 2012/04/25 08:38:13 je_fro Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/ApE/ChangeLog,v 1.9 2012/12/31 18:16:06 je_fro Exp $
30 +
31 +*ApE-2.0.7-r1 (31 Dec 2012)
32 +
33 + 31 Dec 2012; Jeff Gardner <je_fro@g.o> +ApE-2.0.7-r1.ebuild:
34 + Forward command line arguments to ApE startup script, thanks to Markus Meier
35 + in bug #375919
36
37 25 Apr 2012; Jeff Gardner <je_fro@g.o> ApE-2.0.7.ebuild:
38 Fix SRC_URI thanks to Horea Christian in bug #405367.
39
40
41
42 1.1 sci-biology/ApE/ApE-2.0.7-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ApE/ApE-2.0.7-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/ApE/ApE-2.0.7-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ApE-2.0.7-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-biology/ApE/ApE-2.0.7-r1.ebuild,v 1.1 2012/12/31 18:16:06 je_fro Exp $
52
53 EAPI=2
54 inherit eutils
55
56 DESCRIPTION="ApE - A Plasmid Editor"
57 HOMEPAGE="http://www.biology.utah.edu/jorgensen/wayned/ape/"
58 SRC_URI="http://www.biology.utah.edu/jorgensen/wayned/ape/Download/Linux/ApE_linux_current.zip -> ${P}.zip"
59
60 LICENSE="ApE"
61 RESTRICT="mirror"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE=""
65
66 DEPEND="app-arch/unzip"
67 RDEPEND="dev-lang/tcl
68 dev-lang/tk"
69
70 src_compile() {
71 echo
72 einfo "Nothing to compile."
73 echo
74 }
75
76 src_install() {
77
78 cat >> "${T}/ApE" << "EOF"
79 #!/bin/bash
80 cmdArgs=""
81
82 # AppMain.tcl searches files relative to the directory where it resides.
83 # Add absolute path to file here, if necessary.
84 for rfpath in "$@"; do
85 afpath="$PWD/${rfpath}"
86 if test -r "${afpath}"; then
87 cmdArgs="${cmdArgs} \"${afpath}\"";
88 else
89 cmdArgs="${cmdArgs} \"${rfpath}\"";
90 fi
91 done
92
93 eval exec tclsh "\"/usr/share/ApE-2.0.7/AppMain.tcl\"" "${cmdArgs}"
94 EOF
95
96 exeinto /usr/bin
97 doexe "${T}/ApE"
98 insinto "/usr/share/${P}"
99 doins -r "${WORKDIR}"/ApE\ Linux/*
100 make_desktop_entry ${PN} \
101 ApE \
102 "/usr/share/${P}/Accessory Files/Icons and images/monkey_icon.gif" \
103 "Application;Graphics;Science"
104 }