From 305e795caeb5548f0d45fd922623c4d1a33cffdb Mon Sep 17 00:00:00 2001
From: Ying-Chieh Liao <ijliao@FreeBSD.org>
Date: Mon, 10 Jun 2002 04:25:02 +0000
Subject: upgrade to 0.9.3 drop maintainership

---
 misc/gman/Makefile             | 11 ++++++-----
 misc/gman/distinfo             |  2 +-
 misc/gman/files/patch-Makefile | 30 +++++++++++-------------------
 misc/gman/pkg-plist            |  2 ++
 4 files changed, 20 insertions(+), 25 deletions(-)

(limited to 'misc/gman')

diff --git a/misc/gman/Makefile b/misc/gman/Makefile
index bf96a882bbb5..a43712413b29 100644
--- a/misc/gman/Makefile
+++ b/misc/gman/Makefile
@@ -7,11 +7,11 @@
 #
 
 PORTNAME=	gman
-PORTVERSION=	0.9.2
+PORTVERSION=	0.9.3
 CATEGORIES=	misc
 MASTER_SITES=	http://homex.coolconnect.com/user/xkwang/gman/
 
-MAINTAINER=	ijliao@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg
 RUN_DEPENDS=	ghostview:${PORTSDIR}/print/ghostview
@@ -20,8 +20,9 @@ USE_GTK=	yes
 
 MAN1=	gman.1x
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/gman ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/gman.1x ${MANPREFIX}/man/man1
+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
 
 .include <bsd.port.mk>
diff --git a/misc/gman/distinfo b/misc/gman/distinfo
index 22b89951c8b9..9d6c1d033e39 100644
--- a/misc/gman/distinfo
+++ b/misc/gman/distinfo
@@ -1 +1 @@
-MD5 (gman-0.9.2.tar.gz) = 7e573cda5d58e3fe4d24d04a295ff0ac
+MD5 (gman-0.9.3.tar.gz) = 819582eb2527e36271f82f6562001b43
diff --git a/misc/gman/files/patch-Makefile b/misc/gman/files/patch-Makefile
index 7eccdc105704..f78fbab84826 100644
--- a/misc/gman/files/patch-Makefile
+++ b/misc/gman/files/patch-Makefile
@@ -1,25 +1,17 @@
---- Makefile.orig	Sat Mar 31 19:05:24 2001
-+++ Makefile	Sat Apr 14 04:19:15 2001
-@@ -1,18 +1,18 @@
- # Gman Makefile
- # You can adjust the following variables.
--CXX = g++
--CXXFLAGS = -DVERSION=\"0.9.2\" `gtk-config --cflags` -O2 #-Wall
-+CXX ?= g++
-+CXXFLAGS += -DVERSION=\"0.9.2\" `${GTK_CONFIG} --cflags gthread` #-Wall
- CC = $(CXX) $(CXXFLAGS)
- 
- GNOMELIB = #`gnome-config --libs gnomeui`
--prefix = /usr
-+prefix = ${PREFIX}
- cgi_bin_prefix = /home/httpd/cgi-bin
- 
- # There shouldn't be any need to edit anything below this point.
+--- Makefile.orig	Tue May 21 14:39:34 2002
++++ Makefile	Mon Jun 10 12:27:13 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
--	$(CC) -lgtk -lgdk -lpthread $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
-+	$(CC) `${GTK_CONFIG} --libs gthread` $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
+-	$(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
+@@ -52,4 +52,4 @@
+ 	install -s -m 755 gman $(prefix)/bin
+ 	install -s -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 -s -m 755 gman.pl $(cgi_bin_prefix)/gman
diff --git a/misc/gman/pkg-plist b/misc/gman/pkg-plist
index 769b105dd8fc..318b9317cd41 100644
--- a/misc/gman/pkg-plist
+++ b/misc/gman/pkg-plist
@@ -1 +1,3 @@
 bin/gman
+bin/gman.cgi
+www/cgi-bin/gman
-- 
cgit v1.2.3