[24332] trunk/dports/textproc
source_changes at macosforge.org
source_changes at macosforge.org
Sun Apr 22 06:17:42 PDT 2007
Revision: 24332
http://trac.macosforge.org/projects/macports/changeset/24332
Author: mww at macports.org
Date: 2007-04-22 06:17:42 -0700 (Sun, 22 Apr 2007)
Log Message:
-----------
new port libutf8proc (textproc)
Added Paths:
-----------
trunk/dports/textproc/libutf8proc/
trunk/dports/textproc/libutf8proc/Portfile
trunk/dports/textproc/libutf8proc/files/
trunk/dports/textproc/libutf8proc/files/patch-Makefile
Added: trunk/dports/textproc/libutf8proc/Portfile
===================================================================
--- trunk/dports/textproc/libutf8proc/Portfile (rev 0)
+++ trunk/dports/textproc/libutf8proc/Portfile 2007-04-22 13:17:42 UTC (rev 24332)
@@ -0,0 +1,37 @@
+# $Id: $
+
+PortSystem 1.0
+
+name libutf8proc
+version 1.0.3
+categories textproc
+platforms darwin
+maintainers mww at macports.org
+description library for processing UTF-8 encoded Unicode strings
+long_description ${description}
+
+homepage http://www.flexiguided.de/publications.utf8proc.en.html
+master_sites http://www.flexiguided.de/pub/
+distname utf8proc-v${version}
+checksums sha1 08ff9e7e7f5f5b606fe97ee24a7806d0394f5447
+patchfiles patch-Makefile
+
+worksrcdir utf8proc
+
+use_configure no
+
+build.args libdir="${prefix}/lib"
+build.target c-library
+
+destroot {
+ xinstall -m 755 ${worksrcpath}/libutf8proc.dylib ${destroot}${prefix}/lib/
+ xinstall -m 644 ${worksrcpath}/utf8proc.h ${destroot}${prefix}/include
+}
+
+platform darwin 8 {
+ build.args-append CC=/usr/bin/gcc-4.0
+}
+
+livecheck.check regex
+livecheck.url ${homepage}
+livecheck.regex utf8proc-v(\[0-9\.\]+).tar.gz
Added: trunk/dports/textproc/libutf8proc/files/patch-Makefile
===================================================================
--- trunk/dports/textproc/libutf8proc/files/patch-Makefile (rev 0)
+++ trunk/dports/textproc/libutf8proc/files/patch-Makefile 2007-04-22 13:17:42 UTC (rev 24332)
@@ -0,0 +1,61 @@
+--- Makefile 2006-08-05 01:19:55.000000000 +0200
++++ Makefile 2007-04-22 15:03:03.000000000 +0200
+@@ -3,46 +3,45 @@
+
+ # settings
+
+-cflags = -g -O0 -std=c99 -pedantic -Wall -fpic $(CFLAGS)
+-cc = gcc $(cflags)
++CFLAGS = -g -O0 -std=c99 -pedantic -Wall -fpic $(CFLAGS)
+
+
+ # meta targets
+
+-c-library: libutf8proc.a libutf8proc.so
++c-library: libutf8proc.a libutf8proc.dylib
+
+-ruby-library: ruby/utf8proc_native.so
++ruby-library: ruby/utf8proc_native.dylib
+
+-pgsql-library: pgsql/utf8proc_pgsql.so
++pgsql-library: pgsql/utf8proc_pgsql.dylib
+
+ all: c-library ruby-library pgsql-library
+
+ clean::
+- rm -f utf8proc.o libutf8proc.a libutf8proc.so
++ rm -f utf8proc.o libutf8proc.a libutf8proc.dylib
+ cd ruby/ && test -e Makefile && (make clean && rm -f Makefile) || true
+ cd pgsql/ && make clean
+
+ # real targets
+
+-utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
+- $(cc) -c -o utf8proc.o utf8proc.c
++utf8proc.o: utf8proc.c utf8proc.h utf8proc_data.c
++ $(CC) -c -o $@ $<
+
+ libutf8proc.a: utf8proc.o
+ rm -f libutf8proc.a
+ ar rs libutf8proc.a utf8proc.o
+
+-libutf8proc.so: utf8proc.o
+- $(cc) -shared -o libutf8proc.so utf8proc.o
+- chmod a-x libutf8proc.so
++libutf8proc.dylib: utf8proc.o
++ $(CC) -dynamiclib -o $@ $^ -install_name $(libdir)/$@
++ chmod a-x $@
+
+ ruby/Makefile: ruby/extconf.rb
+ cd ruby && ruby extconf.rb
+
+-ruby/utf8proc_native.so: utf8proc.h utf8proc.c utf8proc_data.c \
++ruby/utf8proc_native.dylib: utf8proc.h utf8proc.c utf8proc_data.c \
+ ruby/utf8proc_native.c ruby/Makefile
+ cd ruby && make
+
+-pgsql/utf8proc_pgsql.so: utf8proc.h utf8proc.c utf8proc_data.c \
++pgsql/utf8proc_pgsql.dylib: utf8proc.h utf8proc.c utf8proc_data.c \
+ pgsql/utf8proc_pgsql.c
+ cd pgsql && make
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070422/2111ff18/attachment.html
More information about the macports-changes
mailing list