diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-09-25 19:27:12 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-09-25 19:27:12 +0800 |
commit | 9bcb6e0ec5295181d8e7845a9c1f993b5a477f9c (patch) | |
tree | 79ee85caf9ae704df130946011ca286dbc427c68 | |
parent | 8a461aacd3ad5257145fedd8909d66a4ab8efe7b (diff) | |
download | freebsd-ports-gnome-9bcb6e0ec5295181d8e7845a9c1f993b5a477f9c.tar.gz freebsd-ports-gnome-9bcb6e0ec5295181d8e7845a9c1f993b5a477f9c.tar.zst freebsd-ports-gnome-9bcb6e0ec5295181d8e7845a9c1f993b5a477f9c.zip |
Add libgtkeditor - a source code editor widget for GTK+.
-rw-r--r-- | x11-toolkits/Makefile | 1 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/Makefile | 45 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/distinfo | 1 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/files/patch-aa | 132 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/files/patch-ab | 20 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/files/patch-ac | 17 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/pkg-comment | 1 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/pkg-descr | 20 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/pkg-plist | 19 |
9 files changed, 256 insertions, 0 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index 29ee5165b03c..b698b5ca092c 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -38,6 +38,7 @@ SUBDIR += jx SUBDIR += kde-qt-addon SUBDIR += lesstif + SUBDIR += libgtkeditor SUBDIR += libj2dplot SUBDIR += libjparser SUBDIR += libjsearch diff --git a/x11-toolkits/libgtkeditor/Makefile b/x11-toolkits/libgtkeditor/Makefile new file mode 100644 index 000000000000..76f5eaf90f5c --- /dev/null +++ b/x11-toolkits/libgtkeditor/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: libgtkeditor +# Date created: 25 September 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libgtkeditor +PORTVERSION= 0.1.8 +CATEGORIES= x11-toolkits editors +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME:S/lib//} +DISTNAME= ${PORTNAME:S/lib//}-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +BUILD_DEPENDS= ${LOCALBASE}/share/automake/install-sh:${PORTSDIR}/devel/automake +LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \ + unicode.0:${PORTSDIR}/devel/libunicode + +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_LIBTOOL= yes +INSTALLS_SHLIB= yes + +GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config +GTK_CONFIG?= ${X11BASE}/bin/gtk12-config + +CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" \ + GTK_CONFIG="${GTK_CONFIG}" \ + CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +pre-configure: +.for file in install-sh config.sub mkinstalldirs + @${LN} -sf ${LOCALBASE}/share/automake/${file} ${WRKSRC}/${file} +.endfor + +post-configure: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/scanner.c + +pre-install: + @${MKDIR} ${PREFIX}/include/tktext-port + +.include <bsd.port.mk> diff --git a/x11-toolkits/libgtkeditor/distinfo b/x11-toolkits/libgtkeditor/distinfo new file mode 100644 index 000000000000..3913ddf84f0c --- /dev/null +++ b/x11-toolkits/libgtkeditor/distinfo @@ -0,0 +1 @@ +MD5 (gtkeditor-0.1.8.tar.gz) = 0a087d5f3bb373a2fde1c67ef9941d82 diff --git a/x11-toolkits/libgtkeditor/files/patch-aa b/x11-toolkits/libgtkeditor/files/patch-aa new file mode 100644 index 000000000000..92a73e1ee97a --- /dev/null +++ b/x11-toolkits/libgtkeditor/files/patch-aa @@ -0,0 +1,132 @@ +--- tktext-port/Makefile 2000/09/25 10:03:27 1.1 ++++ tktext-port/Makefile 2000/09/25 10:32:49 +@@ -21,99 +21,99 @@ + #EFENCE=-lefence + EFENCE= + +-DYN_LIBS= $(EFENCE) `gtk-config --libs` -lunicode $(EFENCE) ++DYN_LIBS= $(EFENCE) $(GTK_LIBS) -lunicode + STATIC_LIBS=-L/home/hp/local/lib -L/usr/X11R6/lib -L/home/hp/unstable/lib -rdynamic -lgmodule -ldl -lXext -lX11 -lm -lunicode ./libgtk.a ./libgdk.a ./libglib.a + MANY_STATIC_LIBS=-lunicode -L/usr/X11R6/lib -L/opt/gnome/lib -rdynamic -lgmodule -ldl -lm ./libgtk.a ./libgdk.a ./libX11.a ./libXext.a ./libXi.a ./libglib.a + + # I know this shouldn't go here...but it's easier +-OPTIMIZE=-O2 -DG_DISABLE_ASSERT ++OPTIMIZE=$(GTK_CFLAGS) -DG_DISABLE_ASSERT + #OPTIMIZE= + + all: $(ALL_OBJECTS) + + gtktextlayout.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextlayout.c -o gtktextlayout.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextlayout.c -o gtktextlayout.lo + + gtktext.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktext.c -o gtktext.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktext.c -o gtktext.lo + + gtktextdisplay.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextdisplay.c -o gtktextdisplay.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextdisplay.c -o gtktextdisplay.lo + + gtktextbtree.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbtree.c -o gtktextbtree.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbtree.c -o gtktextbtree.lo + + gtktextbuffer.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbuffer.c -o gtktextbuffer.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbuffer.c -o gtktextbuffer.lo + + gtktexttag.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttag.c -o gtktexttag.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttag.c -o gtktexttag.lo + + gtktextmark.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextmark.c -o gtktextmark.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextmark.c -o gtktextmark.lo + + gtktexttypes.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttypes.c -o gtktexttypes.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttypes.c -o gtktexttypes.lo + + gstring.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gstring.c -o gstring.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gstring.c -o gstring.lo + + gbsearch.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gbsearch.c -o gbsearch.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gbsearch.c -o gbsearch.lo + + gtktextchild.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextchild.c -o gtktextchild.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextchild.c -o gtktextchild.lo + + gtktexttagtable.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttagtable.c -o gtktexttagtable.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttagtable.c -o gtktexttagtable.lo + + gtktextiter.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextiter.c -o gtktextiter.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextiter.c -o gtktextiter.lo + + gtktextsegment.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextsegment.c -o gtktextsegment.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextsegment.c -o gtktextsegment.lo + + gtktextlayout.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextlayout.c -o gtktextlayout.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextlayout.c -o gtktextlayout.o + + gtktext.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktext.c -o gtktext.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktext.c -o gtktext.o + + gtktextdisplay.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextdisplay.c -o gtktextdisplay.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextdisplay.c -o gtktextdisplay.o + + gtktextbtree.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbtree.c -o gtktextbtree.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbtree.c -o gtktextbtree.o + + gtktextbuffer.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbuffer.c -o gtktextbuffer.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbuffer.c -o gtktextbuffer.o + + gtktexttag.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttag.c -o gtktexttag.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttag.c -o gtktexttag.o + + gtktextmark.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextmark.c -o gtktextmark.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextmark.c -o gtktextmark.o + + gtktexttypes.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttypes.c -o gtktexttypes.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttypes.c -o gtktexttypes.o + + gstring.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gstring.c -o gstring.o ++ cc $(OPTIMIZE) $(PROFILE) -c gstring.c -o gstring.o + + gbsearch.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gbsearch.c -o gbsearch.o ++ cc $(OPTIMIZE) $(PROFILE) -c gbsearch.c -o gbsearch.o + + gtktextchild.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextchild.c -o gtktextchild.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextchild.c -o gtktextchild.o + + gtktexttagtable.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttagtable.c -o gtktexttagtable.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttagtable.c -o gtktexttagtable.o + + gtktextiter.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextiter.c -o gtktextiter.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextiter.c -o gtktextiter.o + + gtktextsegment.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextsegment.c -o gtktextsegment.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextsegment.c -o gtktextsegment.o + + clean: + /bin/rm -f *.o *.lo *~ *.bak diff --git a/x11-toolkits/libgtkeditor/files/patch-ab b/x11-toolkits/libgtkeditor/files/patch-ab new file mode 100644 index 000000000000..85bd24d4994d --- /dev/null +++ b/x11-toolkits/libgtkeditor/files/patch-ab @@ -0,0 +1,20 @@ +--- Makefile.in 2000/09/25 10:39:41 1.1 ++++ Makefile.in 2000/09/25 10:39:44 +@@ -77,6 +77,8 @@ + USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@ + VERSION = @VERSION@ + ++AM_MAKEFLAGS = GTK_CFLAGS="$(CFLAGS) $(GTK_CFLAGS)" ++ + SUBDIRS = tools scanners tktext-port + + lib_LTLIBRARIES = libgtkeditor.la +@@ -86,7 +88,7 @@ + + libgtkeditor_la_LIBADD = tktext-port/gtktextlayout.lo tktext-port/gtktext.lo tktext-port/gtktextdisplay.lo tktext-port/gtktextbtree.lo tktext-port/gtktextbuffer.lo tktext-port/gtktexttag.lo tktext-port/gtktextmark.lo tktext-port/gtktexttypes.lo tktext-port/gstring.lo tktext-port/gbsearch.lo tktext-port/gtktextchild.lo tktext-port/gtktexttagtable.lo tktext-port/gtktextiter.lo tktext-port/gtktextsegment.lo + +-libgtkeditor_la_LDFLAGS = `gtk-config --libs` -lunicode ++libgtkeditor_la_LDFLAGS = $(GTK_LIBS) -lunicode + testapp_LDADD = libgtkeditor.la + static_testapp_LDADD = libgtkeditor.la scanners/c-scanner.so + debugapp_LDADD = libgtkeditor.la diff --git a/x11-toolkits/libgtkeditor/files/patch-ac b/x11-toolkits/libgtkeditor/files/patch-ac new file mode 100644 index 000000000000..932db92863e4 --- /dev/null +++ b/x11-toolkits/libgtkeditor/files/patch-ac @@ -0,0 +1,17 @@ +--- scanner.c.orig Thu Jun 1 19:02:09 2000 ++++ scanner.c Mon Sep 25 14:09:23 2000 +@@ -149,6 +149,14 @@ + scanner_lib = g_module_open (buf, G_MODULE_BIND_LAZY); + if (scanner_lib) goto get_symbols; /* got it */ + ++ /* try in PREFIX/lib/gtkeditor */ ++ g_snprintf (buf, BUF_SIZE, "%s/%s", "%%PREFIX%%/lib/gtkeditor", scanner_name); ++ scanner_lib = g_module_open (buf, G_MODULE_BIND_LAZY); ++ if (scanner_lib) goto get_symbols; /* got it */ ++ strncat (buf, ".so", BUF_SIZE); ++ scanner_lib = g_module_open (buf, G_MODULE_BIND_LAZY); ++ if (scanner_lib) goto get_symbols; /* got it */ ++ + /* if we reach this point, we couldn't find the scanner */ + g_warning ("error loading scanner!\n"); + return NULL; diff --git a/x11-toolkits/libgtkeditor/pkg-comment b/x11-toolkits/libgtkeditor/pkg-comment new file mode 100644 index 000000000000..90a502ef0489 --- /dev/null +++ b/x11-toolkits/libgtkeditor/pkg-comment @@ -0,0 +1 @@ +A source code editor widget for GTK+ diff --git a/x11-toolkits/libgtkeditor/pkg-descr b/x11-toolkits/libgtkeditor/pkg-descr new file mode 100644 index 000000000000..c7f1cd403268 --- /dev/null +++ b/x11-toolkits/libgtkeditor/pkg-descr @@ -0,0 +1,20 @@ +GtkEditor is a source code editor widget for GTK+. It is currently used, in one +version or another, in several GTK+/GNOME applications, including gIDE, +VDKBuilder, GXEdit, and Bluefish. + +The longterm goal of GtkEditor is to provide a framework for source code +editing in GTK+ applications, whether just for editing macros or for full +fledged IDEs. We try to achieve this through a highly configurable editor +widget sub-classing the gtktext widget. After initialisation, the editor widget +can be treated as the usual text widget, and all source-code editing features +are taken care of by the widget itself. The behaviour of the editor is decided +by dynamic libraries loaded during initialisation of the widget or statically +linked with the application using the widget. These libraries can be hand-coded +or created using tools supplied with GtkEditor. + +In the current version of GtkEditor, the widget only support syntax +highlighting, but future versions will include automatic/semi-automatic +indenting, parenthesis matching, and what other nifty features we can come up +with. + +WWW: http://gtkeditor.sourceforge.net/ diff --git a/x11-toolkits/libgtkeditor/pkg-plist b/x11-toolkits/libgtkeditor/pkg-plist new file mode 100644 index 000000000000..016b85e37598 --- /dev/null +++ b/x11-toolkits/libgtkeditor/pkg-plist @@ -0,0 +1,19 @@ +bin/scannertool +include/gtkeditor.h +include/tktext-port/gtktext.h +include/tktext-port/gtktextbuffer.h +include/tktext-port/gtktextiter.h +include/tktext-port/gtktextmark.h +include/tktext-port/gtktexttag.h +include/tktext-port/gtktexttagtable.h +lib/gtkeditor/c-scanner.so +lib/gtkeditor/html-scanner.so +lib/gtkeditor/java-scanner.so +lib/gtkeditor/perl-scanner.so +lib/gtkeditor/scheme-scanner.so +lib/gtkeditor/sml-scanner.so +lib/libgtkeditor.a +lib/libgtkeditor.so +lib/libgtkeditor.so.0 +@dirrm lib/gtkeditor +@dirrm include/tktext-port |