summaryrefslogtreecommitdiffstats
path: root/misc/gman
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2003-01-03 05:58:03 +0000
committerijliao <ijliao@FreeBSD.org>2003-01-03 05:58:03 +0000
commit00b573f888aa071a81b65264f14743f0e79e650f (patch)
tree4cca84a5d17d7c56eb27aec300f44b740bb95b51 /misc/gman
parent72afc5843dafc78667287bbcf97902b84c8c0c9a (diff)
downloadFreeBSD-ports-00b573f888aa071a81b65264f14743f0e79e650f.zip
FreeBSD-ports-00b573f888aa071a81b65264f14743f0e79e650f.tar.gz
make it fetchable
fix plist utilize REINPLACE PR: 43453 Submitted by: Tilman Linneweh <tilman@arved.de>
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 e1245df..900b1f0 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 884bc2c..0000000
--- 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 9c9aec3..727927a 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 318b931..4d366fe 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
OpenPOWER on IntegriCloud