Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 1999 19:10:59 -0400 (EDT)
From:      jedgar@fxp.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14467: New port: editors/xenon
Message-ID:  <19991022231059.A95539B22@pawn.primelocation.net>

next in thread | raw e-mail | index | archive | help

>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 <jedgar@fxp.org>
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 <bsd.port.mk>
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 <stdlib.h>
X #include <assert.h>
X #include <limits.h>
X-#include <malloc.h>
X #include <Kr/KrPool.h>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991022231059.A95539B22>