aboutsummaryrefslogtreecommitdiff
path: root/misc/gman
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-01-03 05:58:03 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-01-03 05:58:03 +0000
commite3db89b2508ab0ff02d2d75e93323ef3e3e12cf3 (patch)
treeb4ce912eaef36519a56b249164120d460fffeae7 /misc/gman
parentd9efbbb1bb7895a4e6637ad10dbc49200955ec39 (diff)
downloadports-e3db89b2508ab0ff02d2d75e93323ef3e3e12cf3.tar.gz
ports-e3db89b2508ab0ff02d2d75e93323ef3e3e12cf3.zip
Notes
Diffstat (limited to 'misc/gman')
-rw-r--r--misc/gman/Makefile20
-rw-r--r--misc/gman/files/patch-Makefile20
-rw-r--r--misc/gman/pkg-descr1
-rw-r--r--misc/gman/pkg-plist3
4 files changed, 19 insertions, 25 deletions
diff --git a/misc/gman/Makefile b/misc/gman/Makefile
index e1245df30f9a..900b1f08dcdb 100644
--- a/misc/gman/Makefile
+++ b/misc/gman/Makefile
@@ -9,7 +9,8 @@
PORTNAME= gman
PORTVERSION= 0.9.3
CATEGORIES= misc
-MASTER_SITES= http://homex.coolconnect.com/user/xkwang/gman/
+MASTER_SITES= http://stud3.tuwien.ac.at/~e0025974/distfiles/ \
+ http://homex.coolconnect.com/user/xkwang/gman/
MAINTAINER= ports@FreeBSD.org
@@ -18,12 +19,23 @@ RUN_DEPENDS= ghostview:${PORTSDIR}/print/ghostview
USE_GNOMENG= yes
USE_GNOME= gtk12
+USE_REINPLACE= yes
MAN1= gman.1x
post-patch:
- @${PERL} -pi -e "s,^CXX =,#CXX =,g ; s,^CXXFLAGS =,CXXFLAGS+=,g ; \
- s,gtk-config,${GTK_CONFIG},g ; s,= /usr,= ${PREFIX},g ; \
- s,/var/www,${LOCALBASE}/www,g" ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's,^CXX =,#CXX =,g' \
+ -e 's,^CXXFLAGS =,CXXFLAGS+=,g' \
+ -e 's,gtk-config,${GTK_CONFIG},g' \
+ -e 's,= /usr,= ${PREFIX},g' \
+ -e 's,\-O2,,g' \
+ -e 's,\-lgtk \-lgdk \-lpthread ,`${GTK_CONFIG} \-\-libs gthread` ,g' ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gman ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/gman.pl ${PREFIX}/bin/gman.cgi
+ @${MKDIR} ${PREFIX}/www/cgi-bin/gman
+ ${INSTALL_SCRIPT} ${WRKSRC}/gman.pl ${PREFIX}/www/cgi-bin/gman
+ ${INSTALL_MAN} ${WRKSRC}/gman.1x ${MANPREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/misc/gman/files/patch-Makefile b/misc/gman/files/patch-Makefile
deleted file mode 100644
index 884bc2c708bb..000000000000
--- a/misc/gman/files/patch-Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
---- Makefile.orig Tue May 21 14:39:34 2002
-+++ Makefile Tue Jun 11 11:24:50 2002
-@@ -13,7 +13,7 @@
- all: gman
-
- gman: menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o
-- $(CXX) -lgtk -lgdk -lpthread $(GTKLIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
-+ $(CXX) `${GTK_CONFIG} --libs gthread` $(GTKLIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
-
- gman.o: gman.c menu.h
- $(CC) -c gman.c
-@@ -50,6 +50,6 @@
- test -d $(prefix)/man/man1 || mkdir -p $(prefix)/man/man1
- test -d $(cgi_bin_prefix)/gman || mkdir -p $(cgi_bin_prefix)/gman
- install -s -m 755 gman $(prefix)/bin
-- install -s -m 755 gman.pl $(prefix)/bin/gman.cgi
-+ install -m 755 gman.pl $(prefix)/bin/gman.cgi
- install -m 644 gman.1x $(prefix)/man/man1
-- install -s -m 755 gman.pl $(ci_bin_prefix)/gman
-+ install -m 755 gman.pl $(cgi_bin_prefix)/gman
diff --git a/misc/gman/pkg-descr b/misc/gman/pkg-descr
index 9c9aec3a36d7..727927a48ef0 100644
--- a/misc/gman/pkg-descr
+++ b/misc/gman/pkg-descr
@@ -2,4 +2,5 @@ G-man is a user-friendly graphical front end for the man system mostly
designed for the new users of UNIX. It can help a newbie find specific
information or idly browse other man pages.
+Author: Xinkai Wang <aakwxk@hotmail.com>
WWW: http://homex.coolconnect.com/user/xkwang/gman/
diff --git a/misc/gman/pkg-plist b/misc/gman/pkg-plist
index 318b9317cd41..4d366fead6b7 100644
--- a/misc/gman/pkg-plist
+++ b/misc/gman/pkg-plist
@@ -1,3 +1,4 @@
bin/gman
bin/gman.cgi
-www/cgi-bin/gman
+www/cgi-bin/gman/gman.pl
+@dirrm www/cgi-bin/gman