mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Add manedit 0.4.h, a UNIX manual page editor and viewer.
Sponsored by: Francisco Reyes <fjrm@yahoo.com>
This commit is contained in:
parent
ae14eabf0e
commit
e557e7d7cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38501
15 changed files with 306 additions and 0 deletions
|
@ -62,6 +62,7 @@
|
||||||
SUBDIR += le
|
SUBDIR += le
|
||||||
SUBDIR += leim20
|
SUBDIR += leim20
|
||||||
SUBDIR += lpe
|
SUBDIR += lpe
|
||||||
|
SUBDIR += manedit
|
||||||
SUBDIR += moleskine
|
SUBDIR += moleskine
|
||||||
SUBDIR += muggy
|
SUBDIR += muggy
|
||||||
SUBDIR += mule
|
SUBDIR += mule
|
||||||
|
|
31
editors/manedit/Makefile
Normal file
31
editors/manedit/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# New ports collection makefile for: manedit
|
||||||
|
# Date created: 9 February 2001
|
||||||
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= manedit
|
||||||
|
PORTVERSION= 0.4.h
|
||||||
|
CATEGORIES= editors
|
||||||
|
MASTER_SITES= ftp://fox.mit.edu/pub/xsw/
|
||||||
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.h/h/}
|
||||||
|
EXTRACT_SUFX= .tgz
|
||||||
|
|
||||||
|
MAINTAINER= sobomax@FreeBSD.org
|
||||||
|
|
||||||
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
|
||||||
|
|
||||||
|
USE_X_PREFIX= yes
|
||||||
|
USE_GTK= yes
|
||||||
|
|
||||||
|
MAN1= manedit.1
|
||||||
|
|
||||||
|
pre-patch:
|
||||||
|
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
|
||||||
|
xargs ${PERL} -pi -e 's|malloc\.h|stdlib.h|g'
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${INSTALL_SCRIPT} ${FILESDIR}/manwrap.sh ${PREFIX}/bin/manwrap
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
editors/manedit/distinfo
Normal file
1
editors/manedit/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (manedit0.4h.tgz) = 7aa6bf57705f3a8b21fc5d45ff654a4f
|
26
editors/manedit/files/manwrap.sh
Normal file
26
editors/manedit/files/manwrap.sh
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# A simple script to make man(1) behaviour more gnu'ish.
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ x"${1}" = x"" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "${1}" ]; then
|
||||||
|
COMPRESSED=`/usr/bin/file "${1}" | /usr/bin/grep "gzip compressed data"`
|
||||||
|
CAT_CMD=/bin/cat
|
||||||
|
if [ x"${COMPRESSED}" != x"" ]; then
|
||||||
|
CAT_CMD=/usr/bin/gzcat
|
||||||
|
fi
|
||||||
|
${CAT_CMD} "${1}" | /usr/bin/nroff -mandoc
|
||||||
|
else
|
||||||
|
/usr/bin/man -P "/bin/cat" "${@}" 2>/dev/null
|
||||||
|
ERRCODE=${?}
|
||||||
|
if [ ${ERRCODE} != 0 ]; then
|
||||||
|
/bin/echo "No such manpage!" >&2
|
||||||
|
exit ${ERRCODE}
|
||||||
|
fi
|
||||||
|
fi
|
23
editors/manedit/files/patch-..::include::os.h
Normal file
23
editors/manedit/files/patch-..::include::os.h
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- ../include/os.h.orig Fri Feb 9 02:18:26 2001
|
||||||
|
+++ ../include/os.h Fri Feb 9 12:23:54 2001
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
|
-#ifdef __linux__
|
||||||
|
+#if defined(__linux__) && defined(__FreeBSD__)
|
||||||
|
# include <paths.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@
|
||||||
|
# define _PATH_DEVNULL "/dev/null"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#ifndef _AIX
|
||||||
|
+#if !defined(_AIX) && !defined(__FreeBSD__)
|
||||||
|
# ifndef _PATH_MAILDIR
|
||||||
|
# define _PATH_MAILDIR "/var/spool/mail"
|
||||||
|
# endif
|
20
editors/manedit/files/patch-..::include::xsw_ctype.h
Normal file
20
editors/manedit/files/patch-..::include::xsw_ctype.h
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- ../include/xsw_ctype.h.orig Fri Feb 9 02:18:26 2001
|
||||||
|
+++ ../include/xsw_ctype.h Fri Feb 9 12:40:01 2001
|
||||||
|
@@ -1,6 +1,7 @@
|
||||||
|
// xsw_ctype.h
|
||||||
|
// This is intended as a prototype for files using the global/ctype.cpp file.
|
||||||
|
|
||||||
|
+#ifndef __FreeBSD__
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
|
||||||
|
extern bool isblank(char c);
|
||||||
|
@@ -11,5 +12,6 @@
|
||||||
|
extern int isblank( int );
|
||||||
|
|
||||||
|
#endif // __cplusplus || c_plusplus
|
||||||
|
+#endif // __FreeBSD__
|
||||||
|
|
||||||
|
extern void ctype_dummy_func();
|
64
editors/manedit/files/patch-Makefile
Normal file
64
editors/manedit/files/patch-Makefile
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- Makefile.orig Fri Feb 9 02:18:25 2001
|
||||||
|
+++ Makefile Fri Feb 9 15:41:52 2001
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
# You may modify any value as needed. Change only the ones you are
|
||||||
|
# absolutly sure that requires modification.
|
||||||
|
#
|
||||||
|
-PREFIX = /usr
|
||||||
|
+PREFIX ?= /usr
|
||||||
|
|
||||||
|
|
||||||
|
# ########################################################################
|
||||||
|
@@ -49,7 +49,9 @@
|
||||||
|
# to debug the program.
|
||||||
|
#
|
||||||
|
#CFLAGS = `gtk-config --cflags` -g -efence -Wall
|
||||||
|
-CFLAGS = `gtk-config --cflags` -O2 -Wall
|
||||||
|
+GTK_CFLAGS != $(GTK_CONFIG) --cflags
|
||||||
|
+CFLAGS += $(GTK_CFLAGS) -Wall -DPREFIX=\"$(PREFIX)\" \
|
||||||
|
+ -DLOCALBASE=\"$(LOCALBASE)\" -DX11BASE=\"$(X11BASE)\"
|
||||||
|
|
||||||
|
CPPFLAGS = -D__cplusplus -Dc_plusplus
|
||||||
|
|
||||||
|
@@ -65,7 +67,7 @@
|
||||||
|
# to the LIB line depending on what you have set in the CFLAGS line
|
||||||
|
# farther above.
|
||||||
|
#
|
||||||
|
-LIB = `gtk-config --libs`
|
||||||
|
+LIB != $(GTK_CONFIG) --libs
|
||||||
|
|
||||||
|
# Library Directories:
|
||||||
|
#
|
||||||
|
@@ -95,9 +97,10 @@
|
||||||
|
#
|
||||||
|
include Makefile.srclist
|
||||||
|
|
||||||
|
-CC = gcc
|
||||||
|
-CPP = g++
|
||||||
|
+CC ?= gcc
|
||||||
|
+CPP = $(CXX)
|
||||||
|
BIN = manedit
|
||||||
|
+SED ?= sed
|
||||||
|
OBJ_C = $(SRC_C:.c=.o)
|
||||||
|
OBJ_CPP = $(SRC_CPP:.cpp=.o)
|
||||||
|
.c.o:
|
||||||
|
@@ -112,7 +115,7 @@
|
||||||
|
$(BIN): $(OBJ_C) $(OBJ_CPP)
|
||||||
|
$(CC) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIB) $(LIB_DIR)
|
||||||
|
|
||||||
|
-all: $(BIN)
|
||||||
|
+all: $(BIN) $(BIN).1.out
|
||||||
|
|
||||||
|
|
||||||
|
# ########################################################################
|
||||||
|
@@ -129,5 +132,7 @@
|
||||||
|
clean:
|
||||||
|
rm -f a.out core *.o
|
||||||
|
|
||||||
|
+$(BIN).1.out: $(BIN).1
|
||||||
|
+ $(SED) 's|%%PREFIX%%|$(PREFIX)|g' $(BIN).1 > $(BIN).1.out
|
||||||
|
|
||||||
|
# ########################################################################
|
39
editors/manedit/files/patch-Makefile.install.UNIX
Normal file
39
editors/manedit/files/patch-Makefile.install.UNIX
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- Makefile.install.UNIX.orig Fri Feb 9 02:18:25 2001
|
||||||
|
+++ Makefile.install.UNIX Fri Feb 9 15:42:27 2001
|
||||||
|
@@ -28,27 +28,27 @@
|
||||||
|
|
||||||
|
|
||||||
|
BIN_DIR = $(PREFIX)/bin
|
||||||
|
-ICONS_DIR = $(PREFIX)/share/icons
|
||||||
|
+ICONS_DIR = $(PREFIX)/share/$(BIN)/icons
|
||||||
|
DATA_DIR = $(PREFIX)/share/$(BIN)
|
||||||
|
MAN_DIR = $(PREFIX)/man/man1
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(BIN_DIR)
|
||||||
|
- $(INSTALL) $(INSTBINFLAGS) $(BIN) $(BIN_DIR)
|
||||||
|
+ $(BSD_INSTALL_PROGRAM) $(BIN) $(BIN_DIR)
|
||||||
|
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(DATA_DIR)
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(DATA_DIR)/help
|
||||||
|
- $(COPY) $(COPYFLAGS) help/* $(DATA_DIR)/help
|
||||||
|
+ $(BSD_INSTALL_DATA) help/* $(DATA_DIR)/help
|
||||||
|
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(DATA_DIR)
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(DATA_DIR)/templates
|
||||||
|
- $(COPY) $(COPYFLAGS) templates/* $(DATA_DIR)/templates
|
||||||
|
+ $(BSD_INSTALL_DATA) templates/* $(DATA_DIR)/templates
|
||||||
|
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(MAN_DIR)
|
||||||
|
- $(INSTALL) $(INSTMANFLAGS) $(BIN).1 $(MAN_DIR)
|
||||||
|
+ $(BSD_INSTALL_MAN) $(BIN).1.out $(MAN_DIR)/$(BIN).1
|
||||||
|
|
||||||
|
$(MKDIR) $(MKDIRFLAGS) $(ICONS_DIR)
|
||||||
|
- $(INSTALL) $(INSTDATFLAGS) $(BIN).xpm $(ICONS_DIR)
|
||||||
|
+ $(BSD_INSTALL_DATA) $(BIN).xpm $(ICONS_DIR)
|
||||||
|
|
||||||
|
@echo "-------------------------------------------------------------------------"
|
||||||
|
@echo "Program $(BIN) installed in:"
|
23
editors/manedit/files/patch-config.h
Normal file
23
editors/manedit/files/patch-config.h
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- config.h.orig Mon Feb 19 12:58:51 2001
|
||||||
|
+++ config.h Mon Feb 19 19:56:21 2001
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
/*
|
||||||
|
* ManEdit global directory:
|
||||||
|
*/
|
||||||
|
-#define MEDIT_GLOBAL_DIR "/usr/share/manedit"
|
||||||
|
+#define MEDIT_GLOBAL_DIR PREFIX"/share/manedit"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Manual page help sub directory (MEDIT_GLOBAL_DIR will
|
||||||
|
@@ -101,7 +101,7 @@
|
||||||
|
* %f = filename
|
||||||
|
* %p = optional parameters
|
||||||
|
*/
|
||||||
|
-#define MEDIT_CMD_MANPAGE_TO_OUTPUT "/usr/bin/man %p %f"
|
||||||
|
+#define MEDIT_CMD_MANPAGE_TO_OUTPUT PREFIX"/bin/manwrap %p %f"
|
||||||
|
|
||||||
|
|
||||||
|
|
20
editors/manedit/files/patch-manedit.1
Normal file
20
editors/manedit/files/patch-manedit.1
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- manedit.1 2001/02/09 13:39:27 1.1
|
||||||
|
+++ manedit.1 2001/02/09 13:40:09
|
||||||
|
@@ -55,11 +55,11 @@
|
||||||
|
.LP
|
||||||
|
\fI$HOME/.maneditrc\fP
|
||||||
|
.br
|
||||||
|
-\fI/usr/share/manedit/\fP
|
||||||
|
+\fI%%PREFIX%%/share/manedit/\fP
|
||||||
|
.br
|
||||||
|
-\fI/usr/share/manedit/help/\fP
|
||||||
|
+\fI%%PREFIX%%/share/manedit/help/\fP
|
||||||
|
.br
|
||||||
|
-\fI/usr/share/manedit/templates/\fP
|
||||||
|
+\fI%%PREFIX%%/share/manedit/templates/\fP
|
||||||
|
.SH "ENVIRONMENT VARIABLES"
|
||||||
|
.TP
|
||||||
|
\fBHOME\fP
|
24
editors/manedit/files/patch-pref.c
Normal file
24
editors/manedit/files/patch-pref.c
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- pref.c 2001/02/09 13:07:09 1.1
|
||||||
|
+++ pref.c 2001/02/09 13:08:32
|
||||||
|
@@ -1709,15 +1709,15 @@
|
||||||
|
{
|
||||||
|
gchar *text[2];
|
||||||
|
|
||||||
|
- text[0] = "/usr/man";
|
||||||
|
+ text[0] = "/usr/share/man";
|
||||||
|
text[1] = "Global";
|
||||||
|
gtk_clist_append(GTK_CLIST(w), text);
|
||||||
|
|
||||||
|
- text[0] = "/usr/local/man";
|
||||||
|
+ text[0] = LOCALBASE"/man";
|
||||||
|
text[1] = "Local";
|
||||||
|
gtk_clist_append(GTK_CLIST(w), text);
|
||||||
|
|
||||||
|
- text[0] = "/usr/X11R6/man";
|
||||||
|
+ text[0] = X11BASE"/man";
|
||||||
|
text[1] = "X Window Systems";
|
||||||
|
gtk_clist_append(GTK_CLIST(w), text);
|
||||||
|
}
|
14
editors/manedit/files/patch-prefcb.c
Normal file
14
editors/manedit/files/patch-prefcb.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- prefcb.c 2001/02/09 13:12:30 1.1
|
||||||
|
+++ prefcb.c 2001/02/09 13:12:46
|
||||||
|
@@ -698,7 +698,7 @@
|
||||||
|
|
||||||
|
PDialogDeleteAllPrompts();
|
||||||
|
PDialogAddPromptWithBrowse(
|
||||||
|
- NULL, "Path:", "/usr/man",
|
||||||
|
+ NULL, "Path:", "/usr/share/man",
|
||||||
|
(void *)pref,
|
||||||
|
PrefManPageDirPromptBrowseCB
|
||||||
|
);
|
1
editors/manedit/pkg-comment
Normal file
1
editors/manedit/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
||||||
|
A UNIX manual page editor and viewer
|
6
editors/manedit/pkg-descr
Normal file
6
editors/manedit/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
ManEdit is a UNIX manual page editor and viewer. It can be used as a direct
|
||||||
|
editor for UNIX manual pages (with no manual conversion steps involved) or
|
||||||
|
a viewer/browser. ManEdit uses the GTK+ widget set and requires the X Window
|
||||||
|
Systems.
|
||||||
|
|
||||||
|
WWW: http://wolfpack.twu.net/ManEdit
|
13
editors/manedit/pkg-plist
Normal file
13
editors/manedit/pkg-plist
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
bin/manedit
|
||||||
|
bin/manwrap
|
||||||
|
share/manedit/help/manpage_writing_procedures
|
||||||
|
share/manedit/help/manpage_xml_referance
|
||||||
|
share/manedit/icons/manedit.xpm
|
||||||
|
share/manedit/templates/api.mpt
|
||||||
|
share/manedit/templates/config.mpt
|
||||||
|
share/manedit/templates/intro.mpt
|
||||||
|
share/manedit/templates/program.mpt
|
||||||
|
@dirrm share/manedit/templates
|
||||||
|
@dirrm share/manedit/icons
|
||||||
|
@dirrm share/manedit/help
|
||||||
|
@dirrm share/manedit
|
Loading…
Add table
Reference in a new issue