From a2014e7a8b7c7f2ca60b20b1467241814dbdcb4b Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 27 Nov 2000 13:54:39 +0000 Subject: Add SciTE - a full-featured SCIntilla based Text Editor for GTK/GNOME. --- editors/Makefile | 1 + editors/scite/Makefile | 29 ++++++++++++++++++ editors/scite/distinfo | 1 + editors/scite/files/patch-aa | 70 ++++++++++++++++++++++++++++++++++++++++++++ editors/scite/pkg-comment | 1 + editors/scite/pkg-descr | 7 +++++ editors/scite/pkg-plist | 17 +++++++++++ 7 files changed, 126 insertions(+) create mode 100644 editors/scite/Makefile create mode 100644 editors/scite/distinfo create mode 100644 editors/scite/files/patch-aa create mode 100644 editors/scite/pkg-comment create mode 100644 editors/scite/pkg-descr create mode 100644 editors/scite/pkg-plist diff --git a/editors/Makefile b/editors/Makefile index c1e01fbbdc94..a076d4530fcd 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -75,6 +75,7 @@ SUBDIR += psgml-mule SUBDIR += psgml-xemacs21-mule SUBDIR += sam + SUBDIR += scite SUBDIR += semi-emacs SUBDIR += semi-emacs-current SUBDIR += semi-emacs20 diff --git a/editors/scite/Makefile b/editors/scite/Makefile new file mode 100644 index 000000000000..206e29546052 --- /dev/null +++ b/editors/scite/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: skite +# Date created: 27 November 2000 +# Whom: Maxim Sobolev +# +# $FreeBSD$ +# + +PORTNAME= scite +PORTVERSION= 1.33 +CATEGORIES= editors gnome +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://www.scintilla.org/ +MASTER_SITE_SUBDIR= scintilla +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} +EXTRACT_SUFX= .tgz + +MAINTAINER= sobomax@FreeBSD.org + +LIB_DEPENDS= scintilla.1:${PORTSDIR}/x11-toolkits/scintilla + +WRKSRC= ${WRKDIR}/${PORTNAME}/gtk + +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= yes +MAKEFILE= makefile +MAKE_ENV= MKDIR="${MKDIR}" + +.include diff --git a/editors/scite/distinfo b/editors/scite/distinfo new file mode 100644 index 000000000000..57ef6b3924ca --- /dev/null +++ b/editors/scite/distinfo @@ -0,0 +1 @@ +MD5 (scite133.tgz) = 16b979dc58ab5d23aea51cd32a0ce428 diff --git a/editors/scite/files/patch-aa b/editors/scite/files/patch-aa new file mode 100644 index 000000000000..819eb6ffb9a2 --- /dev/null +++ b/editors/scite/files/patch-aa @@ -0,0 +1,70 @@ +--- makefile 2000/11/27 12:56:18 1.1 ++++ makefile 2000/11/27 13:21:13 +@@ -10,24 +10,24 @@ + + # For the Gnome desktop stuff to work, prefix must point to where Gnome thinks it is. + # "h@h@" is printed here when gnome-config unavailable. Seems harmless. +-gnomeprefix:=$(shell gnome-config --prefix 2>/dev/null) ++gnomeprefix=$(PREFIX) + ifdef gnomeprefix + prefix=$(gnomeprefix) +- datadir=$(gnomeprefix)/share ++ datadir=$(gnomeprefix)/share/gnome + pixmapdir=$(datadir)/pixmaps + else + prefix=/usr/local + endif + bindir=$(prefix)/bin +-SYSCONF_PATH=$(prefix)/share/scite ++SYSCONF_PATH=$(prefix)/share/gnome/scite + + PROG = ../bin/SciTE + +-vpath %.h ../src ../../scintilla/include ++vpath %.h ../src $(X11BASE)/include/scintilla + vpath %.cxx ../src + + #CXXFLAGS= -g -DGTK -DSCI_LEXER -DSYSCONF_PATH=\"$(SYSCONF_PATH)\" -Wwrite-strings +-INCLUDEDIRS=-I ../../scintilla/include -I ../src ++INCLUDEDIRS=-I $(X11BASE)/include/scintilla -I ../src + CXXBASEFLAGS= -DGTK -DSCI_LEXER -DSYSCONF_PATH=\"$(SYSCONF_PATH)\" -W -Wall + + ifdef DEBUG +@@ -37,7 +37,7 @@ + endif + + .cxx.o: +- $(CC) `gtk-config --cflags` $(INCLUDEDIRS) $(CXXFLAGS) -c $< -o $@ ++ $(CC) `$(GTK_CONFIG) --cflags` $(INCLUDEDIRS) $(CXXFLAGS) -c $< -o $@ + + all: $(PROG) + +@@ -52,8 +52,8 @@ + ../../scintilla/gtk/LexConf.o \ + ../../scintilla/gtk/LexPerl.o + +-$(PROG): SciTEGTK.o SciTEBase.o SciTEBuffers.o SciTEIO.o SciTEProps.o ../../scintilla/bin/scintilla.a $(LEXEROBJS) +- $(CC) `gtk-config --libs` -DGTK $^ -o $@ ++$(PROG): SciTEGTK.o SciTEBase.o SciTEBuffers.o SciTEIO.o SciTEProps.o # ../../scintilla/bin/scintilla.a $(LEXEROBJS) ++ $(CC) `$(GTK_CONFIG) --libs` -DGTK $^ -o $@ -L${X11BASE}/lib -lscintilla -lscintilla_lexers + + # SciTE-static no longer builds. Kept here in case of later need. + SciTE-static: SciTEGTK.o SciTEBase.o SciTEBuffers.o SciTEIO.o SciTEProps.o \ +@@ -78,12 +78,12 @@ + # This is OK - just means no SciTE in the Gnome Applications menu + # Dead: install -D SciTEGTK.properties $(SYSCONF_PATH)/SciTEGlobal.properties + install: +- install -s $(PROG) $(bindir) +- install -d $(SYSCONF_PATH) +- install -D ../src/*.properties $(SYSCONF_PATH) ++ $(BSD_INSTALL_PROGRAM) $(PROG) $(bindir) ++ $(MKDIR) $(SYSCONF_PATH) ++ $(BSD_INSTALL_DATA) ../src/*.properties $(SYSCONF_PATH) + ifdef gnomeprefix +- install SciTE.desktop $(datadir)/gnome/apps/Applications +- install Sci48M.png $(pixmapdir) ++ $(BSD_INSTALL_DATA) SciTE.desktop $(datadir)/apps/Applications ++ $(BSD_INSTALL_DATA) Sci48M.png $(pixmapdir) + endif + + uninstall: diff --git a/editors/scite/pkg-comment b/editors/scite/pkg-comment new file mode 100644 index 000000000000..3ad1e2da60b6 --- /dev/null +++ b/editors/scite/pkg-comment @@ -0,0 +1 @@ +A full-featured SCIntilla based Text Editor for GTK/GNOME diff --git a/editors/scite/pkg-descr b/editors/scite/pkg-descr new file mode 100644 index 000000000000..b2f561bc178e --- /dev/null +++ b/editors/scite/pkg-descr @@ -0,0 +1,7 @@ +SciTE is a SCIntilla based Text Editor. Originally built to demonstrate +Scintilla, it has grown to be a generally useful editor with facilities for +building and running programs. It is best used for jobs with simple +configurations - I use it for building test and demonstration programs as well +as SciTE and Scintilla, themselves. + +WWW: http://www.scintilla.org/SciTE.html diff --git a/editors/scite/pkg-plist b/editors/scite/pkg-plist new file mode 100644 index 000000000000..f87a67f6aa7e --- /dev/null +++ b/editors/scite/pkg-plist @@ -0,0 +1,17 @@ +bin/SciTE +share/gnome/apps/Applications/SciTE.desktop +share/gnome/pixmaps/Sci48M.png +share/gnome/scite/Embedded.properties +share/gnome/scite/SciTE.properties +share/gnome/scite/SciTEGlobal.properties +share/gnome/scite/conf.properties +share/gnome/scite/cpp.properties +share/gnome/scite/html.properties +share/gnome/scite/latex.properties +share/gnome/scite/lua.properties +share/gnome/scite/others.properties +share/gnome/scite/perl.properties +share/gnome/scite/python.properties +share/gnome/scite/sql.properties +share/gnome/scite/vb.properties +@dirrm share/gnome/scite -- cgit v1.2.3