[62612] trunk/dports/textproc
nox at macports.org
nox at macports.org
Mon Jan 11 21:21:52 PST 2010
Revision: 62612
http://trac.macports.org/changeset/62612
Author: nox at macports.org
Date: 2010-01-11 21:21:51 -0800 (Mon, 11 Jan 2010)
Log Message:
-----------
Create new port colorer
Colorer take5 is a syntax highlighting and text parsing library, that
provides services of text parsing in host editor systems in real-time
and transforming results into colored text. Result information allows to
search and build outlined lists of functions, structures, and to search
and indent programming language constructions (brackets, paired tags).
Added Paths:
-----------
trunk/dports/textproc/colorer/
trunk/dports/textproc/colorer/Portfile
trunk/dports/textproc/colorer/files/
trunk/dports/textproc/colorer/files/patch-Makefile.in.diff
Added: trunk/dports/textproc/colorer/Portfile
===================================================================
--- trunk/dports/textproc/colorer/Portfile (rev 0)
+++ trunk/dports/textproc/colorer/Portfile 2010-01-12 05:21:51 UTC (rev 62612)
@@ -0,0 +1,84 @@
+# $Id$
+
+PortSystem 1.0
+
+name colorer
+version take5.be5
+license MPL-1.1 GPL-2.0 LGPL-2.1
+categories textproc devel
+platforms darwin
+maintainers nox openmaintainer
+description A library that provides source text syntax highlighting services
+
+long_description \
+ Colorer take5 is a syntax highlighting and text parsing library, that \
+ provides services of text parsing in host editor systems in real-time and \
+ transforming results into colored text. Result information allows to \
+ search and build outlined lists of functions, structures, and to search \
+ and indent programming language constructions (brackets, paired tags).
+
+homepage http://colorer.sourceforge.net/
+master_sites sourceforge
+distname Colorer-${version}
+use_zip yes
+
+checksums md5 075ede3afc260766fe13c71850a5e6c0 \
+ sha1 53cd454779621c09954ce70b6d06a4e1903ed6af \
+ rmd160 87c9ad2b99343c19e74211e658eb73ebcf0bcea9
+
+post-extract {
+ copy \
+ ${worksrcpath}/src/libcolorer/linux/Makefile.in \
+ ${worksrcpath}
+}
+
+patchfiles patch-Makefile.in.diff
+
+post-patch {
+ # Use makefile.macos for colorer
+ reinplace {/\/colorer/s/gcc/macos/} ${worksrcpath}/Makefile.in
+
+ # error: cast from 'int*' to 'int' loses precision
+ reinplace s/int(/bool(/ ${worksrcpath}/src/shared/unicode/BitArray.cpp
+
+ # Libraries extension is ".dylib" on Darwin, not ".so"
+ reinplace {s/\.so/.dylib/} \
+ ${worksrcpath}/Makefile.in \
+ ${worksrcpath}/src/libcolorer/makefile.gcc
+
+ # The flag to build dynamic libraries on Darwin is -dynamiclib
+ # Furthermore we need to write down libcolorer install name
+ reinplace \
+ "s:-shared:-dynamiclib -install_name ${prefix}/lib/lib\$(TARGET):" \
+ ${worksrcpath}/src/libcolorer/makefile.gcc
+
+ # Do not force installation as root
+ reinplace {s/-g 0 -o 0//} ${worksrcpath}/Makefile.in
+
+ # Install documentation in an unversioned directory
+ reinplace s:doc/colorer-take5:doc/colorer: ${worksrcpath}/Makefile.in
+}
+
+configure.cmd sh src/libcolorer/linux/configure
+configure.args --srcdir=.
+
+build.target colorer
+use_parallel_build yes
+
+destroot.destdir prefix=${destroot}${prefix}
+destroot.args -B
+
+if {[variant_isset universal]} {
+ post-patch {
+ # Use MacPorts universal flags
+ reinplace "/^CPPFLAGS/s:\$: ${configure.universal_cflags}:" \
+ ${worksrcpath}/src/shared/makefile.colorer.gcc
+ reinplace -E "/^(LIB)?FLAGS/s:\$: ${configure.universal_ldflags}:" \
+ ${worksrcpath}/src/colorer/makefile.macos \
+ ${worksrcpath}/src/libcolorer/makefile.gcc
+ }
+}
+
+livecheck.type regex
+livecheck.url ${homepage}whatsnew/history.html
+livecheck.regex {<h2>([^,]*), Latest}
Property changes on: trunk/dports/textproc/colorer/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/colorer/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/textproc/colorer/files/patch-Makefile.in.diff (rev 0)
+++ trunk/dports/textproc/colorer/files/patch-Makefile.in.diff 2010-01-12 05:21:51 UTC (rev 62612)
@@ -0,0 +1,14 @@
+Do not use GNU cp --parents flag
+
+--- Makefile.in.orig 2010-01-12 05:09:19.000000000 +0100
++++ Makefile.in 2010-01-12 05:13:13.000000000 +0100
+@@ -37,5 +37,8 @@
+
+ install -g 0 -o 0 -m 755 -d $(prefix)/include
+ install -g 0 -o 0 -m 755 -d $(prefix)/include/colorer
+- cd src/shared; cp --parents `find . -name '*.h'` $(prefix)/include/colorer
++ cd src/shared; for f in `find . -name '*.h'`; do \
++ mkdir -p $(prefix)/include/colorer/`dirname $$f`; \
++ cp $$f $(prefix)/include/colorer/`dirname $$f`; \
++ done
+ cd ../..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100111/b42f0f25/attachment-0001.html>
More information about the macports-changes
mailing list