From owner-freebsd-ports Sat Oct 23 6:48:10 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D605A14DBB for ; Sat, 23 Oct 1999 06:47:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA88833; Sat, 23 Oct 1999 06:47:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id F0DF214EB9 for ; Fri, 22 Oct 1999 16:11:00 -0700 (PDT) (envelope-from jedgar@pawn.primelocation.net) Received: by pawn.primelocation.net (Postfix, from userid 1003) id A95539B22; Fri, 22 Oct 1999 19:10:59 -0400 (EDT) Message-Id: <19991022231059.A95539B22@pawn.primelocation.net> Date: Fri, 22 Oct 1999 19:10:59 -0400 (EDT) From: jedgar@fxp.org Reply-To: jedgar@fxp.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/14467: New port: editors/xenon Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14467 >Category: ports >Synopsis: New port: editors/xenon >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 23 06:47:20 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Chris D. Faulhaber >Release: FreeBSD 4.0-CURRENT i386 >Organization: BUGO - BSD Users Group of Orlando >Environment: FreeBSD 4.0-CURRENT i386 >Description: New port: editors/xenon Xenon is a simple X-based text editor which is very handy for things like editing source code, system configuration files, scripts and whatever else is an ASCII text file. Xenon is based on libXpm instead of gtk+/qt/motif/etc. >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: # # xenon # xenon/Makefile # xenon/files # xenon/files/md5 # xenon/pkg # xenon/pkg/PLIST # xenon/pkg/COMMENT # xenon/pkg/DESCR # xenon/patches # xenon/patches/patch-aa # xenon/patches/patch-ab # xenon/patches/patch-ac # xenon/patches/patch-ad # echo c - xenon mkdir -p xenon > /dev/null 2>&1 echo x - xenon/Makefile sed 's/^X//' >xenon/Makefile << 'END-of-xenon/Makefile' X# New ports collection makefile for: xenon X# Version required: 0.6.4 X# Date created: 22 October 1999 X# Whom: Chris D. Faulhaber X# X# $FreeBSD$ X# X XDISTNAME= xenon-0.6.4 XCATEGORIES= editors XMASTER_SITES= ftp://ftp.proximity.com.au/pub/xenon/ X XMAINTAINER= jedgar@fxp.org X XLIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm X XUSE_X_PREFIX= yes XUSE_GMAKE= yes X XMAN1= xe.1 X Xpre-patch: X @${CP} ${WRKSRC}/makefiles/Makefile.Linux ${WRKSRC}/makefiles/Makefile.FreeBSD X Xdo-configure: X @cd ${WRKSRC}; ${LN} -sf makefiles/Makefile.FreeBSD Makefile X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/xe ${PREFIX}/bin X @${INSTALL_MAN} ${WRKSRC}/xe.1 ${PREFIX}/man/man1 X @${MKDIR} ${PREFIX}/share/examples/xe X @${INSTALL_DATA} ${WRKSRC}/xerc ${PREFIX}/share/examples/xe/sample.xerc X X.include END-of-xenon/Makefile echo c - xenon/files mkdir -p xenon/files > /dev/null 2>&1 echo x - xenon/files/md5 sed 's/^X//' >xenon/files/md5 << 'END-of-xenon/files/md5' XMD5 (xenon-0.6.4.tar.gz) = 8607509ecc1c618769fcc57c7daa408f END-of-xenon/files/md5 echo c - xenon/pkg mkdir -p xenon/pkg > /dev/null 2>&1 echo x - xenon/pkg/PLIST sed 's/^X//' >xenon/pkg/PLIST << 'END-of-xenon/pkg/PLIST' Xbin/xe Xshare/examples/xe/sample.xerc X@dirrm share/examples/xe END-of-xenon/pkg/PLIST echo x - xenon/pkg/COMMENT sed 's/^X//' >xenon/pkg/COMMENT << 'END-of-xenon/pkg/COMMENT' XSimple X-based text editor END-of-xenon/pkg/COMMENT echo x - xenon/pkg/DESCR sed 's/^X//' >xenon/pkg/DESCR << 'END-of-xenon/pkg/DESCR' XXenon is a simple X-based text editor which is very handy for things like Xediting source code, system configuration files, scripts and whatever else Xis an ASCII text file. X XFeatures include: X * Speed, simplicity and low memory use. X * Search, substring or regular expression X * Unlimited undo/redo. X * Display of line numbers, jump to line number X * Some X resource configuration: mostly command keys, some colours X * Man page! X * Some error dialogs. X * Multiple files in separate windows. X * Open multiple files from the command line X * Run Once (only one process per uid and X connection IP number) X XWWW: http://www.proximity.com.au/~ben/xenon.html X X- Chris D. Faulhaber Xjedgar@fxp.org END-of-xenon/pkg/DESCR echo c - xenon/patches mkdir -p xenon/patches > /dev/null 2>&1 echo x - xenon/patches/patch-aa sed 's/^X//' >xenon/patches/patch-aa << 'END-of-xenon/patches/patch-aa' X--- Xe.C.orig Fri Oct 22 00:20:19 1999 X+++ Xe.C Fri Oct 22 18:45:53 1999 X@@ -41,9 +41,11 @@ X // Home directory lookup function. X // X X+#ifndef __FreeBSD__ X extern "C" { X extern char* cuserid(char*); X } X+#endif X X void X getHomeDir(char* pathname) X@@ -57,8 +59,10 @@ X X // $$$ cuserid _should_ be in unistd.h, but egcs X // complains that it isn't declared X- username = (char*)cuserid(NULL); X+#ifndef __FreeBSD__ X+ username = (char*)cuserid(NULL) X if (username == 0) X+#endif X username = getlogin(); X X if (username) END-of-xenon/patches/patch-aa echo x - xenon/patches/patch-ab sed 's/^X//' >xenon/patches/patch-ab << 'END-of-xenon/patches/patch-ab' X--- makefiles/Makefile.FreeBSD.orig Fri Oct 22 00:20:20 1999 X+++ makefiles/Makefile.FreeBSD Fri Oct 22 18:36:19 1999 X@@ -6,18 +6,18 @@ X X include makefiles/Makefile.common X X-CC = c++ X+CC = $(CXX) X #CC = /usr/local/bin/c++ X X-OPTIMIZER = -O2 X+#OPTIMIZER = -O2 X X #ARCH = -b i586-pc-linux-gnulibc1 X ARCH = X X # For making a dso, add -fPIC X-CCFLAGS = $(OPTIMIZER) -pipe -Wall -fno-exceptions X+CCFLAGS = $(CXXFLAGS) X X-INCLUDES = -I$(XEINC) X+INCLUDES = -I$(XEINC) -I/usr/X11R6/include X LIBS = -L/usr/X11R6/lib -lXpm -lX11 X X backup: END-of-xenon/patches/patch-ab echo x - xenon/patches/patch-ac sed 's/^X//' >xenon/patches/patch-ac << 'END-of-xenon/patches/patch-ac' X--- KrPool.C.orig Fri Oct 22 00:20:19 1999 X+++ KrPool.C Fri Oct 22 18:47:08 1999 X@@ -3,7 +3,6 @@ X #include X #include X #include X-#include X #include X X const uint KrPool::BUFLEN; END-of-xenon/patches/patch-ac echo x - xenon/patches/patch-ad sed 's/^X//' >xenon/patches/patch-ad << 'END-of-xenon/patches/patch-ad' X--- XeApp.C.orig Fri Oct 22 00:20:19 1999 X+++ XeApp.C Fri Oct 22 18:42:42 1999 X@@ -165,7 +165,7 @@ X #endif X gLocalIPAddr = 0; X X- if (getsockname(ConnectionNumber(gDisplay), &saddr, &len) != -1) X+ if (getsockname(ConnectionNumber(gDisplay), &saddr, (int *)&len) != -1) X if (saddr.sa_family == AF_INET) X gLocalIPAddr = ntohl(((sockaddr_in*)&saddr)->sin_addr.s_addr); X END-of-xenon/patches/patch-ad exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message