1 |
wired 11/07/03 18:53:24 |
2 |
|
3 |
Added: rxvt-unicode-9.06-case-insensitive-fs.patch |
4 |
macosx-clipboard |
5 |
Log: |
6 |
prefix support |
7 |
|
8 |
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: rxvt-unicode-9.06-case-insensitive-fs.patch |
17 |
=================================================================== |
18 |
Avoid "make: `install' is up to date." on case insensitive filesystems |
19 |
|
20 |
--- Makefile.in |
21 |
+++ Makefile.in |
22 |
@@ -86,3 +86,5 @@ |
23 |
dist: tar.bz2 |
24 |
|
25 |
# ------------------------------------------------------------------------ |
26 |
+ |
27 |
+.PHONY: install |
28 |
|
29 |
|
30 |
|
31 |
1.1 x11-terms/rxvt-unicode/files/macosx-clipboard |
32 |
|
33 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/rxvt-unicode/files/macosx-clipboard?rev=1.1&view=markup |
34 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/rxvt-unicode/files/macosx-clipboard?rev=1.1&content-type=text/plain |
35 |
|
36 |
Index: macosx-clipboard |
37 |
=================================================================== |
38 |
#! perl -w |
39 |
|
40 |
# ---------------------------------------------------------------------- |
41 |
# File: macosx-clipboard |
42 |
# ---------------------------------------------------------------------- |
43 |
# |
44 |
# All portions of code are copyright by their respective author/s. |
45 |
# Copyright (c) 2006 Samuel Ljungkvist <salj@××××××××××××.net> |
46 |
# 2009 Reza Jelveh <reza.jelveh@×××××.com> |
47 |
# |
48 |
# This program is free software; you can redistribute it and/or modify |
49 |
# it under the terms of the GNU General Public License as published by |
50 |
# the Free Software Foundation; either version 2 of the License, or |
51 |
# (at your option) any later version. |
52 |
# |
53 |
# This program is distributed in the hope that it will be useful, |
54 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
55 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
56 |
# GNU General Public License for more details. |
57 |
# |
58 |
# You should have received a copy of the GNU General Public License |
59 |
# along with this program; if not, write to the Free Software |
60 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
61 |
# ---------------------------------------------------------------------- |
62 |
|
63 |
# Usage: |
64 |
|
65 |
# URxvt.perl-ext-common: macosx-clipboard |
66 |
# URxvt.keysym.M-c: perl:macosx-clipboard:copy |
67 |
# URxvt.keysym.M-v: perl:macosx-clipboard:paste |
68 |
|
69 |
use Fcntl (); |
70 |
use Mac::Pasteboard; |
71 |
use locale; |
72 |
use utf8; |
73 |
|
74 |
our($pasteboard); |
75 |
|
76 |
$pasteboard = Mac::Pasteboard->new (); |
77 |
|
78 |
sub copy { |
79 |
my ($self) = @_; |
80 |
|
81 |
$pasteboard->clear (); |
82 |
$pasteboard->copy ($self->selection); |
83 |
() |
84 |
} |
85 |
|
86 |
sub paste { |
87 |
my ($self) = @_; |
88 |
my ($str); |
89 |
|
90 |
$str = $pasteboard->paste(); |
91 |
utf8::decode($str); |
92 |
$self->tt_write($self->locale_encode($str)); |
93 |
() |
94 |
} |
95 |
|
96 |
sub on_user_command { |
97 |
my ($self, $cmd) = @_; |
98 |
|
99 |
if ($cmd eq "macosx-clipboard:copy") { |
100 |
$self->copy; |
101 |
} |
102 |
|
103 |
if ($cmd eq "macosx-clipboard:paste") { |
104 |
$self->paste; |
105 |
} |
106 |
() |
107 |
} |