aboutsummaryrefslogtreecommitdiff
path: root/textproc/gxditview
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-07-20 03:45:24 +0000
committerSteve Price <steve@FreeBSD.org>1998-07-20 03:45:24 +0000
commitde7418aad0bd36109e9398f2fdb3f7d5e96f435d (patch)
tree78358f031b11ddb8ea24afacdc945b7e684d77dd /textproc/gxditview
parent6d315811e57e6aff1dd05c879cac244a0755e836 (diff)
downloadports-de7418aad0bd36109e9398f2fdb3f7d5e96f435d.tar.gz
ports-de7418aad0bd36109e9398f2fdb3f7d5e96f435d.zip
Port to build gxditview that is part of the base OS' groff code.
PR: 7260 Submitted by: Dom Mitchell <dom@myrddin.demon.co.uk>
Notes
Notes: svn path=/head/; revision=11997
Diffstat (limited to 'textproc/gxditview')
-rw-r--r--textproc/gxditview/Makefile32
-rw-r--r--textproc/gxditview/pkg-comment1
-rw-r--r--textproc/gxditview/pkg-descr9
-rw-r--r--textproc/gxditview/pkg-plist3
-rw-r--r--textproc/gxditview/scripts/pre-configure13
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/gxditview/Makefile b/textproc/gxditview/Makefile
new file mode 100644
index 000000000000..776ba2c55c77
--- /dev/null
+++ b/textproc/gxditview/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: gxditview
+# Version required: 1.10
+# Date created: 24 June 1998
+# Whom: Dom Mitchell <dom@myrddin.demon.co.uk>
+#
+# $Id$
+#
+
+# Same version as the contrib groff sources...
+DISTNAME= gxditview-1.10
+CATEGORIES= textproc
+DISTFILES= # none
+
+MAINTAINER= dom@myrddin.demon.co.uk
+
+USE_IMAKE= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+GXDVSRC?= /usr/src/contrib/groff/xditview
+
+do-extract:
+ @if [ ! -d ${GXDVSRC} ]; then \
+ ${ECHO} "You need the gxditview source in"; \
+ ${ECHO} "${GXDVSRC}"; \
+ ${ECHO} "to build this port."; \
+ exit 1; \
+ fi
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKSRC}
+ ${CP} -rp ${GXDVSRC}/* ${WRKSRC}
+
+.include <bsd.port.mk>
diff --git a/textproc/gxditview/pkg-comment b/textproc/gxditview/pkg-comment
new file mode 100644
index 000000000000..6befbeb2e0ca
--- /dev/null
+++ b/textproc/gxditview/pkg-comment
@@ -0,0 +1 @@
+An X11 based previewer for groff output.
diff --git a/textproc/gxditview/pkg-descr b/textproc/gxditview/pkg-descr
new file mode 100644
index 000000000000..6e88886a7cfd
--- /dev/null
+++ b/textproc/gxditview/pkg-descr
@@ -0,0 +1,9 @@
+Gxditview is a version of xditview that supports groff. It can be
+used by adding a -X option to your groff command line. It creates a
+page preview of what will be printed.
+
+Note: to install this as a port, you need to have installed the
+contrib source code.
+
+-Dom
+dom@myrddin.demon.co.uk
diff --git a/textproc/gxditview/pkg-plist b/textproc/gxditview/pkg-plist
new file mode 100644
index 000000000000..17e3d7cd45b5
--- /dev/null
+++ b/textproc/gxditview/pkg-plist
@@ -0,0 +1,3 @@
+bin/gxditview
+lib/X11/app-defaults/GXditview
+man/man1/gxditview.1.gz
diff --git a/textproc/gxditview/scripts/pre-configure b/textproc/gxditview/scripts/pre-configure
new file mode 100644
index 000000000000..be4c2b82bebf
--- /dev/null
+++ b/textproc/gxditview/scripts/pre-configure
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# Set up the Imakefile correctly for gxditview.
+#
+# $Id$
+#
+
+cd $WRKSRC
+sed -e 's|^GROFF_LIBDIR.*|GROFF_LIBDIR=/usr/share|' \
+ -e 's|^GROFF_FONTDIR.*|GROFF_FONTDIR=/usr/share/groff_font|' \
+ -e 's|^GROFF_FONTPATH.*|GROFF_FONTPATH=.:$(GROFF_FONTDIR)|' \
+ Imakefile > Imakefile.new
+mv Imakefile.new Imakefile