diff options
-rw-r--r-- | manualPorts/rxvt-unicode/.footprint | 71 | ||||
-rw-r--r-- | manualPorts/rxvt-unicode/.md5sum | 2 | ||||
-rw-r--r-- | manualPorts/rxvt-unicode/.signature | 6 | ||||
-rw-r--r-- | manualPorts/rxvt-unicode/Pkgfile | 32 | ||||
-rw-r--r-- | manualPorts/rxvt-unicode/secondaryWheel.patch | 119 |
5 files changed, 230 insertions, 0 deletions
diff --git a/manualPorts/rxvt-unicode/.footprint b/manualPorts/rxvt-unicode/.footprint new file mode 100644 index 0000000..1eefddd --- /dev/null +++ b/manualPorts/rxvt-unicode/.footprint @@ -0,0 +1,71 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/urxvt +-rwxr-xr-x root/root usr/bin/urxvtc +-rwxr-xr-x root/root usr/bin/urxvtd +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/urxvt/ +drwxr-xr-x root/root usr/lib/urxvt/perl/ +-rw-r--r-- root/root usr/lib/urxvt/perl/background +-rw-r--r-- root/root usr/lib/urxvt/perl/bell-command +-rw-r--r-- root/root usr/lib/urxvt/perl/block-graphics-to-ascii +-rw-r--r-- root/root usr/lib/urxvt/perl/clipboard-osc +-rw-r--r-- root/root usr/lib/urxvt/perl/confirm-paste +-rw-r--r-- root/root usr/lib/urxvt/perl/digital-clock +-rw-r--r-- root/root usr/lib/urxvt/perl/eval +-rw-r--r-- root/root usr/lib/urxvt/perl/example-refresh-hooks +-rw-r--r-- root/root usr/lib/urxvt/perl/keysym-list +-rw-r--r-- root/root usr/lib/urxvt/perl/kuake +-rw-r--r-- root/root usr/lib/urxvt/perl/matcher +-rw-r--r-- root/root usr/lib/urxvt/perl/option-popup +-rw-r--r-- root/root usr/lib/urxvt/perl/overlay-osc +-rw-r--r-- root/root usr/lib/urxvt/perl/readline +-rw-r--r-- root/root usr/lib/urxvt/perl/remote-clipboard +-rw-r--r-- root/root usr/lib/urxvt/perl/searchable-scrollback +-rw-r--r-- root/root usr/lib/urxvt/perl/selection +-rw-r--r-- root/root usr/lib/urxvt/perl/selection-autotransform +-rw-r--r-- root/root usr/lib/urxvt/perl/selection-pastebin +-rw-r--r-- root/root usr/lib/urxvt/perl/selection-popup +-rw-r--r-- root/root usr/lib/urxvt/perl/selection-to-clipboard +-rw-r--r-- root/root usr/lib/urxvt/perl/tabbed +-rw-r--r-- root/root usr/lib/urxvt/perl/urxvt-popup +-rw-r--r-- root/root usr/lib/urxvt/perl/xim-onthespot +-rw-r--r-- root/root usr/lib/urxvt/urxvt.pm +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/urxvt-background.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-bell-command.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-block-graphics-to-ascii.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-clipboard-osc.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-confirm-paste.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-digital-clock.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-eval.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-example-refresh-hooks.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-extensions.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-keysym-list.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-kuake.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-matcher.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-option-popup.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-overlay-osc.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-readline.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-remote-clipboard.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-searchable-scrollback.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-selection-autotransform.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-selection-pastebin.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-selection-popup.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-selection-to-clipboard.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-selection.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-tabbed.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt-xim-onthespot.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvt.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvtc.1.gz +-rw-r--r-- root/root usr/share/man/man1/urxvtd.1.gz +drwxr-xr-x root/root usr/share/man/man3/ +-rw-r--r-- root/root usr/share/man/man3/urxvtperl.3.gz +drwxr-xr-x root/root usr/share/man/man7/ +-rw-r--r-- root/root usr/share/man/man7/urxvt.7.gz +drwxr-xr-x root/root usr/share/terminfo/ +drwxr-xr-x root/root usr/share/terminfo/r/ +-rw-r--r-- root/root usr/share/terminfo/r/rxvt-unicode +-rw-r--r-- root/root usr/share/terminfo/r/rxvt-unicode-256color diff --git a/manualPorts/rxvt-unicode/.md5sum b/manualPorts/rxvt-unicode/.md5sum new file mode 100644 index 0000000..d812b05 --- /dev/null +++ b/manualPorts/rxvt-unicode/.md5sum @@ -0,0 +1,2 @@ +93782dec27494eb079467dacf6e48185 rxvt-unicode-9.22.tar.bz2 +c73b3a470a02da0bf19ad6e9b83d0696 secondaryWheel.patch diff --git a/manualPorts/rxvt-unicode/.signature b/manualPorts/rxvt-unicode/.signature new file mode 100644 index 0000000..6cde571 --- /dev/null +++ b/manualPorts/rxvt-unicode/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/deepthought.pub +RWQxCptPusLGGh+Fz0IeXvc4M/fiJQfWWv/9lcnSRrbewyVKB48+gw9FjPw/9eSFY0hEc+bcoZu4li7eM+i7BMyHBQ8iG8WYlAk= +SHA256 (Pkgfile) = 7bbba3b38a45f474c40f47e23b5ce71912a56a57f8033079f351d791759d28a0 +SHA256 (.footprint) = 217a208c0c8f67bb8b6457c6588ea720bb8b89e073727c34ef861c83df79f1b9 +SHA256 (rxvt-unicode-9.22.tar.bz2) = e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd +SHA256 (secondaryWheel.patch) = 6987ed21b4cb40bebe9dc8725efdd8f8b11e92f14b86a6271865b8e8ca2f2538 diff --git a/manualPorts/rxvt-unicode/Pkgfile b/manualPorts/rxvt-unicode/Pkgfile new file mode 100644 index 0000000..a447046 --- /dev/null +++ b/manualPorts/rxvt-unicode/Pkgfile @@ -0,0 +1,32 @@ +# Description: rxvt fork with unicode and xft support +# URL: http://software.schmorp.de/#rxvt-unicode +# Maintainer: Erich Eckner, crux at eckner dot net +# Contributor: Fredrik Rinnestam, fredrik at crux dot nu +# Depends on: xorg-libxft, xorg-libxpm, perl + +name=rxvt-unicode +version=9.22 +release=1 +source=(http://dist.schmorp.de/$name/Attic/$name-$version.tar.bz2 secondaryWheel.patch) + +build() { + cd $name-$version + + patch -p1 -i ../secondaryWheel.patch + + ./configure --prefix=/usr \ + --enable-utmp \ + --enable-wtmp \ + --enable-transparency \ + --enable-fading \ + --enable-mousewheel \ + --enable-256-color \ + --enable-xft \ + --enable-font-styles \ + --enable-unicode3 + + make + + mkdir -p $PKG/usr/share/terminfo + make TERMINFO=$PKG/usr/share/terminfo DESTDIR=$PKG install +} diff --git a/manualPorts/rxvt-unicode/secondaryWheel.patch b/manualPorts/rxvt-unicode/secondaryWheel.patch new file mode 100644 index 0000000..ebb0e1a --- /dev/null +++ b/manualPorts/rxvt-unicode/secondaryWheel.patch @@ -0,0 +1,119 @@ +diff --git a/doc/rxvt.1.pod b/doc/rxvt.1.pod +index 169e104..4bb13b3 100644 +--- a/doc/rxvt.1.pod ++++ b/doc/rxvt.1.pod +@@ -427,6 +427,11 @@ B<secondaryScreen>. + Turn on/off secondary screen scroll (default enabled); resource + B<secondaryScroll>. + ++=item B<-ssw>|B<+ssw> ++ ++Turn on/off secondary screen wheel support (default disabled); resource ++B<secondaryWheel>. ++ + =item B<-hold>|B<+hold> + + Turn on/off hold window after exit support. If enabled, @@RXVT_NAME@@ +@@ -1044,6 +1049,13 @@ option is enabled, scrolls on the secondary screen will change the + scrollback buffer and, when secondaryScreen is off, switching + to/from the secondary screen will instead scroll the screen up. + ++=item B<secondaryWheel:> I<boolean> ++ ++Turn on/off secondary wheel (default disabled). If enabled, when on ++secondary screen, using the mouse wheel will not scroll in the buffer ++but instead send 3 "fake" keystrokes (Up/Down arrow) to the running ++application (allows e.g. natural scrolling in B<man>, B<less>, etc). ++ + =item B<hold>: I<boolean> + + Turn on/off hold window after exit support. If enabled, @@RXVT_NAME@@ +diff --git a/src/command.C b/src/command.C +index d212764..3b7e266 100644 +--- a/src/command.C ++++ b/src/command.C +@@ -2237,10 +2237,46 @@ rxvt_term::button_release (XButtonEvent &ev) + } + else + # endif ++#ifndef NO_SECONDARY_SCREEN + { +- scr_page (dirn, lines); +- scrollBar.show (1); ++ /* on SECONDARY screen, we send "fake" UP/DOWN keys instead ++ * (this allows to scroll within man, less, etc) */ ++ if (option (Opt_secondaryWheel) && current_screen != PRIMARY) ++ { ++ XKeyEvent event; ++ event.display = ev.display; ++ event.window = ev.window; ++ event.root = ev.root; ++ event.subwindow = ev.subwindow; ++ event.time = ev.time; ++ event.x = ev.x; ++ event.y = ev.y; ++ event.x_root = ev.x_root; ++ event.y_root = ev.y_root; ++ event.same_screen = ev.same_screen; ++ event.state = 0; ++ event.keycode = XKeysymToKeycode(ev.display, ++ (dirn == UP) ? XK_Up : XK_Down); ++ for ( ; lines > 0; --lines) ++ { ++ event.type = KeyPress; ++ XSendEvent (event.display, event.window, True, ++ KeyPressMask, (XEvent *) &event); ++ event.type = KeyRelease; ++ XSendEvent (event.display, event.window, True, ++ KeyPressMask, (XEvent *) &event); ++ } ++ } ++ /* on PRIMARY screen, we scroll in the buffer */ ++ else ++#endif ++ { ++ scr_page (dirn, lines); ++ scrollBar.show (1); ++ } ++#ifndef NO_SECONDARY_SCREEN + } ++#endif + } + break; + #endif +diff --git a/src/optinc.h b/src/optinc.h +index 09f9a26..c79a5be 100644 +--- a/src/optinc.h ++++ b/src/optinc.h +@@ -27,6 +27,7 @@ + def(cursorBlink) + def(secondaryScreen) + def(secondaryScroll) ++ def(secondaryWheel) + def(pastableTabs) + def(cursorUnderline) + #if ENABLE_FRILLS +diff --git a/src/rsinc.h b/src/rsinc.h +index 682322c..6325057 100644 +--- a/src/rsinc.h ++++ b/src/rsinc.h +@@ -104,6 +104,7 @@ + #ifndef NO_SECONDARY_SCREEN + def (secondaryScreen) + def (secondaryScroll) ++ def (secondaryWheel) + #endif + #if OFF_FOCUS_FADING + def (fade) +diff --git a/src/xdefaults.C b/src/xdefaults.C +index 2308844..0f5d2d0 100644 +--- a/src/xdefaults.C ++++ b/src/xdefaults.C +@@ -264,6 +264,7 @@ optList[] = { + #ifndef NO_SECONDARY_SCREEN + BOOL (Rs_secondaryScreen, "secondaryScreen", "ssc", Opt_secondaryScreen, 0, "enable secondary screen"), + BOOL (Rs_secondaryScroll, "secondaryScroll", "ssr", Opt_secondaryScroll, 0, "enable secondary screen scroll"), ++ BOOL (Rs_secondaryWheel, "secondaryWheel", "ssw", Opt_secondaryWheel, 0, "enable secondary screen wheel"), + #endif + #if ENABLE_PERL + RSTRG (Rs_perl_lib, "perl-lib", "string"), //, "colon-separated directories with extension scripts"),TODO |