Date: Wed, 6 Oct 2004 03:51:49 +0200 (CEST) From: Jean-Yves Lefort <jylefort@brutele.be> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/72369: New port: shells/viewglob, a GTK+ add-on to bash and zsh Message-ID: <20041006015149.F3D9822E09@jsite.lefort.net> Resent-Message-ID: <200410060200.i9620m5N053746@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72369 >Category: ports >Synopsis: New port: shells/viewglob, a GTK+ add-on to bash and zsh >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 06 02:00:47 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jean-Yves Lefort >Release: FreeBSD 5.3-BETA6 i386 >Organization: >Environment: System: FreeBSD jsite.lefort.net 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Tue Sep 28 00:10:28 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386 >Description: Original and handy tool. Have fun. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # viewglob # viewglob/pkg-plist # viewglob/pkg-descr # viewglob/files # viewglob/files/patch-src::Makefile.in # viewglob/files/patch-src::ptutil.viewglob.c # viewglob/Makefile # viewglob/distinfo # echo c - viewglob mkdir -p viewglob > /dev/null 2>&1 echo x - viewglob/pkg-plist sed 's/^X//' >viewglob/pkg-plist << 'END-of-viewglob/pkg-plist' Xbin/gviewglob Xbin/viewglob Xlib/viewglob/.zshrc Xlib/viewglob/getopt.sh Xlib/viewglob/glob-expand Xlib/viewglob/gviewglob Xlib/viewglob/init-viewglob.bashrc Xlib/viewglob/seer X@dirrm lib/viewglob END-of-viewglob/pkg-plist echo x - viewglob/pkg-descr sed 's/^X//' >viewglob/pkg-descr << 'END-of-viewglob/pkg-descr' Xviewglob is an utility designed to complement the Unix shell in Xgraphical environments. It has two parts: X X 1. A tool that sits as a layer between the shell and X terminal, X keeping track of the user's current directory and command line. X 2. A graphical display which shows the layouts of directories X referenced on the command line (including pwd). X XThe display reveals the results of file globs and expansions as they Xare typed (hence the name), highlighting selected files and potential Xname completions. X XIt can also be used as a surrogate terminal, where keystrokes typed in Xthe display are passed to the shell. Files and directories can be Xdouble-clicked to insert their names and/or paths into the terminal. X XWWW: http://viewglob.sourceforge.net/ X X- Jean-Yves Lefort Xjylefort@brutele.be END-of-viewglob/pkg-descr echo c - viewglob/files mkdir -p viewglob/files > /dev/null 2>&1 echo x - viewglob/files/patch-src::Makefile.in sed 's/^X//' >viewglob/files/patch-src::Makefile.in << 'END-of-viewglob/files/patch-src::Makefile.in' X--- src/Makefile.in.orig Wed Oct 6 03:23:40 2004 X+++ src/Makefile.in Wed Oct 6 03:29:02 2004 X@@ -91,8 +91,6 @@ X # Very slight modifications to these files from Marc J. Rochkind's X # book Advanced Unix Programming 2nd ed. You can get them on the X # web at: http://www.basepath.com/aup/ X-BUILT_SOURCES = ptutil.viewglob.c ptutil.viewglob.h \ X- tc_setraw.viewglob.c tc_setraw.viewglob.h X X X CLEANFILES = viewglob .zshrc getopt.sh ptutil.viewglob.c \ X@@ -484,16 +482,16 @@ X X .zshrc: Makefile X cp -f init-viewglob.zshrc .zshrc X-ptutil.viewglob.c: Makefile X+ptutil.viewglob.c: X rm -f ptutil.viewglob.c X patch -i ptutil.c.diff -o ptutil.viewglob.c ptutil.c X-ptutil.viewglob.h: Makefile X+ptutil.viewglob.h: X rm -f ptutil.viewglob.h X patch -i ptutil.h.diff -o ptutil.viewglob.h ptutil.h X-tc_setraw.viewglob.c: Makefile X+tc_setraw.viewglob.c: X rm -f tc_setraw.viewglob.c X patch -i tc_setraw.c.diff -o tc_setraw.viewglob.c tc_setraw.c X-tc_setraw.viewglob.h: Makefile X+tc_setraw.viewglob.h: X rm -f tc_setraw.viewglob.h X patch -i tc_setraw.h.diff -o tc_setraw.viewglob.h tc_setraw.h X END-of-viewglob/files/patch-src::Makefile.in echo x - viewglob/files/patch-src::ptutil.viewglob.c sed 's/^X//' >viewglob/files/patch-src::ptutil.viewglob.c << 'END-of-viewglob/files/patch-src::ptutil.viewglob.c' X--- src/ptutil.viewglob.c.orig Wed Oct 6 03:34:54 2004 X+++ src/ptutil.viewglob.c Wed Oct 6 03:47:51 2004 X@@ -45,7 +45,6 @@ X #endif X /*[incl]*/ X #ifdef _XOPEN_UNIX X-#include <stropts.h> /* for STREAMS */ X #endif X #ifdef NEED_TIOCSCTTY X #include <sys/ttycom.h> /* for TIOCSCTTY */ X@@ -73,14 +72,9 @@ X static bool find_and_open_master(PTINFO *p) X { X #if defined(_XOPEN_UNIX) X-#if _XOPEN_VERSION >= 600 X p->pt_name_m[0] = '\0'; /* don't know or need name */ X- ec_neg1( p->pt_fd_m = posix_openpt(O_RDWR | O_NOCTTY) ) X-#else X- strcpy(p->pt_name_m, "/dev/ptmx"); /* clone device */ X- if ( (p->pt_fd_m = open(p->pt_name_m, O_RDWR)) == -1) X- goto failure; X-#endif X+ if ((p->pt_fd_m = posix_openpt(O_RDWR | O_NOCTTY)) == -1) X+ return false; X #elif defined(MASTER_NAME_SEARCH) X int i, j; X char proto[] = PTY_PROTO; END-of-viewglob/files/patch-src::ptutil.viewglob.c echo x - viewglob/Makefile sed 's/^X//' >viewglob/Makefile << 'END-of-viewglob/Makefile' X# New ports collection makefile for: viewglob X# Date created: 06 Oct 2004 X# Whom: Jean-Yves Lefort <jylefort@brutele.be> X# X# $FreeBSD$ X# X XPORTNAME= viewglob XPORTVERSION= 1.0 XCATEGORIES= shells XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} X XMAINTAINER= jylefort@brutele.be XCOMMENT= A GTK+ add-on to bash and zsh X XBUILD_DEPENDS= bash:${PORTSDIR}/shells/bash XRUN_DEPENDS= bash:${PORTSDIR}/shells/bash X XUSE_X_PREFIX= yes XUSE_GNOME= gtk20 XGNU_CONFIGURE= yes X XMAN1= gviewglob.1 viewglob.1 X Xpost-extract: X @${CP} ${WRKSRC}/src/tc_setraw.h ${WRKSRC}/src/tc_setraw.viewglob.h X @${CP} ${WRKSRC}/src/ptutil.h ${WRKSRC}/src/ptutil.viewglob.h X X.include <bsd.port.mk> END-of-viewglob/Makefile echo x - viewglob/distinfo sed 's/^X//' >viewglob/distinfo << 'END-of-viewglob/distinfo' XMD5 (viewglob-1.0.tar.gz) = 99910845070a03f5d9e925564141fa7c XSIZE (viewglob-1.0.tar.gz) = 197543 END-of-viewglob/distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041006015149.F3D9822E09>