[36997] trunk/dports/textproc

simon at macports.org simon at macports.org
Thu May 22 08:47:11 PDT 2008


Revision: 36997
          http://trac.macosforge.org/projects/macports/changeset/36997
Author:   simon at macports.org
Date:     2008-05-22 08:47:11 -0700 (Thu, 22 May 2008)

Log Message:
-----------
textproc/libsgml: New port, maybe closes #15281. Thanks to steve at dekorte.com.

Added Paths:
-----------
    trunk/dports/textproc/libsgml/
    trunk/dports/textproc/libsgml/Portfile
    trunk/dports/textproc/libsgml/files/
    trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff
    trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff
    trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff

Added: trunk/dports/textproc/libsgml/Portfile
===================================================================
--- trunk/dports/textproc/libsgml/Portfile	                        (rev 0)
+++ trunk/dports/textproc/libsgml/Portfile	2008-05-22 15:47:11 UTC (rev 36997)
@@ -0,0 +1,29 @@
+# $Id$
+
+PortSystem          1.0
+
+name                libsgml
+version             1.1.4
+categories          textproc
+platforms           darwin
+maintainers         nomaintainer
+description         SGML parsing library.
+long_description    SGML parsing library. Currently supports HTML parsing \
+                    into a tree.
+
+homepage            http://www.hick.org/code.html
+master_sites        http://www.hick.org/code/skape/libsgml/
+checksums           md5 a3ba2f8c19faf1a53182d9c6fab22e58 \
+                    sha1 fb563f899139ad50aa677052ca17f8f4c01d83c3 \
+                    rmd160 c7d96449756dd002708afc27c3c4594f15229b0b
+
+patchfiles          patch-examples_variant.c.diff \
+                    patch-src_Variant.c.diff \
+                    patch-Makefile.in.diff
+
+post-configure {
+    reinplace "s|-shared|-dynamiclib|" ${worksrcpath}/src/Makefile
+    reinplace "s|libsgml.so|libsgml.dylib|" ${worksrcpath}/src/Makefile
+}
+
+destroot.env-append PREFIX=${prefix}


Property changes on: trunk/dports/textproc/libsgml/Portfile
___________________________________________________________________
Name: svn:keyword
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff	2008-05-22 15:47:11 UTC (rev 36997)
@@ -0,0 +1,37 @@
+Index: Makefile.in
+===================================================================
+--- Makefile.in.orig	2003-03-24 09:48:21.000000000 +0100
++++ Makefile.in	2008-05-22 17:18:20.000000000 +0200
+@@ -3,19 +3,19 @@
+ 	cd examples && make
+ 
+ install:
+-	install -m 644 -o root -g root --directory /usr/local/include/sgml	
+-	install -m 644 -o root -g root include/DomComment.h /usr/local/include/sgml/DomComment.h
+-	install -m 644 -o root -g root include/DomDocument.h /usr/local/include/sgml/DomDocument.h
+-	install -m 644 -o root -g root include/DomElement.h /usr/local/include/sgml/DomElement.h
+-	install -m 644 -o root -g root include/DomNode.h /usr/local/include/sgml/DomNode.h
+-	install -m 644 -o root -g root include/DomNodeList.h /usr/local/include/sgml/DomNodeList.h
+-	install -m 644 -o root -g root include/DomText.h /usr/local/include/sgml/DomText.h
+-	install -m 644 -o root -g root include/SgmlParser.h /usr/local/include/sgml/SgmlParser.h
+-	install -m 644 -o root -g root include/SgmlExtensionHtml.h /usr/local/include/sgml/SgmlExtensionHtml.h
+-	install -m 644 -o root -g root include/SgmlExtensionXml.h /usr/local/include/sgml/SgmlExtensionXml.h
+-	install -m 644 -o root -g root include/libsgml.h /usr/local/include/sgml/libsgml.h
+-	install -m 644 -o root -g root libsgml.a /usr/local/lib/libsgml.a
+-	install -m 644 -o root -g root libsgml.so /usr/local/lib/libsgml.so
++	install -d $(DESTDIR)$(PREFIX)/include/sgml
++	install include/DomComment.h $(DESTDIR)$(PREFIX)/include/sgml/DomComment.h
++	install include/DomDocument.h $(DESTDIR)$(PREFIX)/include/sgml/DomDocument.h
++	install include/DomElement.h $(DESTDIR)$(PREFIX)/include/sgml/DomElement.h
++	install include/DomNode.h $(DESTDIR)$(PREFIX)/include/sgml/DomNode.h
++	install include/DomNodeList.h $(DESTDIR)$(PREFIX)/include/sgml/DomNodeList.h
++	install include/DomText.h $(DESTDIR)$(PREFIX)/include/sgml/DomText.h
++	install include/SgmlParser.h $(DESTDIR)$(PREFIX)/include/sgml/SgmlParser.h
++	install include/SgmlExtensionHtml.h $(DESTDIR)$(PREFIX)/include/sgml/SgmlExtensionHtml.h
++	install include/SgmlExtensionXml.h $(DESTDIR)$(PREFIX)/include/sgml/SgmlExtensionXml.h
++	install include/libsgml.h $(DESTDIR)$(PREFIX)/include/sgml/libsgml.h
++	install libsgml.a $(DESTDIR)$(PREFIX)/lib/libsgml.a
++	install libsgml.dylib $(DESTDIR)$(PREFIX)/lib/libsgml.dylib
+ 
+ uninstall:
+ 	rm -rf /usr/local/include/sgml /usr/local/lib/libsgml.a /usr/local/lib/libsgml.so


Property changes on: trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff
===================================================================
--- trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff	                        (rev 0)
+++ trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff	2008-05-22 15:47:11 UTC (rev 36997)
@@ -0,0 +1,11 @@
+--- examples/variant.c	2003-03-24 09:48:21.000000000 +0100
++++ examples/variant.c	2008-05-13 17:01:12.000000000 +0200
+@@ -60,7 +60,7 @@
+ 	 * Now we'll try our hand at base64 binary manipulation.
+ 	 */
+ 
+-	fprintf(stdout, "\nSetting attribute 'binary_b64' to a %d byte buffer.\n\n", sizeof(binary) - 1);
++	fprintf(stdout, "\nSetting attribute 'binary_b64' to a %i byte buffer.\n\n", (int)(sizeof(binary) - 1));
+ 
+ 	domElementSetAttributeVariant(element, "binary_b64", VARIANT_TYPE_BINARY_B64, binary, sizeof(binary) - 1);
+ 


Property changes on: trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff
===================================================================
--- trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff	                        (rev 0)
+++ trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff	2008-05-22 15:47:11 UTC (rev 36997)
@@ -0,0 +1,12 @@
+--- src/Variant.c	2003-03-26 02:47:51.000000000 +0100
++++ src/Variant.c	2008-05-13 12:59:30.000000000 +0200
+@@ -158,7 +158,7 @@
+ 				{
+ 					memset(value, 0, sizeof(VARIANT_VALUE));
+ 
+-					value->binary = _variantBase64Decode(string, strlen(string), &value->length);
++					value->binary = _variantBase64Decode((const unsigned char *)string, strlen(string), &value->length);
+ 				}
+ 				return value;
+ 			}
+


Property changes on: trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080522/27203da0/attachment-0001.htm 


More information about the macports-changes mailing list