diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-04-13 05:31:27 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-04-13 05:31:27 +0000 |
commit | 1adbc745d480c2fe28194d842598e3d54c56c58f (patch) | |
tree | e1599a7d74fb87241557fd9d42d13cc51879eef6 /editors/beaver | |
parent | Use new GNOME2 infrastructure. (diff) |
Add beaver, a programmer's text editor for GTK+ 2.0.
PR: 50800
Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
Notes
Notes:
svn path=/head/; revision=78839
Diffstat (limited to 'editors/beaver')
-rw-r--r-- | editors/beaver/Makefile | 32 | ||||
-rw-r--r-- | editors/beaver/distinfo | 1 | ||||
-rw-r--r-- | editors/beaver/files/patch-aa | 74 | ||||
-rw-r--r-- | editors/beaver/files/patch-ba | 18 | ||||
-rw-r--r-- | editors/beaver/pkg-descr | 15 | ||||
-rw-r--r-- | editors/beaver/pkg-plist | 8 |
6 files changed, 148 insertions, 0 deletions
diff --git a/editors/beaver/Makefile b/editors/beaver/Makefile new file mode 100644 index 000000000000..2b99b1613b4c --- /dev/null +++ b/editors/beaver/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: beaver +# Date created: 11 Apr 2003 +# Whom: Jean-Yves Lefort <jylefort@brutele.be> +# +# $FreeBSD$ +# + +PORTNAME= beaver +PORTVERSION= 0.3.0 +CATEGORIES= editors +MASTER_SITES= http://savannah.nongnu.org/download/beaver/ + +MAINTAINER= jylefort@brutele.be +COMMENT= A programmer's text editor for GTK+ 2.0 + +BUILD_WRKSRC= ${WRKSRC}/src +USE_GNOME= gtk20 +INSTALL_WRKSRC= ${WRKSRC}/src + +USE_X_PREFIX= yes +USE_GMAKE= yes + +MANCOMPRESSED= yes +MAN1= beaver.1x + +MAKE_ENV= PREFIX="${PREFIX}" \ + MKDIR="${MKDIR}" \ + INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + INSTALL_DATA="${INSTALL_DATA}" \ + INSTALL_MAN="${INSTALL_MAN}" + +.include <bsd.port.mk> diff --git a/editors/beaver/distinfo b/editors/beaver/distinfo new file mode 100644 index 000000000000..4582c4eb4089 --- /dev/null +++ b/editors/beaver/distinfo @@ -0,0 +1 @@ +MD5 (beaver-0.3.0.tar.gz) = cb32ad10b1550528469f93939dc07423 diff --git a/editors/beaver/files/patch-aa b/editors/beaver/files/patch-aa new file mode 100644 index 000000000000..3e207061e4da --- /dev/null +++ b/editors/beaver/files/patch-aa @@ -0,0 +1,74 @@ +--- src/Makefile.orig Fri Apr 11 02:00:20 2003 ++++ src/Makefile Fri Apr 11 03:24:53 2003 +@@ -7,11 +7,11 @@ + + ############## Public section. Modify according to your needs. ############### + +-CC = gcc ++#CC = gcc + RM = rm -f + CP = cp + +-DESTDIR = /usr/local ++DESTDIR = $(PREFIX) + IPATH = + LPATH = + OPTI = -Wall -O3 -funroll-loops -fomit-frame-pointer #-DDEBUG_FCN +@@ -19,8 +19,8 @@ + WARN = #-W -Wall #-pedantic -ansi + + ### Unix version ### +-CFLAGS = ${OPTI} ${DBUG} ${WARN} ${IPATH} `pkg-config gtk+-2.0 --cflags` +-LDFLAGS = ${OPTI} ${DBUG} ${WARN} ${LPATH} `pkg-config gtk+-2.0 --libs` ++CFLAGS += ${DBUG} ${WARN} ${IPATH} $(shell pkg-config gtk+-2.0 --cflags) ++LDFLAGS = ${DBUG} ${WARN} ${LPATH} $(shell pkg-config gtk+-2.0 --libs) + NAME = beaver + + ### Windows version ### +@@ -43,7 +43,7 @@ + + all : ${OBJ} + ${CC} -o ${NAME} ${OBJ} ${LDFLAGS} +- @${STRIP} ++# @${STRIP} + + .c.o : + ${CC} ${CFLAGS} -c $< -o $@ +@@ -51,16 +51,17 @@ + ${OBJ} : ${INC} + + install : +- install -d $(DESTDIR)/bin +- install beaver $(DESTDIR)/bin +- install -d $(DESTDIR)/share/beaver/bl +- $(CP) ../bl/* $(DESTDIR)/share/beaver/bl +- install -d $(DESTDIR)/share/pixmaps +- $(CP) ../pixmaps/beaver.png $(DESTDIR)/share/pixmaps +- $(CP) ../beaver.desktop $(DESTDIR)/share/applications ++ -$(MKDIR) $(DESTDIR)/bin ++ $(INSTALL_PROGRAM) beaver $(DESTDIR)/bin ++ -$(MKDIR) $(DESTDIR)/share/beaver/bl ++ $(INSTALL_DATA) ../bl/* $(DESTDIR)/share/beaver/bl ++ -$(MKDIR) $(DESTDIR)/share/gnome/pixmaps ++ $(INSTALL_DATA) ../pixmaps/beaver.png $(DESTDIR)/share/gnome/pixmaps ++ -$(MKDIR) $(DESTDIR)/share/gnome/applications ++ $(INSTALL_DATA) ../beaver.desktop $(DESTDIR)/share/gnome/applications + gzip -c9 ../beaver.1x > ../beaver.1x.gz +- install -d $(DESTDIR)/man/man1 +- $(CP) ../beaver.1x.gz $(DESTDIR)/man/man1 ++ -$(MKDIR) $(DESTDIR)/man/man1 ++ $(INSTALL_MAN) ../beaver.1x.gz $(DESTDIR)/man/man1 + @echo + @echo "Files installed :" + @echo "-----------------" +@@ -69,8 +70,8 @@ + @echo "$(DESTDIR)/share/beaver/bl/example1.bl" + @echo "$(DESTDIR)/share/beaver/bl/example2.bl" + @echo "$(DESTDIR)/share/beaver/bl/glib.bl" +- @echo "$(DESTDIR)/share/pixmaps/beaver.png" +- @echo "$(DESTDIR)/share/applications/beaver.desktop" ++ @echo "$(DESTDIR)/share/gnome/pixmaps/beaver.png" ++ @echo "$(DESTDIR)/share/gnome/applications/beaver.desktop" + @echo "$(DESTDIR)/man/man1/beaver.1x.gz" + @echo + @echo ",----------------------------------." diff --git a/editors/beaver/files/patch-ba b/editors/beaver/files/patch-ba new file mode 100644 index 000000000000..300df8e06579 --- /dev/null +++ b/editors/beaver/files/patch-ba @@ -0,0 +1,18 @@ +--- src/languages.c.orig Fri Apr 11 02:04:36 2003 ++++ src/languages.c Fri Apr 11 02:04:37 2003 +@@ -88,13 +88,13 @@ + { + gchar *fixed = g_strdup (Prefs.L[lang].Description); + gchar *s; ++ GtkItemFactoryEntry NewEntry = {s, NULL, languages_treatment, ++ lang, "<Item>"}; + + fixed = str_replace_tokens (&fixed, '/', "\\"); + s = g_strconcat("/Language/", + fixed, + NULL); +- GtkItemFactoryEntry NewEntry = {s, NULL, languages_treatment, +- lang, "<Item>"}; + + gtk_item_factory_create_items + (gtk_item_factory_from_path ("<main>"), 1, &NewEntry, NULL); diff --git a/editors/beaver/pkg-descr b/editors/beaver/pkg-descr new file mode 100644 index 000000000000..f4f8b2dc6aa7 --- /dev/null +++ b/editors/beaver/pkg-descr @@ -0,0 +1,15 @@ +From the homepage: + +"Beaver is an Early AdVanced EditoR, for Linux and other Unix (and +even Windows); in other words, it's a text editor that is intended to +be lightweight, but full of useful features for programming, from +websites editing to C coding. It is based upon the GTK+ toolkit, +supports many languages through config files and offers functions such +as automatic indentation, completion and correction, or syntax +highlighting. In fact, it is 100% compatible with the Ultraedit's +wordfile.txt files, and has its own mini macro language." + +WWW: http://www.nongnu.org/beaver/ + +- Jean-Yves Lefort +jylefort@brutele.be diff --git a/editors/beaver/pkg-plist b/editors/beaver/pkg-plist new file mode 100644 index 000000000000..9b6c8f710308 --- /dev/null +++ b/editors/beaver/pkg-plist @@ -0,0 +1,8 @@ +bin/beaver +share/beaver/bl/example1.bl +share/beaver/bl/example2.bl +share/beaver/bl/glib.bl +share/gnome/pixmaps/beaver.png +share/gnome/applications/beaver.desktop +@dirrm share/beaver/bl +@dirrm share/beaver |