summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-05-04 06:10:14 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-05-04 06:10:14 +0800
commitecb846cec811f91bf826872fa8aafa5e1cec171d (patch)
tree278a13f16ce93e6a911c41c3950d9962a08a6159 /editors
parent7a5dca66bb9300d2f6f1ef7647353c14e6ea5137 (diff)
downloadmarcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.tar
marcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.tar.gz
marcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.tar.bz2
marcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.tar.lz
marcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.tar.xz
marcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.tar.zst
marcuscom-ports-ecb846cec811f91bf826872fa8aafa5e1cec171d.zip
share/gnome/ -> share/
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8796 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'editors')
-rw-r--r--editors/glimmer/Makefile53
-rw-r--r--editors/glimmer/distinfo3
-rw-r--r--editors/glimmer/files/patch-configure41
-rw-r--r--editors/glimmer/files/patch-ltmain.sh28
-rw-r--r--editors/glimmer/files/patch-po::Makefile.in.in14
-rw-r--r--editors/glimmer/files/patch-src::gtkextext::gtkextext.h17
-rw-r--r--editors/glimmer/files/patch-src_file-io_c23
-rw-r--r--editors/glimmer/files/patch-src_gtkextext_gtkextext.c12
-rw-r--r--editors/glimmer/files/patch-src_main_c28
-rw-r--r--editors/glimmer/files/patch-src_mdi-routines.c23
-rw-r--r--editors/glimmer/pkg-descr10
-rw-r--r--editors/glimmer/pkg-plist73
12 files changed, 325 insertions, 0 deletions
diff --git a/editors/glimmer/Makefile b/editors/glimmer/Makefile
new file mode 100644
index 000000000..bc357052a
--- /dev/null
+++ b/editors/glimmer/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: glimmer
+# Date created: 1 August 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= glimmer
+PORTVERSION= 1.2.1
+PORTREVISION= 5
+CATEGORIES= editors gnome python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A full featured code editor for GNOME with many advanced features
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-1.2/_gtkmodule.so:${PORTSDIR}/x11-toolkits/py-gtk
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-1.2/_gtkmodule.so:${PORTSDIR}/x11-toolkits/py-gtk
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+USE_X_PREFIX= yes
+USE_PYTHON= yes
+USE_GMAKE= yes
+USE_GNOME= gnomeprefix gnomehack gnomelibs gnomeprint gnomevfs \
+ gnomeprefix
+USE_GETTEXT= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-regex
+.if exists(/usr/lib/libcrypto.a)
+PYTHON_LIBS= -lssl -lcrypto
+.endif
+PYTHON_LIBS+= -lutil -lreadline -lcrypt -lpython
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 502104
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/gnu" \
+ LIBS="-L${LOCALBASE}/lib -lgnuregex"
+.else
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D_REGEX_H_ -D_REGEX_H" \
+ LIBS="-L${LOCALBASE}/lib -lgnuregex"
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpython|${PYTHON_LIBS}|g' ${WRKSRC}/configure
+.if ${OSVERSION} >= 502104
+ @${REINPLACE_CMD} -e 's|gnuregex\.h|regex.h|' \
+ ${WRKSRC}/src/gtkextext/gtkextext.h
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/glimmer/distinfo b/editors/glimmer/distinfo
new file mode 100644
index 000000000..77ff3abfd
--- /dev/null
+++ b/editors/glimmer/distinfo
@@ -0,0 +1,3 @@
+MD5 (glimmer-1.2.1.tar.gz) = ca0a856b58f91b1bdef7f0828b31490a
+SHA256 (glimmer-1.2.1.tar.gz) = 38e1bd264a45c25e67c1800ee92af6d45ca2f844bc6bf3126657d28053a9d616
+SIZE (glimmer-1.2.1.tar.gz) = 801711
diff --git a/editors/glimmer/files/patch-configure b/editors/glimmer/files/patch-configure
new file mode 100644
index 000000000..43255026d
--- /dev/null
+++ b/editors/glimmer/files/patch-configure
@@ -0,0 +1,41 @@
+
+$FreeBSD: ports/editors/glimmer/files/patch-configure,v 1.4 2002/04/08 11:04:35 sobomax Exp $
+
+--- configure.orig Thu Feb 7 15:54:38 2002
++++ configure Thu Feb 7 16:09:08 2002
+@@ -8605,7 +8605,7 @@
+ echo "${ECHO_T}no" >&6
+ fi
+
+- CATOBJEXT=.gmo
++ CATOBJEXT=.mo
+ fi
+
+ fi
+@@ -8729,7 +8729,7 @@
+
+ BUILD_INCLUDED_LIBINTL=yes
+ USE_INCLUDED_LIBINTL=yes
+- CATOBJEXT=.gmo
++ CATOBJEXT=.mo
+ INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
+ LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+ fi
+@@ -8819,7 +8819,7 @@
+ fi
+
+ for lang in $ALL_LINGUAS; do
+- GMOFILES="$GMOFILES $lang.gmo"
++ GMOFILES="$GMOFILES $lang.mo"
+ POFILES="$POFILES $lang.po"
+ done
+
+@@ -10202,7 +10202,7 @@
+ fi
+ echo System regex.......$use_system_regex
+
+-echo GTK+ version.......`gtk-config --version`
++echo GTK+ version.......`$GTK_CONFIG --version`
+ echo GNOME version......`gnome-config --version`
+ echo
+ echo
diff --git a/editors/glimmer/files/patch-ltmain.sh b/editors/glimmer/files/patch-ltmain.sh
new file mode 100644
index 000000000..e812d9944
--- /dev/null
+++ b/editors/glimmer/files/patch-ltmain.sh
@@ -0,0 +1,28 @@
+
+$FreeBSD: ports/editors/glimmer/files/patch-ltmain.sh,v 1.3 2001/12/20 06:18:55 sobomax Exp $
+
+--- ltmain.sh 2001/08/27 09:51:26 1.1
++++ ltmain.sh 2001/08/27 09:51:42
+@@ -2408,6 +2408,9 @@
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
++ *-*-freebsd*)
++ # FreeBSD doesn't need this...
++ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+@@ -4175,10 +4178,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/editors/glimmer/files/patch-po::Makefile.in.in b/editors/glimmer/files/patch-po::Makefile.in.in
new file mode 100644
index 000000000..c8f3cb981
--- /dev/null
+++ b/editors/glimmer/files/patch-po::Makefile.in.in
@@ -0,0 +1,14 @@
+
+$FreeBSD: ports/editors/glimmer/files/patch-po::Makefile.in.in,v 1.1 2002/02/07 14:13:56 sobomax Exp $
+
+--- po/Makefile.in.in 2002/02/07 13:50:02 1.1
++++ po/Makefile.in.in 2002/02/07 13:51:15
+@@ -52,7 +52,7 @@
+ POTFILES = \
+
+ CATALOGS = @CATALOGS@
+-CATOBJEXT = @CATOBJEXT@
++CATOBJEXT = .mo
+ INSTOBJEXT = @INSTOBJEXT@
+
+ .SUFFIXES:
diff --git a/editors/glimmer/files/patch-src::gtkextext::gtkextext.h b/editors/glimmer/files/patch-src::gtkextext::gtkextext.h
new file mode 100644
index 000000000..e1b4b7f81
--- /dev/null
+++ b/editors/glimmer/files/patch-src::gtkextext::gtkextext.h
@@ -0,0 +1,17 @@
+
+$FreeBSD: ports/editors/glimmer/files/patch-src::gtkextext::gtkextext.h,v 1.2 2001/11/19 11:51:47 sobomax Exp $
+
+--- src/gtkextext/gtkextext.h.orig Fri Oct 26 23:57:02 2001
++++ src/gtkextext/gtkextext.h Mon Nov 19 13:16:44 2001
+@@ -30,8 +30,10 @@
+
+ #include <sys/types.h>
+
++#include "config.h"
++
+ #ifdef WITH_SYSTEM_REGEX
+-#include <regex.h>
++#include <gnuregex.h>
+ #else
+ #include "regex.h"
+ #endif
diff --git a/editors/glimmer/files/patch-src_file-io_c b/editors/glimmer/files/patch-src_file-io_c
new file mode 100644
index 000000000..4b5fa3a0f
--- /dev/null
+++ b/editors/glimmer/files/patch-src_file-io_c
@@ -0,0 +1,23 @@
+--- src/file-io.c.orig Thu Jan 10 12:51:15 2002
++++ src/file-io.c Sat Jun 28 12:38:16 2003
+@@ -24,6 +24,7 @@
+
+ #include <unistd.h>
+ #include <sys/types.h>
++#include <sys/param.h>
+
+ #include "declarations.h"
+ #include "file-io.h"
+@@ -102,10 +103,10 @@
+ new_file_real (char *filename)
+ {
+ GnomeVFSURI *uri;
+- gchar cwd[256];
++ gchar cwd[MAXPATHLEN];
+ gchar *full;
+
+- getcwd (cwd, 256);
++ getcwd (cwd, sizeof(cwd));
+ full = g_strconcat (cwd, "/", filename, NULL);
+ uri = gnome_vfs_uri_new (full);
+ g_free (full);
diff --git a/editors/glimmer/files/patch-src_gtkextext_gtkextext.c b/editors/glimmer/files/patch-src_gtkextext_gtkextext.c
new file mode 100644
index 000000000..4518af2b8
--- /dev/null
+++ b/editors/glimmer/files/patch-src_gtkextext_gtkextext.c
@@ -0,0 +1,12 @@
+--- src/gtkextext/gtkextext.c.orig Sat Apr 7 01:47:56 2007
++++ src/gtkextext/gtkextext.c Sat Apr 7 01:52:20 2007
+@@ -1140,7 +1140,8 @@ line_set_cursor_pos (GtkExText * text, g
+ val = (gfloat) width;
+ gtk_adjustment_set_value (text->hadj, val);
+ } else if (text->draw_numbers && width < (val + text->gutter_width)) {
+- val = (gfloat) width -= text->gutter_width;
++ width -= text->gutter_width;
++ val = (gfloat) width;
+ gtk_adjustment_set_value (text->hadj, val);
+ }
+
diff --git a/editors/glimmer/files/patch-src_main_c b/editors/glimmer/files/patch-src_main_c
new file mode 100644
index 000000000..e4d43afdf
--- /dev/null
+++ b/editors/glimmer/files/patch-src_main_c
@@ -0,0 +1,28 @@
+--- src/main.c.orig Thu Jan 10 12:37:37 2002
++++ src/main.c Sat Jun 28 12:38:50 2003
+@@ -15,6 +15,7 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
++#include <sys/param.h>
+ #include <sys/wait.h>
+
+ #include "declarations.h"
+@@ -342,7 +343,7 @@
+ gchar *path;
+ gchar *file;
+ gchar *full;
+- gchar cwd[256];
++ gchar cwd[MAXPATHLEN];
+
+ args = (gchar **) poptGetArgs (pctx);
+
+@@ -381,7 +382,7 @@
+ }
+ }
+ if (input_file) {
+- gchar *path, *file, *full, cwd[256];
++ gchar *path, *file, *full, cwd[MAXPATHLEN];
+
+ getcwd (cwd, sizeof (cwd));
+ path = get_path_from_filename (input_file);
diff --git a/editors/glimmer/files/patch-src_mdi-routines.c b/editors/glimmer/files/patch-src_mdi-routines.c
new file mode 100644
index 000000000..538cf80ed
--- /dev/null
+++ b/editors/glimmer/files/patch-src_mdi-routines.c
@@ -0,0 +1,23 @@
+--- src/mdi-routines.c.orig Tue May 7 13:35:06 2002
++++ src/mdi-routines.c Tue May 7 13:40:16 2002
+@@ -150,7 +150,7 @@
+ length = text->length;
+ line = text->line_number + 1;
+ lines = GTK_EXTEXT (cur_file->text)->line_count + 1;
+- if (pos >= 0 && pos <= text->length && text->length > 0)
++ if (pos >= 0 && pos < text->length && text->length > 0)
+ cur_char = GTK_EXTEXT_INDEX (text, pos);
+ else
+ cur_char = 0;
+@@ -166,7 +166,10 @@
+ else
+ gtk_widget_set_sensitive (search_menu_match, TRUE);
+
+- cur_char = GTK_EXTEXT_INDEX (text, pos);
++ if (pos < text->length)
++ cur_char = GTK_EXTEXT_INDEX (text, pos);
++ else
++ cur_char = 0;
+ if (cur_char < 1 || !strchr ("{[()]}", cur_char) || length < 1)
+ gtk_widget_set_sensitive (search_menu_select, FALSE);
+ else
diff --git a/editors/glimmer/pkg-descr b/editors/glimmer/pkg-descr
new file mode 100644
index 000000000..185635316
--- /dev/null
+++ b/editors/glimmer/pkg-descr
@@ -0,0 +1,10 @@
+Glimmer is currently the most advanced text/code editor for GNOME. It is a full
+featured code editor with many advanced features, including scripting
+integration with either Python or Guile.
+
+At the current time, Glimmer has syntax highlighting support for the following
+languages: Bash/Sh, C/C++, HTML, Java, Latex, GNU Make, Perl, PHP, PO
+(Language Translation), Python, Scheme (guile, lisp, etc), SGML, WML, XML, and
+Z80 Assembly.
+
+WWW: http://glimmer.sourceforge.net/
diff --git a/editors/glimmer/pkg-plist b/editors/glimmer/pkg-plist
new file mode 100644
index 000000000..c81ab7b21
--- /dev/null
+++ b/editors/glimmer/pkg-plist
@@ -0,0 +1,73 @@
+bin/glimmer
+bin/glimmerout
+%%DATADIR%%/docs/AUTHORS
+%%DATADIR%%/docs/COPYING
+%%DATADIR%%/docs/ChangeLog
+%%DATADIR%%/docs/NEWS
+%%DATADIR%%/docs/PROPS
+%%DATADIR%%/docs/README
+%%DATADIR%%/docs/TODO
+%%DATADIR%%/languages/ada.lang
+%%DATADIR%%/languages/asp.lang
+%%DATADIR%%/languages/bash.lang
+%%DATADIR%%/languages/c.lang
+%%DATADIR%%/languages/cpp.lang
+%%DATADIR%%/languages/dtml.lang
+%%DATADIR%%/languages/fortran.lang
+%%DATADIR%%/languages/html.lang
+%%DATADIR%%/languages/java.lang
+%%DATADIR%%/languages/js.lang
+%%DATADIR%%/languages/lang.lang
+%%DATADIR%%/languages/latex.lang
+%%DATADIR%%/languages/make.lang
+%%DATADIR%%/languages/ocaml.lang
+%%DATADIR%%/languages/oolong.lang
+%%DATADIR%%/languages/perl.lang
+%%DATADIR%%/languages/php.lang
+%%DATADIR%%/languages/po.lang
+%%DATADIR%%/languages/python.lang
+%%DATADIR%%/languages/ruby.lang
+%%DATADIR%%/languages/scheme.lang
+%%DATADIR%%/languages/sgml.lang
+%%DATADIR%%/languages/sql.lang
+%%DATADIR%%/languages/tcltk.lang
+%%DATADIR%%/languages/wml.lang
+%%DATADIR%%/languages/x86.lang
+%%DATADIR%%/languages/xhtml-trans.lang
+%%DATADIR%%/languages/xml.lang
+%%DATADIR%%/languages/z80.lang
+%%DATADIR%%/scripts/Bookmarks.py
+%%DATADIR%%/scripts/Delete_To_End.py
+%%DATADIR%%/scripts/Delete_To_Start.py
+%%DATADIR%%/scripts/FileSelector.py
+%%DATADIR%%/scripts/Global.py
+%%DATADIR%%/scripts/ISO2HTML.py
+%%DATADIR%%/scripts/Replace_Spaces.py
+%%DATADIR%%/scripts/Replace_Tabs.py
+%%DATADIR%%/scripts/To_Lower.py
+%%DATADIR%%/scripts/To_Upper.py
+share/gnome/apps/Development/glimmer.desktop
+share/gnome/help/glimmer/C/bugs.html
+share/gnome/help/glimmer/C/customize.html
+share/gnome/help/glimmer/C/faq.html
+share/gnome/help/glimmer/C/gpl.html
+share/gnome/help/glimmer/C/index.html
+share/gnome/help/glimmer/C/menus.html
+share/gnome/help/glimmer/C/mission.html
+share/gnome/help/glimmer/C/preferences.html
+share/gnome/help/glimmer/C/properties.html
+share/gnome/help/glimmer/C/sessions.html
+share/gnome/help/glimmer/C/topic.dat
+share/locale/de/LC_MESSAGES/glimmer.mo
+share/locale/es/LC_MESSAGES/glimmer.mo
+share/locale/ja/LC_MESSAGES/glimmer.mo
+share/locale/sv/LC_MESSAGES/glimmer.mo
+share/pixmaps/glimmer-icon.png
+share/pixmaps/glimmer-splash.png
+share/pixmaps/glimmer-title.png
+@dirrm share/gnome/help/glimmer/C
+@dirrm share/gnome/help/glimmer
+@dirrm %%DATADIR%%/scripts
+@dirrm %%DATADIR%%/languages
+@dirrm %%DATADIR%%/docs
+@dirrm %%DATADIR%%