From domi@dominik.saargate.de Sun Jul 18 09:18:50 1999
Return-Path: <domi@dominik.saargate.de>
Received: from dominik.saargate.de (dominik.saargate.de [212.88.132.246])
	by hub.freebsd.org (Postfix) with ESMTP id 7EDCF14EE0
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jul 1999 09:18:47 -0700 (PDT)
	(envelope-from domi@dominik.saargate.de)
Received: (from domi@localhost)
	by dominik.saargate.de (8.9.3/8.9.3) id RAA23886;
	Sun, 18 Jul 1999 17:42:31 +0200 (CEST)
	(envelope-from domi)
Message-Id: <199907181542.RAA23886@dominik.saargate.de>
Date: Sun, 18 Jul 1999 17:42:31 +0200 (CEST)
From: domi@saargate.de
Sender: domi@dominik.saargate.de
Reply-To: domi@saargate.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: new port: gdict-0.7
X-Send-Pr-Version: 3.2

>Number:         12694
>Category:       ports
>Synopsis:       new port: gdict-0.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kris
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 18 09:20:00 PDT 1999
>Closed-Date:    Thu Jul 22 06:16:14 PDT 1999
>Last-Modified:  Thu Jul 22 06:18:28 PDT 1999
>Originator:     Dominik Brettnacher
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
	

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gdict
#	gdict/files
#	gdict/files/md5
#	gdict/pkg
#	gdict/pkg/DESCR
#	gdict/pkg/PLIST
#	gdict/pkg/COMMENT
#	gdict/Makefile
#	gdict/patches
#	gdict/patches/patch-aa
#	gdict/patches/patch-ab
#	gdict/patches/patch-ac
#
echo c - gdict
mkdir -p gdict > /dev/null 2>&1
echo c - gdict/files
mkdir -p gdict/files > /dev/null 2>&1
echo x - gdict/files/md5
sed 's/^X//' >gdict/files/md5 << 'END-of-gdict/files/md5'
XMD5 (gdict-0.7.tar.gz) = ef81d5142345dc2b0b9af662a0cc3cc0
END-of-gdict/files/md5
echo c - gdict/pkg
mkdir -p gdict/pkg > /dev/null 2>&1
echo x - gdict/pkg/DESCR
sed 's/^X//' >gdict/pkg/DESCR << 'END-of-gdict/pkg/DESCR'
Xgdict is a small C/GTK+ program written to find definitions of arbitrary
Xwords.  It contacts the MIT dictionary server and returns a definition.
X
Xadditionally, there is a CLUI version named "dict"
X
Xhttp://www.psilord.com/code/
END-of-gdict/pkg/DESCR
echo x - gdict/pkg/PLIST
sed 's/^X//' >gdict/pkg/PLIST << 'END-of-gdict/pkg/PLIST'
Xbin/dict
Xbin/gdict
END-of-gdict/pkg/PLIST
echo x - gdict/pkg/COMMENT
sed 's/^X//' >gdict/pkg/COMMENT << 'END-of-gdict/pkg/COMMENT'
Xgdict is a small program that finds definitions of arbitrary (english) words
END-of-gdict/pkg/COMMENT
echo x - gdict/Makefile
sed 's/^X//' >gdict/Makefile << 'END-of-gdict/Makefile'
X# New ports collection makefile for:	gdict
X# Version required:		0.7
X# Date created:			Sun Jul 18 1999
X# Whom:				domi@saargate.de
X#
X# $Id: Makefile,v 1.1.1.1 1999/06/09 01:54:51 steve Exp $
X#
X
XDISTNAME=	gdict-0.7
XCATEGORIES=	misc
XMASTER_SITES=	http://www.psilord.com/code/gdict/
X
XMAINTAINER=	domi@saargate.de
X
XLIB_DEPENDS=	gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
X
X.include <bsd.port.mk>
END-of-gdict/Makefile
echo c - gdict/patches
mkdir -p gdict/patches > /dev/null 2>&1
echo x - gdict/patches/patch-aa
sed 's/^X//' >gdict/patches/patch-aa << 'END-of-gdict/patches/patch-aa'
X--- Makefile.orig	Mon Mar 29 00:32:27 1999
X+++ Makefile	Sun Jul 18 17:34:11 1999
X@@ -2,15 +2,15 @@
X 
X CC	= gcc
X CFLAGS	= -O6 -Wall
X-CFL_GTK	= $(CFLAGS) `gtk-config --cflags` `gtk-config --libs`
X+CFL_GTK	= $(CFLAGS) `gtk12-config --cflags` `gtk12-config --libs`
X CFL	= $(CFLAGS)
X OBJECTS_GDICT	= gdict.c 
X OBJECTS_DICT	= dict.c
X 
X all: gdict dict
X-install:
X-	install -m 0755 -s gdict /usr/local/bin/gdict
X-	install -m 0755 -s dict /usr/local/bin/dict
X+install: all
X+	install -o root -g wheel -m 0555 -s gdict /usr/local/bin/gdict
X+	install -o root -g wheel -m 0555 -s dict /usr/local/bin/dict
X 
X gdict:	$(OBJECTS_GDICT)
X 	$(CC) $(CFL_GTK) $(OBJECTS_GDICT) -o gdict
END-of-gdict/patches/patch-aa
echo x - gdict/patches/patch-ab
sed 's/^X//' >gdict/patches/patch-ab << 'END-of-gdict/patches/patch-ab'
X--- gdict.c.orig	Sun Jul 18 14:40:23 1999
X+++ gdict.c	Sun Jul 18 14:48:13 1999
X@@ -13,6 +13,7 @@
X  * Window resizing and cleanup by Iain (Nodatadj, EFNet) 23-Mar-1999
X  */
X 
X+#include <sys/types.h>
X #include <gtk/gtk.h>
X #include <stdio.h>
X #include <sys/socket.h>
END-of-gdict/patches/patch-ab
echo x - gdict/patches/patch-ac
sed 's/^X//' >gdict/patches/patch-ac << 'END-of-gdict/patches/patch-ac'
X--- dict.c.orig	Sun Jul 18 14:40:19 1999
X+++ dict.c	Sun Jul 18 14:44:53 1999
X@@ -4,6 +4,7 @@
X  * Thanks goes out to #linuxos also.  :)
X  */
X 
X+#include <sys/types.h>
X #include <stdio.h>
X #include <sys/socket.h>
X #include <unistd.h>
END-of-gdict/patches/patch-ac
exit


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->kris  
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 22 06:04:26 PDT 1999 
Responsible-Changed-Why:  
I'll take this.. 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Thu Jul 22 06:16:14 PDT 1999 
State-Changed-Why:  
Port committed with some changes: 

1) Category changed from misc to textproc (precedent: dict, on which the port is based). 
2) Respect CC and CFLAGS during compilation 
3) Use a do-install target in the port makefile, instead of patching the distfile to do the same thing (and in the process, respect PREFIX). 
4) Fix some Linuxed headers and correct some compile-time warnings while I'm here. 

Thanks for your submission! 
>Unformatted:
