1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

gPHPEdit is a Gnome2 text editor optimised for editing PHP, HTML and CSS

files. It supports editing multiple documents with a tabbed interface, PHP
syntax checking, PHP/HTML syntax highlighting, a function list for all open
documents, incremental search, pop-up function hints, and block
(un)indentation.

WWW: http://www.gphpedit.org/

PR:		ports/74204
Submitted by:	Roman Bogorodskiy <bogorodskiy@inbox.ru>
This commit is contained in:
Jeremy Messenger 2004-12-22 07:30:30 +00:00
parent 0bf9e08436
commit df10209cbc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124800
10 changed files with 272 additions and 0 deletions

View File

@ -69,6 +69,7 @@
SUBDIR += gnotepad+
SUBDIR += gnuserv
SUBDIR += gnuserv-emacs20
SUBDIR += gphpedit
SUBDIR += gxedit
SUBDIR += hexcurse
SUBDIR += hexedit

52
editors/gphpedit/Makefile Normal file
View File

@ -0,0 +1,52 @@
# New ports collection makefile for: gphpedit
# Date created: 2004-11-21
# Whom: Roman Bogorodskiy <bogorodskiy@inbox.ru>
#
# $FreeBSD$
#
PORTNAME= gphpedit
PORTVERSION= 0.9.50
CATEGORIES= editors gnome
MASTER_SITES= http://www.gphpedit.org/download/store/
MAINTAINER= bogorodskiy@inbox.ru
COMMENT= PHP, HTML and CSS development environment for GNOME 2.x
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack libgnomeui libgtkhtml
USE_X_PREFIX= yes
USE_LIBTOOL_VER=15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !defined(WITHOUT_PHP)
USE_PHP= yes
WANT_PHP_CLI= yes
.endif
.if !defined(WITHOUT_PHPDOC)
RUN_DEPENDS+= ${LOCALBASE}/share/doc/php-en/about.html:${PORTSDIR}/lang/php_doc
.endif
pre-everything::
.if !defined(WITHOUT_PHP) || !defined(WITHOUT_PHPDOC)
@${ECHO_MSG} "You may specify the following on the command line:"
@${ECHO_MSG} " "
.endif
.if !defined(WITHOUT_PHP)
@${ECHO_MSG} "WITHOUT_PHP=yes to not install php, debug script will not work without it."
.endif
.if !defined(WITHOUT_PHPDOC)
@${ECHO_MSG} "WITHOUT_PHPDOC=yes to not install php_doc, help will be disable."
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share/gnome|g' \
${WRKSRC}/src/main.h
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share/gnome|g' \
${WRKSRC}/src/calltip.c ${WRKSRC}/src/main_window.c
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/src/tab.c
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (gphpedit-0.9.50.tar.gz) = 5683f1f196d8c80bdad587a043423046
SIZE (gphpedit-0.9.50.tar.gz) = 829535

View File

@ -0,0 +1,10 @@
--- gphpedit.desktop.in.orig Sat Dec 18 14:14:16 2004
+++ gphpedit.desktop.in Sat Dec 18 14:14:39 2004
@@ -5,5 +5,5 @@
Terminal=false
MultipleArgs=true
Type=Application
-Categories=Application;Development;X-Red-Hat-Base;
-Icon=/usr/share/pixmaps/gphpedit.png
+Categories=Application;Development
+Icon=gphpedit.png

View File

@ -0,0 +1,11 @@
--- src/Makefile.in.orig Sun Nov 21 17:31:35 2004
+++ src/Makefile.in Sun Nov 21 17:32:14 2004
@@ -495,7 +495,7 @@
-g -Wall -DGTK -DSCI_LEXER
gtkscintilla2/libgtkscintilla2.a:
- cd gtkscintilla2 && make libgtkscintilla2.a && cd ..
+ @cd gtkscintilla2 && $(MAKE) libgtkscintilla2.a && cd ..
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -0,0 +1,37 @@
--- src/gtkscintilla2/Makefile.orig Wed Nov 3 07:27:52 2004
+++ src/gtkscintilla2/Makefile Sat Dec 18 14:10:04 2004
@@ -2,7 +2,7 @@
NAME = GtkScintilla2
LIB_NAME = gtkscintilla2
-VERSION = 0.1.0
+VERSION = 0
PREFIX = $(shell pkg-config --variable=prefix gtk+-2.0)
SCINTILLA_DIR = ./scintilla
@@ -10,12 +10,12 @@
SCINTILLA_LIB = $(SCINTILLA_DIR)/bin/scintilla.a
SCINTILLA_IFACE = $(SCINTILLA_INCLUDE)/Scintilla.iface
LEXERS = $(wildcard $(SCINTILLA_DIR)/gtk/Lex*.o)
-CFLAGS = $(shell pkg-config --cflags gtk+-2.0) -g -Wall -DGTK -DSCI_LEXER
-LDFLAGS_PRE = $(shell pkg-config --libs gtk+-2.0) -DGTK2
+CFLAGS += $(shell pkg-config --cflags gtk+-2.0 gthread-2.0) -Wall -DGTK -DSCI_LEXER -DPIC -fpic
+LDFLAGS_PRE = $(shell pkg-config --libs gtk+-2.0 gthread-2.0) -DGTK2
LDFLAGS_POST = $(LEXERS) $(SCINTILLA_LIB) -lstdc++
-CC = gcc
-LD = gcc
+CC ?= gcc
+LD = $(CC)
AR = ar
STATIC_LIB = lib$(LIB_NAME).a
@@ -23,7 +23,7 @@
LIB_DIR = $(PREFIX)/lib
INCLUDE_DIR = $(PREFIX)/include/$(LIB_NAME)
-PKG_CONFIG_DIR = $(PREFIX)/lib/pkgconfig
+PKG_CONFIG_DIR = $(PREFIX)/libdata/pkgconfig
all: $(STATIC_LIB) $(SHARED_LIB)

View File

@ -0,0 +1,48 @@
--- src/gtkscintilla2/scintilla/gtk/makefile.orig Wed Nov 3 07:44:13 2004
+++ src/gtkscintilla2/scintilla/gtk/makefile Sat Dec 18 14:06:07 2004
@@ -8,7 +8,7 @@
# To force GTK+ 1 build, define GTK1 on the make command line.
.SUFFIXES: .cxx .o .h .a
-CC = g++
+CC ?= g++
AR = ar
RANLIB = touch
@@ -31,29 +31,29 @@
endif
ifdef DEBUG
-CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS)
+CXXFLAGS+=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS)
else
-CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
+CXXFLAGS+=-DNDEBUG $(CXXBASEFLAGS) $(THREADFLAGS)
endif
# If explicit setting of GTK1 or GTK2 then use that else look for
# pkg-config which is an OK indication that GTK2 is available
ifdef GTK2
-CONFIGFLAGS=pkg-config --cflags gtk+-2.0
+CONFIGFLAGS=pkg-config --cflags gtk+-2.0 gthread-2.0
else
ifdef GTK1
-CONFIGFLAGS=gtk-config --cflags
+CONFIGFLAGS=gtk-config --cflags gthread
else
ifneq (,$(findstring /,$(shell whereis pkg-config)))
-CONFIGFLAGS=pkg-config --cflags gtk+-2.0
+CONFIGFLAGS=pkg-config --cflags gtk+-2.0 gthread-2.0
else
-CONFIGFLAGS=gtk-config --cflags
+CONFIGFLAGS=gtk-config --cflags gthread
endif
endif
endif
.cxx.o:
- $(CC) `$(CONFIGFLAGS)` $(CXXFLAGS) -c $<
+ $(CC) -DPIC -fpic `$(CONFIGFLAGS)` $(CXXFLAGS) -c $<
LEXOBJS=LexCPP.o LexCSS.o LexEScript.o LexHTML.o LexPerl.o LexSQL.o LexVB.o

View File

@ -0,0 +1,99 @@
--- src/tab.c.orig Sat Dec 18 14:32:38 2004
+++ src/tab.c Sat Dec 18 14:46:22 2004
@@ -407,46 +407,81 @@
GString *tab_help_find_helpfile(gchar *command)
{
GString *long_filename = NULL;
-
- // For Redhat/Fedora Core and sensible distrubutions...
- long_filename = tab_help_try_filename("/usr/share/doc/phpmanual/function.", command, ".html");
+
+ /* br (Brazillian) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-br/function.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-br/ref.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-br/", command, NULL);
+ if (long_filename)
+ return long_filename;
+
+ /* de (German) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-de/function.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-de/ref.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-de/", command, NULL);
+ if (long_filename)
+ return long_filename;
+
+ /* en (English) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-en/function.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-en/ref.", command, ".html");
+ if (long_filename)
+ return long_filename;
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-en/", command, NULL);
+ if (long_filename)
+ return long_filename;
+
+ /* es (Spanish) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-es/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/phpmanual/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-es/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/phpmanual/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-es/", command, NULL);
if (long_filename)
return long_filename;
- // For Gentoo, as much as I love it - it's twatty to put docs in a version specific folder like this!
- long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/function.", command, ".html");
+ /* fr (French) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-fr/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-fr/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-fr/", command, NULL);
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/php-docs-200403/html/function.", command, ".html");
+ /* ja (Japanese) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-ja/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/php-docs-200403/html/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-ja/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/share/doc/php-docs-200403/html/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-ja/", command, NULL);
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-4.2.3/html/function.", command, ".html");
+ /* pl (Polish) */
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-pl/function.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-4.2.3/html/ref.", command, ".html");
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-pl/ref.", command, ".html");
if (long_filename)
return long_filename;
- long_filename = tab_help_try_filename("/usr/doc/php-docs-4.2.3/html/", command, NULL);
+ long_filename = tab_help_try_filename("%%LOCALBASE%%/share/doc/php-pl/", command, NULL);
if (long_filename)
return long_filename;

View File

@ -0,0 +1,7 @@
gPHPEdit is a Gnome2 text editor optimised for editing PHP, HTML and CSS
files. It supports editing multiple documents with a tabbed interface, PHP
syntax checking, PHP/HTML syntax highlighting, a function list for all open
documents, incremental search, pop-up function hints, and block
(un)indentation.
WWW: http://www.gphpedit.org/

View File

@ -0,0 +1,5 @@
bin/gphpedit
share/gnome/applications/gphpedit.desktop
share/gnome/gphpedit/php-gphpedit.api
share/gnome/pixmaps/gphpedit.png
@dirrm share/gnome/gphpedit