From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-video/pgcedit/files: pgcedit-0.8.6-config-paths.patch pgcedit.png |
Date: | Mon, 31 Dec 2012 00:46:17 |
Message-Id: | 20121231004607.779CE2171E@flycatcher.gentoo.org |
1 | vapier 12/12/31 00:46:07 |
2 | |
3 | Added: pgcedit-0.8.6-config-paths.patch pgcedit.png |
4 | Log: |
5 | Initial ebuild partially based on one in Sunrise #213937 by Juan Aguado. |
6 | |
7 | (Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: pgcedit-0.8.6-config-paths.patch |
16 | =================================================================== |
17 | --- a/PgcEdit_main.tcl |
18 | +++ b/PgcEdit_main.tcl |
19 | @@ -1456,9 +1456,9 @@ |
20 | catch {file delete $::config(bindir)} |
21 | } |
22 | } else { |
23 | - set config(apppath) [file dirname $scriptname] |
24 | - set ::config(bindir) [file join [file dirname $scriptname] "bin"] |
25 | - set ::config(plugindir) [file join [file dirname $scriptname] "plugins"] |
26 | + set config(apppath) {/usr/share/pgcedit} |
27 | + set ::config(bindir) "$config(apppath)/bin" |
28 | + set ::config(plugindir) "$config(apppath)/plugins" |
29 | |
30 | if {! [file exists $::config(tempdir)]} { |
31 | set ::config(tempdir) "/tmp" |
32 | --- a/lib/main.tcl |
33 | +++ b/lib/main.tcl |
34 | @@ -4674,7 +4674,7 @@ |
35 | } |
36 | |
37 | proc display_doc {} { |
38 | - set rootpath [file dirname $::config(bindir)] |
39 | + set rootpath "@DOCDIR@" |
40 | set filename "" |
41 | if {$::tcl_platform(platform) == "windows"} { |
42 | if {[file exists [file join $rootpath "PgcEdit_Manual.chm"]]} { |
43 | |
44 | |
45 | |
46 | 1.1 media-video/pgcedit/files/pgcedit.png |
47 | |
48 | <<Binary file>> |