mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Add GtkScintilla. GtkScintilla is a wrapper for the Scintilla editing
component wich adds some facility to this powerful component.
This commit is contained in:
parent
f1af9ee53d
commit
8d0657e26a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35972
@ -30,6 +30,7 @@
|
||||
SUBDIR += gtkextra
|
||||
SUBDIR += gtkextra--
|
||||
SUBDIR += gtkglarea
|
||||
SUBDIR += gtkscintilla
|
||||
SUBDIR += gtkstep
|
||||
SUBDIR += gtkstep-pastel
|
||||
SUBDIR += guile-gnome
|
||||
|
30
x11-toolkits/gtkscintilla/Makefile
Normal file
30
x11-toolkits/gtkscintilla/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# New ports collection makefile for: gtkscintilla
|
||||
# Date created: 14 December 2000
|
||||
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
1
x11-toolkits/gtkscintilla/distinfo
Normal file
1
x11-toolkits/gtkscintilla/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (GtkScintilla-0.2.tar.gz) = c5118a50c0b932c62e4510f7fb2f8e63
|
49
x11-toolkits/gtkscintilla/files/patch-aa
Normal file
49
x11-toolkits/gtkscintilla/files/patch-aa
Normal file
@ -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)
|
||||
|
13
x11-toolkits/gtkscintilla/files/patch-ab
Normal file
13
x11-toolkits/gtkscintilla/files/patch-ab
Normal file
@ -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 <ScintillaWidget.h>
|
||||
+#include <Scintilla.h>
|
||||
|
||||
static void gtk_scintilla_class_init(GtkScintillaClass *klass);
|
||||
static void gtk_scintilla_init(GtkScintilla *sci);
|
1
x11-toolkits/gtkscintilla/pkg-comment
Normal file
1
x11-toolkits/gtkscintilla/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A wrapper for the Scintilla editing component
|
13
x11-toolkits/gtkscintilla/pkg-descr
Normal file
13
x11-toolkits/gtkscintilla/pkg-descr
Normal file
@ -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/
|
4
x11-toolkits/gtkscintilla/pkg-plist
Normal file
4
x11-toolkits/gtkscintilla/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
include/scintilla/gtkscintilla.h
|
||||
lib/libgtkscintilla.a
|
||||
lib/libgtkscintilla.so
|
||||
lib/libgtkscintilla.so.0
|
Loading…
Reference in New Issue
Block a user