Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 03:44:22 +0200 (CEST)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50800: New port: Beaver 0.3.0, a programmer's text editor for GTK+ 2.0
Message-ID:  <20030411014422.51D9522E1D@jsite.lefort.net>
Resent-Message-ID: <200304110150.h3B1oK8p040880@freefall.freebsd.org>

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

>Number:         50800
>Category:       ports
>Synopsis:       New port: Beaver 0.3.0, a programmer's text editor for GTK+ 2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 10 18:50:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Mon Mar 31 19:59:16 CEST 2003 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
	
>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:
#
#	beaver
#	beaver/Makefile
#	beaver/pkg-descr
#	beaver/pkg-plist
#	beaver/files
#	beaver/files/patch-aa
#	beaver/files/patch-ba
#	beaver/distinfo
#
echo c - beaver
mkdir -p beaver > /dev/null 2>&1
echo x - beaver/Makefile
sed 's/^X//' >beaver/Makefile << 'END-of-beaver/Makefile'
X# New ports collection makefile for:	beaver
X# Date created:			11 Apr 2003
X# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		beaver
XPORTVERSION=		0.3.0
XCATEGORIES=		editors
XMASTER_SITES=		http://savannah.nongnu.org/download/beaver/
X
XMAINTAINER=		jylefort@brutele.be
XCOMMENT=		A programmer's text editor for GTK+ 2.0
X
XLIB_DEPENDS=		gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20
X
XBUILD_WRKSRC=		${WRKSRC}/src
XINSTALL_WRKSRC=		${WRKSRC}/src
X
XUSE_X_PREFIX=		yes
XUSE_GMAKE=		yes
X
XMANCOMPRESSED=		yes
XMAN1=			beaver.1x
X
XMAKE_ENV=		PREFIX="${PREFIX}" \
X			MKDIR="${MKDIR}" \
X			INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
X			INSTALL_DATA="${INSTALL_DATA}" \
X			INSTALL_MAN="${INSTALL_MAN}"
X
X.include <bsd.port.mk>
END-of-beaver/Makefile
echo x - beaver/pkg-descr
sed 's/^X//' >beaver/pkg-descr << 'END-of-beaver/pkg-descr'
XFrom the homepage:
X
X"Beaver is an Early AdVanced EditoR, for Linux and other Unix (and
Xeven Windows); in other words, it's a text editor that is intended to
Xbe lightweight, but full of useful features for programming, from
Xwebsites editing to C coding. It is based upon the GTK+ toolkit,
Xsupports many languages through config files and offers functions such
Xas automatic indentation, completion and correction, or syntax
Xhighlighting. In fact, it is 100% compatible with the Ultraedit's
Xwordfile.txt files, and has its own mini macro language."
X
XWWW: http://www.nongnu.org/beaver/
X
X- Jean-Yves Lefort
Xjylefort@brutele.be
END-of-beaver/pkg-descr
echo x - beaver/pkg-plist
sed 's/^X//' >beaver/pkg-plist << 'END-of-beaver/pkg-plist'
Xbin/beaver
Xshare/beaver/bl/example1.bl
Xshare/beaver/bl/example2.bl
Xshare/beaver/bl/glib.bl
Xshare/gnome/pixmaps/beaver.png
Xshare/gnome/applications/beaver.desktop
X@dirrm share/beaver/bl
X@dirrm share/beaver
END-of-beaver/pkg-plist
echo c - beaver/files
mkdir -p beaver/files > /dev/null 2>&1
echo x - beaver/files/patch-aa
sed 's/^X//' >beaver/files/patch-aa << 'END-of-beaver/files/patch-aa'
X--- src/Makefile.orig	Fri Apr 11 02:00:20 2003
X+++ src/Makefile	Fri Apr 11 03:24:53 2003
X@@ -7,11 +7,11 @@
X 
X ############## Public section. Modify according to your needs.  ###############
X 
X-CC      = gcc
X+#CC      = gcc
X RM      = rm -f
X CP      = cp
X 
X-DESTDIR = /usr/local
X+DESTDIR = $(PREFIX)
X IPATH   = 
X LPATH   = 
X OPTI    = -Wall -O3 -funroll-loops -fomit-frame-pointer #-DDEBUG_FCN
X@@ -19,8 +19,8 @@
X WARN	= #-W -Wall #-pedantic -ansi
X 
X ### Unix version ###
X-CFLAGS  = ${OPTI} ${DBUG} ${WARN} ${IPATH} `pkg-config gtk+-2.0 --cflags`
X-LDFLAGS = ${OPTI} ${DBUG} ${WARN} ${LPATH} `pkg-config gtk+-2.0 --libs`
X+CFLAGS  += ${DBUG} ${WARN} ${IPATH} $(shell pkg-config gtk+-2.0 --cflags)
X+LDFLAGS = ${DBUG} ${WARN} ${LPATH} $(shell pkg-config gtk+-2.0 --libs)
X NAME    = beaver
X 
X ### Windows version ###
X@@ -43,7 +43,7 @@
X 
X all	: ${OBJ}
X 	${CC} -o ${NAME} ${OBJ} ${LDFLAGS}
X-	@${STRIP}
X+#	@${STRIP}
X 
X .c.o	:
X 	${CC} ${CFLAGS} -c $< -o $@
X@@ -51,16 +51,17 @@
X ${OBJ}	: ${INC}
X 
X install :
X-	install -d $(DESTDIR)/bin
X-	install beaver $(DESTDIR)/bin
X-	install -d $(DESTDIR)/share/beaver/bl
X-	$(CP) ../bl/* $(DESTDIR)/share/beaver/bl
X-	install -d $(DESTDIR)/share/pixmaps
X-	$(CP) ../pixmaps/beaver.png $(DESTDIR)/share/pixmaps
X-	$(CP) ../beaver.desktop $(DESTDIR)/share/applications
X+	-$(MKDIR) $(DESTDIR)/bin
X+	$(INSTALL_PROGRAM) beaver $(DESTDIR)/bin
X+	-$(MKDIR) $(DESTDIR)/share/beaver/bl
X+	$(INSTALL_DATA) ../bl/* $(DESTDIR)/share/beaver/bl
X+	-$(MKDIR) $(DESTDIR)/share/gnome/pixmaps
X+	$(INSTALL_DATA) ../pixmaps/beaver.png $(DESTDIR)/share/gnome/pixmaps
X+	-$(MKDIR) $(DESTDIR)/share/gnome/applications
X+	$(INSTALL_DATA) ../beaver.desktop $(DESTDIR)/share/gnome/applications
X 	gzip -c9 ../beaver.1x > ../beaver.1x.gz
X-	install -d $(DESTDIR)/man/man1
X-	$(CP) ../beaver.1x.gz $(DESTDIR)/man/man1
X+	-$(MKDIR) $(DESTDIR)/man/man1
X+	$(INSTALL_MAN) ../beaver.1x.gz $(DESTDIR)/man/man1
X 	@echo
X 	@echo "Files installed :"
X 	@echo "-----------------"
X@@ -69,8 +70,8 @@
X 	@echo "$(DESTDIR)/share/beaver/bl/example1.bl"
X 	@echo "$(DESTDIR)/share/beaver/bl/example2.bl"
X 	@echo "$(DESTDIR)/share/beaver/bl/glib.bl"
X-	@echo "$(DESTDIR)/share/pixmaps/beaver.png"
X-	@echo "$(DESTDIR)/share/applications/beaver.desktop"
X+	@echo "$(DESTDIR)/share/gnome/pixmaps/beaver.png"
X+	@echo "$(DESTDIR)/share/gnome/applications/beaver.desktop"
X 	@echo "$(DESTDIR)/man/man1/beaver.1x.gz"
X 	@echo
X 	@echo ",----------------------------------."
END-of-beaver/files/patch-aa
echo x - beaver/files/patch-ba
sed 's/^X//' >beaver/files/patch-ba << 'END-of-beaver/files/patch-ba'
X--- src/languages.c.orig	Fri Apr 11 02:04:36 2003
X+++ src/languages.c	Fri Apr 11 02:04:37 2003
X@@ -88,13 +88,13 @@
X 	{
X 	  gchar *fixed = g_strdup (Prefs.L[lang].Description);
X 	  gchar *s;
X+	  GtkItemFactoryEntry NewEntry = {s, NULL, languages_treatment,
X+					  lang, "<Item>"};
X 	  
X 	  fixed = str_replace_tokens (&fixed, '/', "\\");
X 	  s = g_strconcat("/Language/",
X 				 fixed,
X 				 NULL);
X-	  GtkItemFactoryEntry NewEntry = {s, NULL, languages_treatment,
X-					  lang, "<Item>"};
X 
X 	  gtk_item_factory_create_items
X 	    (gtk_item_factory_from_path  ("<main>"), 1, &NewEntry, NULL);
END-of-beaver/files/patch-ba
echo x - beaver/distinfo
sed 's/^X//' >beaver/distinfo << 'END-of-beaver/distinfo'
XMD5 (beaver-0.3.0.tar.gz) = cb32ad10b1550528469f93939dc07423
END-of-beaver/distinfo
exit
	
>Release-Note:
>Audit-Trail:
>Unformatted:



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