diff options
author | B. Watson <yalhcru@gmail.com> | 2020-06-26 14:04:22 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-28 08:16:53 +0700 |
commit | 110dd65648828931fc7e0931463058a6d3febaae (patch) | |
tree | 93306c699f7617861c3adeeef2ecaf4a33aa7305 | |
parent | 1d9e055fedb3070236e078db8d88f1ecb2f602cb (diff) |
accessibility/xzoom: Added (magnify part of X display)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | accessibility/xzoom/README | 16 | ||||
-rw-r--r-- | accessibility/xzoom/doinst.sh | 3 | ||||
-rw-r--r-- | accessibility/xzoom/fixmanpage.diff | 89 | ||||
-rw-r--r-- | accessibility/xzoom/slack-desc | 19 | ||||
-rw-r--r-- | accessibility/xzoom/xzoom.SlackBuild | 98 | ||||
-rw-r--r-- | accessibility/xzoom/xzoom.info | 12 |
6 files changed, 237 insertions, 0 deletions
diff --git a/accessibility/xzoom/README b/accessibility/xzoom/README new file mode 100644 index 0000000000000..09e504084d11b --- /dev/null +++ b/accessibility/xzoom/README @@ -0,0 +1,16 @@ +xzoom (magnify part of X display, with real-time updates) + +Like xmag, xzoom magnifies a section of the X display. Xzoom is +different because it will continuously update the magnified area as +the display changes. It is fast enough to enlarge small animations, +for example. It can also mirror or rotate a part of the screen. + +Xzoom displays in its window a magnified area of the X11 display. The +user can interactively change the zoomed area, the window size, +magnification (optionally different magnification for X and Y axes) or +rotate or mirror the image. See the man page for the list of keyboard +and mouse commands. + +If you don't like the "rubber-band" frame xzoom uses when dragging with +the mouse, you can disable it by exporting FRAME=no in the script's +environment (sorry, it's a compile-time option only). diff --git a/accessibility/xzoom/doinst.sh b/accessibility/xzoom/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/accessibility/xzoom/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/accessibility/xzoom/fixmanpage.diff b/accessibility/xzoom/fixmanpage.diff new file mode 100644 index 0000000000000..b0f11620e54b3 --- /dev/null +++ b/accessibility/xzoom/fixmanpage.diff @@ -0,0 +1,89 @@ +diff -Naur xzoom-0.3.orig/debian/manpage/xzoom.1 xzoom-0.3.orig.patched/debian/manpage/xzoom.1 +--- xzoom-0.3.orig/debian/manpage/xzoom.1 2020-06-22 18:56:07.000000000 -0400 ++++ xzoom-0.3.orig.patched/debian/manpage/xzoom.1 2020-06-24 02:07:37.340848752 -0400 +@@ -1,5 +1,5 @@ + .\" Text automatically generated by txt2man +-.TH xzoom 1 "22 Jun 2020" "xzoom-0.3-26" "magnify part of X display" ++.TH xzoom 1 "24 Jun 2020" "xzoom-0.3-26" "magnify part of X display" + .SH NAME + \fBxzoom \fP- magnify part of X display, with real-time updates + \fB +@@ -23,7 +23,7 @@ + (optionally different \fImagnification\fP for X and Y axes) or rotate or mirror + the image. + .PP +-Use commands to change rotation, zoom or mirror the image. ++Use COMMANDS (see below) to change rotation, zoom, or mirror the image. + .SH OPTIONS + .TP + .B +@@ -33,16 +33,16 @@ + .B + \fB-mag\fP <\fImagnification\fP [ \fImagnification\fP ]> + What \fImagnification\fP to use. If two +-number arguments are supplied the first is used for X magnications and the ++number arguments are supplied the first is used for X magnication and the + second is used for Y \fImagnification\fP. Magnification should be greater than 0. + .TP + .B + \fB-geometry\fP <geometry> +-Size and position \fBxzoom\fP's window. ++Size and position of \fBxzoom\fP's window. + .TP + .B + \fB-source\fP <geometry> +-Size and position the initial source area which is ++Size and position of the initial source area which is + magnified. The dimensions of this area are multiplied by the \fImagnification\fP + to get the size of \fBxzoom\fP's window. If these dimensions are given separately + (by use of \fB-geometry\fP) then an error is reported. +@@ -82,11 +82,11 @@ + .TP + .B + w +-Next '+' or '-' only change width scaling. ++Next '+' or '-' only changes width scaling. + .TP + .B + h +-Next '+' or '-' only change height scaling. ++Next '+' or '-' only changes height scaling. + .TP + .B + d +@@ -100,7 +100,7 @@ + .B + Arrow keys + Scroll the zoomed area 1 pixel in the direction of the arrow. +-if the control key is pressed the zoomed area will scroll 10 ++If the control key is pressed the zoomed area will scroll 10 + pixels. + .TP + .B +@@ -109,7 +109,7 @@ + button inside \fBxzoom\fP's window and then move it (keep the button + pressed) to the place which you want to see magnified. + .PP +-Xzoom allow you to resize it's window at any time. ++Xzoom allows you to resize its window at any time. + .PP + When \fBxzoom\fP is iconified it simply waits to get deiconified. + .SH EXAMPLES +@@ -120,14 +120,14 @@ + .TP + .B + \fBxzoom\fP \fB-mag\fP 2 \fB-geometry\fP 800x400 +-# Open \fBxzoom\fP with \fImagnification\fP 2 and windows size 800x400. ++# Open \fBxzoom\fP with \fImagnification\fP 2 and window size 800x400. + .TP + .B + \fBxzoom\fP -\fIx\fP + # Open display flipping right and left. + .SH SEE ALSO +-\fBxmag\fP(1), \fBxzoom\fP help page. ++\fBxmag\fP(1) + .SH AUTHORS + \fBxzoom\fP was written by Itai Nahshon. + .PP +-This manual page was written by Daniel Lenharo de Souza <lenharo@debian.org> for the Debian project (but may be used by others). ++This manual page was written by Daniel Lenharo de Souza <lenharo@debian.org> for the Debian project (but may be used by others). It was cleaned up slightly by B. Watson <yalhcru@gmail.com> for the SlackBuilds.org project. diff --git a/accessibility/xzoom/slack-desc b/accessibility/xzoom/slack-desc new file mode 100644 index 0000000000000..267b67ec762a7 --- /dev/null +++ b/accessibility/xzoom/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +xzoom: xzoom (magnify part of X display, with real-time updates) +xzoom: +xzoom: Like xmag, xzoom magnifies a section of the X display. Xzoom is +xzoom: different because it will continuously update the magnified area as +xzoom: the display changes. It is fast enough to enlarge small animations, +xzoom: for example. +xzoom: +xzoom: It can also mirror or rotate a part of the screen. +xzoom: +xzoom: +xzoom: diff --git a/accessibility/xzoom/xzoom.SlackBuild b/accessibility/xzoom/xzoom.SlackBuild new file mode 100644 index 0000000000000..c123de8281149 --- /dev/null +++ b/accessibility/xzoom/xzoom.SlackBuild @@ -0,0 +1,98 @@ +#!/bin/sh + +# Slackware build script for xzoom + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# The _26 is the Debian patchlevel. They've done a lot to this, such as +# support for >8bpp displays... since it's the future now, everyone's +# using 24/32bpp, so the Debian maintainers rescued xzoom from the +# scrap heap. Thanks! + +PRGNAM=xzoom +VERSION=${VERSION:-0.3_26} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ORIGVER="$( echo $VERSION | cut -d_ -f1 )" +DEBVER="$( echo $VERSION | cut -d_ -f2 )" + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$ORIGVER.orig +tar xvf $CWD/${PRGNAM}_$ORIGVER.orig.tar.gz +cd $PRGNAM-$ORIGVER.orig +tar xvf $CWD/${PRGNAM}_$ORIGVER-$DEBVER.debian.tar.xz +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +# Apply Debian's patches, since they're our real upstream. +for i in $( cat debian/patches/series ); do + patch -p1 < debian/patches/$i +done + +# Fix a few typo/grammar issues. +patch -p1 < $CWD/fixmanpage.diff + +# Avoid warnings about alarm() and usleep() missing prototypes. +sed -i '1i#include <unistd.h>' $PRGNAM.c + +# Allow turning off the frame at compile time. +[ "${FRAME:-yes}" = "no" ] && sed -i '/^DEFINES/s,-DFRAME ,,' Imakefile + +xmkmf +make CDEBUGFLAGS="$SLKCFLAGS" + +mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/share/applications +install -s -m0755 $PRGNAM $PKG/usr/bin + +gzip -9c < debian/manpage/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz + +# Not too sure about the icon. It's system-search, which doesn't even +# exist in the default (hicolor) icon theme on Slackware. Not a huge +# deal I suppose. +cat debian/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a debian/changelog README $PRGNAM.lsm $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/accessibility/xzoom/xzoom.info b/accessibility/xzoom/xzoom.info new file mode 100644 index 0000000000000..bf947084e1a99 --- /dev/null +++ b/accessibility/xzoom/xzoom.info @@ -0,0 +1,12 @@ +PRGNAM="xzoom" +VERSION="0.3_26" +HOMEPAGE="https://packages.debian.org/sid/xzoom" +DOWNLOAD="http://deb.debian.org/debian/pool/main/x/xzoom/xzoom_0.3.orig.tar.gz \ + http://deb.debian.org/debian/pool/main/x/xzoom/xzoom_0.3-26.debian.tar.xz" +MD5SUM="4393017fcca4983313a018bbe41dc696 \ + c9b1c1f57848ac4c114214d65291cd4b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" |