From 8d0657e26aa441864c4c87a59734c4bec9f51b64 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Thu, 14 Dec 2000 12:18:25 +0000 Subject: [PATCH] Add GtkScintilla. GtkScintilla is a wrapper for the Scintilla editing component wich adds some facility to this powerful component. --- x11-toolkits/Makefile | 1 + x11-toolkits/gtkscintilla/Makefile | 30 +++++++++++++++ x11-toolkits/gtkscintilla/distinfo | 1 + x11-toolkits/gtkscintilla/files/patch-aa | 49 ++++++++++++++++++++++++ x11-toolkits/gtkscintilla/files/patch-ab | 13 +++++++ x11-toolkits/gtkscintilla/pkg-comment | 1 + x11-toolkits/gtkscintilla/pkg-descr | 13 +++++++ x11-toolkits/gtkscintilla/pkg-plist | 4 ++ 8 files changed, 112 insertions(+) create mode 100644 x11-toolkits/gtkscintilla/Makefile create mode 100644 x11-toolkits/gtkscintilla/distinfo create mode 100644 x11-toolkits/gtkscintilla/files/patch-aa create mode 100644 x11-toolkits/gtkscintilla/files/patch-ab create mode 100644 x11-toolkits/gtkscintilla/pkg-comment create mode 100644 x11-toolkits/gtkscintilla/pkg-descr create mode 100644 x11-toolkits/gtkscintilla/pkg-plist diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index a4241414f617..5c2ee925350a 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -30,6 +30,7 @@ SUBDIR += gtkextra SUBDIR += gtkextra-- SUBDIR += gtkglarea + SUBDIR += gtkscintilla SUBDIR += gtkstep SUBDIR += gtkstep-pastel SUBDIR += guile-gnome diff --git a/x11-toolkits/gtkscintilla/Makefile b/x11-toolkits/gtkscintilla/Makefile new file mode 100644 index 000000000000..e89072e5fa2d --- /dev/null +++ b/x11-toolkits/gtkscintilla/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: gtkscintilla +# Date created: 14 December 2000 +# Whom: Maxim Sobolev +# +# $FreeBSD$ +# + +PORTNAME= gtkscintilla +PORTVERSION= 0.2 +CATEGORIES= x11-toolkits +MASTER_SITES= http://www.moleskine.f2s.com/ +DISTNAME= GtkScintilla-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +LIB_DEPENDS= scintilla.1:${PORTSDIR}/x11-toolkits/scintilla + +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GTK= yes +INSTALLS_SHLIB= yes + +do-install: + ${MKDIR} ${PREFIX}/include/scintilla + ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/scintilla + ${INSTALL_DATA} ${WRKSRC}/libgtkscintilla.a ${PREFIX}/lib + ${INSTALL_PROGRAM} ${WRKSRC}/libgtkscintilla.so.0 ${PREFIX}/lib + ${LN} -sf ${PREFIX}/lib/libgtkscintilla.so.0 ${PREFIX}/lib/libgtkscintilla.so + +.include diff --git a/x11-toolkits/gtkscintilla/distinfo b/x11-toolkits/gtkscintilla/distinfo new file mode 100644 index 000000000000..3e9686e64d75 --- /dev/null +++ b/x11-toolkits/gtkscintilla/distinfo @@ -0,0 +1 @@ +MD5 (GtkScintilla-0.2.tar.gz) = c5118a50c0b932c62e4510f7fb2f8e63 diff --git a/x11-toolkits/gtkscintilla/files/patch-aa b/x11-toolkits/gtkscintilla/files/patch-aa new file mode 100644 index 000000000000..12023d0014e9 --- /dev/null +++ b/x11-toolkits/gtkscintilla/files/patch-aa @@ -0,0 +1,49 @@ +--- Makefile 2000/12/14 10:21:57 1.1 ++++ Makefile 2000/12/14 10:28:39 +@@ -2,28 +2,18 @@ + + NAME = GtkScintilla + LIB_NAME = gtkscintilla +-VERSION = 0.2 +-PREFIX = $(shell gtk-config --prefix) ++VERSION = 0 ++PREFIX ?= $(shell $(GTK_CONFIG) --prefix) + + SCINTILLA_DIR = ./scintilla +-SCINTILLA_INCLUDE = $(SCINTILLA_DIR)/include ++SCINTILLA_INCLUDE = $(X11BASE)/include/scintilla + SCINTILLA_SOURCE = $(SCINTILLA_DIR)/src +-SCINTILLA_LIB = $(SCINTILLA_DIR)/bin/scintilla.a +-LEXERS = \ +- $(SCINTILLA_DIR)/gtk/LexCPP.o \ +- $(SCINTILLA_DIR)/gtk/LexConf.o \ +- $(SCINTILLA_DIR)/gtk/LexHTML.o \ +- $(SCINTILLA_DIR)/gtk/LexLua.o \ +- $(SCINTILLA_DIR)/gtk/LexOthers.o \ +- $(SCINTILLA_DIR)/gtk/LexPascal.o \ +- $(SCINTILLA_DIR)/gtk/LexPerl.o \ +- $(SCINTILLA_DIR)/gtk/LexPython.o \ +- $(SCINTILLA_DIR)/gtk/LexSQL.o \ +- $(SCINTILLA_DIR)/gtk/LexVB.o +-CFLAGS = $(shell gtk-config --cflags) -g -Wall -DGTK -DSCI_LEXER +-LDFLAGS = $(shell gtk-config --libs) $(SCINTILLA_LIB) $(LEXERS) +-CC = gcc +-LD = gcc ++SCINTILLA_LIB = -lscintilla ++LEXERS = -lscintilla_lexers ++CFLAGS = $(shell $(GTK_CONFIG) --cflags) -g -Wall -DGTK -DSCI_LEXER -I$(SCINTILLA_INCLUDE) ++LDFLAGS = $(shell $(GTK_CONFIG) --libs) $(SCINTILLA_LIB) $(LEXERS) ++CC ?= gcc ++LD = $(CC) + AR = ar + + SOURCES = $(wildcard *.c) +@@ -36,7 +26,7 @@ + LIB_DIR = $(PREFIX)/lib/ + INCLUDE_DIR = $(PREFIX)/include/ + +-all: ./$(SCINTILLA_LIB) $(STATIC_LIB) $(SHARED_LIB) ++all: $(STATIC_LIB) $(SHARED_LIB) + + scintilla: ./$(SCINTILLA_LIB) + diff --git a/x11-toolkits/gtkscintilla/files/patch-ab b/x11-toolkits/gtkscintilla/files/patch-ab new file mode 100644 index 000000000000..8fad40e8425d --- /dev/null +++ b/x11-toolkits/gtkscintilla/files/patch-ab @@ -0,0 +1,13 @@ +--- gtkscintilla.c 2000/12/14 10:27:02 1.1 ++++ gtkscintilla.c 2000/12/14 10:27:31 +@@ -22,8 +22,8 @@ + + /*#include "scintilla/include/Platform.h"*/ + #define PLAT_GTK 1 +-#include "scintilla/include/ScintillaWidget.h" +-#include "scintilla/include/Scintilla.h" ++#include ++#include + + static void gtk_scintilla_class_init(GtkScintillaClass *klass); + static void gtk_scintilla_init(GtkScintilla *sci); diff --git a/x11-toolkits/gtkscintilla/pkg-comment b/x11-toolkits/gtkscintilla/pkg-comment new file mode 100644 index 000000000000..99845ad946f9 --- /dev/null +++ b/x11-toolkits/gtkscintilla/pkg-comment @@ -0,0 +1 @@ +A wrapper for the Scintilla editing component diff --git a/x11-toolkits/gtkscintilla/pkg-descr b/x11-toolkits/gtkscintilla/pkg-descr new file mode 100644 index 000000000000..e7c854bca9bb --- /dev/null +++ b/x11-toolkits/gtkscintilla/pkg-descr @@ -0,0 +1,13 @@ +This is GtkScintilla, a wrapper for the Scintilla (www.scintilla.org) editing +component wich adds some facility to this powerful component written by Neil +Hodgson (and may others). + +Scintilla has two little problems: + - It is available only as a static library + - It has a strange (for Linux/GTK+ people) API + +GtkScintilla addresses both: + - It is a shared library + - It is a true GtkWidget subclass with a GTK+ API + +WWW: http://www.moleskine.f2s.com/ diff --git a/x11-toolkits/gtkscintilla/pkg-plist b/x11-toolkits/gtkscintilla/pkg-plist new file mode 100644 index 000000000000..a8a2b00285c2 --- /dev/null +++ b/x11-toolkits/gtkscintilla/pkg-plist @@ -0,0 +1,4 @@ +include/scintilla/gtkscintilla.h +lib/libgtkscintilla.a +lib/libgtkscintilla.so +lib/libgtkscintilla.so.0