[45758] trunk/dports/textproc

snc at macports.org snc at macports.org
Wed Jan 21 06:14:59 PST 2009


Revision: 45758
          http://trac.macports.org/changeset/45758
Author:   snc at macports.org
Date:     2009-01-21 06:14:56 -0800 (Wed, 21 Jan 2009)
Log Message:
-----------
Adding htp, ticket #18079

Added Paths:
-----------
    trunk/dports/textproc/htp/
    trunk/dports/textproc/htp/Portfile
    trunk/dports/textproc/htp/files/
    trunk/dports/textproc/htp/files/patch-Makefile.config.diff
    trunk/dports/textproc/htp/files/patch-src-os.h.diff

Added: trunk/dports/textproc/htp/Portfile
===================================================================
--- trunk/dports/textproc/htp/Portfile	                        (rev 0)
+++ trunk/dports/textproc/htp/Portfile	2009-01-21 14:14:56 UTC (rev 45758)
@@ -0,0 +1,25 @@
+# $Id$
+PortSystem          1.0
+name                htp
+version             1.16
+categories          textproc
+maintainers         hibou at hibnet.org
+description         an HTML pre-processor
+long_description    Htp was intended as a HTML pre-processor. It is able to \
+                    preprocess HTML, XHTML, XML and CSS files (htp could \
+                    process any text based files). Its purpose is to assist \
+                    you to maintain a consistent "look" over an entire set of \
+                    web pages. This is done by allowing you to define your own \
+                    tags as abbreviations for sets of standard HTML tags.
+homepage            http://htp.sourceforge.net/
+platforms           darwin
+master_sites        sourceforge
+checksums           md5 8f5a720601e8406147fa146cfca77f34 \
+                    sha1 f2d421f27611d7bc9e7dda5a16f4efb129309b20 \
+                    rmd160 ff565a36fb4eacb87d6a8e915a892516ca884f21
+patchfiles          patch-Makefile.config.diff \
+                    patch-src-os.h.diff
+
+configure {
+# configure is done via the patch
+}

Added: trunk/dports/textproc/htp/files/patch-Makefile.config.diff
===================================================================
--- trunk/dports/textproc/htp/files/patch-Makefile.config.diff	                        (rev 0)
+++ trunk/dports/textproc/htp/files/patch-Makefile.config.diff	2009-01-21 14:14:56 UTC (rev 45758)
@@ -0,0 +1,23 @@
+--- Makefile.config.bak	2009-01-18 13:55:39.000000000 +0100
++++ Makefile.config	2009-01-18 14:34:26.000000000 +0100
+@@ -19,7 +19,7 @@
+ EXEEXT = 
+ 
+ DESTDIR = 
+-prefix = $(DESTDIR)/usr/local
++prefix = $(DESTDIR)/opt/local
+ bindir = $(prefix)/bin
+ docdir = $(prefix)/share/doc
+ pkgdocdir = $(prefix)/share/doc/htp
+@@ -28,9 +28,9 @@
+ # tool command-line options ... notice that these are geared towards GNU
+ #
+ ifdef RELEASE
+-CCOPT = -c -Wall -O2
++CCOPT = -c -Wall -O2 -D__DARWIN__
+ else
+-CCOPT = -c -Wall -O2 -g -DDEBUG=1
++CCOPT = -c -Wall -O2 -g -DDEBUG=1 -D__DARWIN__
+ endif
+ # Adapt the following defines to the features of your OS.
+ DEFINES = -DHAVE_SNPRINTF -DHAVE_PIPE -DHAVE_STPCPY -D_GNU_SOURCE=1

Added: trunk/dports/textproc/htp/files/patch-src-os.h.diff
===================================================================
--- trunk/dports/textproc/htp/files/patch-src-os.h.diff	                        (rev 0)
+++ trunk/dports/textproc/htp/files/patch-src-os.h.diff	2009-01-21 14:14:56 UTC (rev 45758)
@@ -0,0 +1,11 @@
+--- src/os.h.bak	2009-01-18 14:10:34.000000000 +0100
++++ src/os.h	2009-01-18 14:11:00.000000000 +0100
+@@ -82,7 +82,7 @@
+ #define stricmp                 strcasecmp
+ #define strnicmp                strncasecmp
+ 
+-#if __CYGWIN__
++#if __CYGWIN__ || __DARWIN__
+ typedef unsigned long           ulong;
+ #endif
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090121/3700861c/attachment-0001.html>


More information about the macports-changes mailing list