[28641] trunk/dports/editors

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 5 18:49:59 PDT 2007


Revision: 28641
          http://trac.macosforge.org/projects/macports/changeset/28641
Author:   nox at macports.org
Date:     2007-09-05 18:49:58 -0700 (Wed, 05 Sep 2007)

Log Message:
-----------
scite: New port!

Added Paths:
-----------
    trunk/dports/editors/scite/
    trunk/dports/editors/scite/Portfile
    trunk/dports/editors/scite/files/
    trunk/dports/editors/scite/files/patch-scintilla-gtk-makefile
    trunk/dports/editors/scite/files/patch-scite-gtk-makefile

Added: trunk/dports/editors/scite/Portfile
===================================================================
--- trunk/dports/editors/scite/Portfile	                        (rev 0)
+++ trunk/dports/editors/scite/Portfile	2007-09-06 01:49:58 UTC (rev 28641)
@@ -0,0 +1,55 @@
+# $Id$
+
+PortSystem		1.0
+
+name			scite
+version			1.74
+categories		editors
+platforms		darwin
+maintainers		nox
+description		SciTE is a SCIntilla based Text Editor.
+
+long_description \
+	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.
+
+homepage		http://scintilla.sourceforge.net/SciTE.html
+master_sites	sourceforge:scintilla
+distname		${name}[strsed ${version} {g/\.//}]
+extract.suffix	.tgz
+
+depends_build	port:pkgconfig
+depends_lib		port:gtk2
+
+checksums		md5 09ad25f1fa6dab3feec41dba2480047f \
+				sha1 64066ed557c15821a50955b86acdda0d32e0a472 \
+				rmd160 a4547865bf2884108fbfbc8eaae1c7d1200ddd47
+
+worksrcdir		${name}/gtk
+
+patchfiles		patch-scintilla-gtk-makefile \
+				patch-scite-gtk-makefile 
+
+post-patch {
+	cd ${workpath}/scintilla
+	reinplace -E "s/#ifdef (PLAT_MACOSX|__APPLE__)/#if PLAT_MACOSX/" include/Platform.h src/Editor.cxx
+}
+
+use_configure	no
+
+build.args		prefix=${prefix} GTK2=yes
+
+pre-build {
+	cd ${workpath}/scintilla/gtk
+	system "make GTK2=yes"
+}
+
+destroot.destdir prefix=${destroot}${prefix}
+
+post-destroot {
+	xinstall -m 0444 ${worksrcpath}/../doc/scite.1 ${destroot}${prefix}/share/man/man1
+}
+
+livecheck.distname SciTE
+


Property changes on: trunk/dports/editors/scite/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/editors/scite/files/patch-scintilla-gtk-makefile
===================================================================
--- trunk/dports/editors/scite/files/patch-scintilla-gtk-makefile	                        (rev 0)
+++ trunk/dports/editors/scite/files/patch-scintilla-gtk-makefile	2007-09-06 01:49:58 UTC (rev 28641)
@@ -0,0 +1,14 @@
+--- ../../scintilla/gtk/makefile.orig	2007-09-06 02:46:18.000000000 +0200
++++ ../../scintilla/gtk/makefile	2007-09-06 02:43:53.000000000 +0200
+@@ -56,9 +56,9 @@
+ endif
+ 
+ .cxx.o:
+-	$(CC) $(CONFIGFLAGS) $(CXXFLAGS) -c $<
++	$(CC) $(CXXFLAGS) $(CONFIGFLAGS) -c $<
+ .c.o:
+-	$(CCOMP) $(CONFIGFLAGS) $(CXXFLAGS) -w -c $<
++	$(CCOMP) $(CXXFLAGS) $(CONFIGFLAGS) -w -c $<
+ 
+ #++Autogenerated -- run src/LexGen.py to regenerate
+ #**LEXOBJS=\\\n\(\*.o \)

Added: trunk/dports/editors/scite/files/patch-scite-gtk-makefile
===================================================================
--- trunk/dports/editors/scite/files/patch-scite-gtk-makefile	                        (rev 0)
+++ trunk/dports/editors/scite/files/patch-scite-gtk-makefile	2007-09-06 01:49:58 UTC (rev 28641)
@@ -0,0 +1,27 @@
+--- makefile.orig	2007-09-06 03:44:52.000000000 +0200
++++ makefile	2007-09-06 03:46:16.000000000 +0200
+@@ -45,7 +45,7 @@
+ bindir=$(prefix)/bin
+ SYSCONF_PATH=$(prefix)/share/scite
+ 
+-INSTALL=install -o root -g root
++INSTALL=install
+ 
+ PROG	= ../bin/SciTE
+ 
+@@ -89,13 +89,13 @@
+ endif
+ 
+ .cxx.o:
+-	$(CC) $(CONFIGFLAGS) $(CXXFLAGS) -c $< -o $@
++	$(CC) $(CXXFLAGS) $(CONFIGFLAGS) -c $< -o $@
+ 
+ clean:
+ 	rm -f *.o $(PROG)
+ 
+ deps:
+-	$(CC) -MM $(CONFIGFLAGS) $(CXXFLAGS) *.cxx ../src/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak
++	$(CC) -MM $(CXXFLAGS) $(CONFIGFLAGS) *.cxx ../src/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak 
+ 
+ # make should be run in ../../scintilla/gtk to compile all the lexers.
+ COMPLIB=../../scintilla/bin/scintilla.a

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070905/eb9766a6/attachment.html


More information about the macports-changes mailing list