Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 1998 16:41:48 +0100
From:      Dom Mitchell <dom@myrddin.demon.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7260: port of gxditview
Message-ID:  <E0yvOG4-0000Qi-00.qmail@myrddin.demon.co.uk>

next in thread | raw e-mail | index | archive | help

>Number:         7260
>Category:       ports
>Synopsis:       port of gxditview
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 12 08:50:00 PDT 1998
>Last-Modified:
>Originator:     Dom Mitchell
>Organization:
Big orange angry things, inc.
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

FreeBSD myrddin.demon.co.uk 3.0-CURRENT FreeBSD 3.0-CURRENT #3: Sun Jul  5 15:50:59 BST 1998     root@myrddin.demon.co.uk:/usr/src/sys/compile/MYRDDIN  i386

groff 1.10 (as part of base OS)

>Description:

This port activates a bit of code that is already in our source tree.
It is an X11 previewer for documents formatted by groff.  The port is in
the shar below.

>How-To-Repeat:

cd gxditview && make install

to test:

gzip -dc /usr/share/man/man1/ls.1.gz | groff -X -man

That should pop up a nicely formatted man page on your X display.

>Fix:
	
N/A

# 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:
#
#	gxditview
#	gxditview/Makefile
#	gxditview/pkg
#	gxditview/pkg/COMMENT
#	gxditview/pkg/PLIST
#	gxditview/pkg/DESCR
#	gxditview/scripts
#	gxditview/scripts/pre-configure
#
echo c - gxditview
mkdir -p gxditview > /dev/null 2>&1
echo x - gxditview/Makefile
sed 's/^X//' >gxditview/Makefile << 'END-of-gxditview/Makefile'
X# New ports collection makefile for:   gxditview
X# Version required:     1.10
X# Date created:                24 June 1998
X# Whom:                        Dom Mitchell <dom@myrddin.demon.co.uk>
X#
X# $Id$
X#
X
X# Same version as the contrib groff sources...
XDISTNAME=      gxditview-1.10
XCATEGORIES=    textproc
XDISTFILES=     # none
X
XMAINTAINER=     dom@myrddin.demon.co.uk
X
XUSE_IMAKE=     yes
XWRKSRC=                ${WRKDIR}/${DISTNAME}
X
XGXDVSRC?=      /usr/src/contrib/groff/xditview
X
Xdo-extract:
X	@if [ ! -d ${GXDVSRC} ]; then \
X		${ECHO} "You need the gxditview source in"; \
X		${ECHO} "${GXDVSRC}"; \
X		${ECHO} "to build this port."; \
X	exit 1; \
X	fi
X	@${RM} -rf ${WRKDIR}
X	@${MKDIR} ${WRKSRC}
X	${CP} -rp ${GXDVSRC}/* ${WRKSRC}
X
X.include <bsd.port.mk>
END-of-gxditview/Makefile
echo c - gxditview/pkg
mkdir -p gxditview/pkg > /dev/null 2>&1
echo x - gxditview/pkg/COMMENT
sed 's/^X//' >gxditview/pkg/COMMENT << 'END-of-gxditview/pkg/COMMENT'
XAn X11 based previewer for groff output.
END-of-gxditview/pkg/COMMENT
echo x - gxditview/pkg/PLIST
sed 's/^X//' >gxditview/pkg/PLIST << 'END-of-gxditview/pkg/PLIST'
Xbin/gxditview
Xlib/X11/app-defaults/GXditview
Xman/man1/gxditview.1.gz
END-of-gxditview/pkg/PLIST
echo x - gxditview/pkg/DESCR
sed 's/^X//' >gxditview/pkg/DESCR << 'END-of-gxditview/pkg/DESCR'
XGxditview is a version of xditview that supports groff.  It can be
Xused by adding a -X option to your groff command line.  It creates a
Xpage preview of what will be printed.
X
XNote: to install this as a port, you need to have installed the
Xcontrib source code.
X
X-Dom
Xdom@myrddin.demon.co.uk
END-of-gxditview/pkg/DESCR
echo c - gxditview/scripts
mkdir -p gxditview/scripts > /dev/null 2>&1
echo x - gxditview/scripts/pre-configure
sed 's/^X//' >gxditview/scripts/pre-configure << 'END-of-gxditview/scripts/pre-configure'
X#!/bin/sh
X#
X# Set up the Imakefile correctly for gxditview.
X#
X# $Id$
X#
X
Xcd $WRKSRC
Xsed    -e 's|^GROFF_LIBDIR.*|GROFF_LIBDIR=/usr/share|' \
X       -e 's|^GROFF_FONTDIR.*|GROFF_FONTDIR=/usr/share/groff_font|' \
X       -e 's|^GROFF_FONTPATH.*|GROFF_FONTPATH=.:$(GROFF_FONTDIR)|' \
X       Imakefile > Imakefile.new
Xmv Imakefile.new Imakefile
END-of-gxditview/scripts/pre-configure
exit

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0yvOG4-0000Qi-00.qmail>