summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-09-13 03:45:09 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-09-13 03:45:09 +0800
commiteae532b5a69c9b3f8d503117000492f7bf773eb2 (patch)
treee16b7f415a2efa815cd180a3f3f77d932df99538 /textproc
parent26d8331feddc8388b8f50189af67e525a70dff3d (diff)
downloadmarcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.tar
marcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.tar.gz
marcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.tar.bz2
marcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.tar.lz
marcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.tar.xz
marcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.tar.zst
marcuscom-ports-eae532b5a69c9b3f8d503117000492f7bf773eb2.zip
Add libxslt:
* Update to 1.0.33 * Make the Python installation ${PREFIX} safe git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1204 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc')
-rw-r--r--textproc/libxslt/Makefile51
-rw-r--r--textproc/libxslt/distinfo1
-rw-r--r--textproc/libxslt/files/patch-aa28
-rw-r--r--textproc/libxslt/files/patch-ab8
-rw-r--r--textproc/libxslt/files/patch-configure19
-rw-r--r--textproc/libxslt/files/patch-doc::Makefile.in11
-rw-r--r--textproc/libxslt/files/patch-libxslt::extra.c19
-rw-r--r--textproc/libxslt/files/patch-libxslt::xslt.h18
-rw-r--r--textproc/libxslt/files/patch-python::Makefile.in14
-rw-r--r--textproc/libxslt/files/patch-python::tests::Makefile.in11
-rw-r--r--textproc/libxslt/pkg-descr4
-rw-r--r--textproc/libxslt/pkg-plist113
12 files changed, 297 insertions, 0 deletions
diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile
new file mode 100644
index 000000000..858556625
--- /dev/null
+++ b/textproc/libxslt/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: libxslt
+# Date created: 9th February 2001
+# Whom: Ade Lovett <ade@FreeBSD.org>
+#
+# $FreeBSD: ports/textproc/libxslt/Makefile,v 1.47 2003/08/10 17:43:00 adamw Exp $
+#
+
+PORTNAME= libxslt
+PORTVERSION= 1.0.33
+CATEGORIES= textproc gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.0
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= The XSLT C library for GNOME
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+INSTALLS_SHLIB= yes
+USE_GNOME= gnomehack gnometarget libxml2
+CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
+
+MAN3= libexslt.3 libxslt.3
+MAN1= xsltproc.1
+
+.if !defined(WITHOUT_PYTHON)
+USE_PYTHON= yes
+PLIST_SUB+= PYTHON:=""
+CONFIGURE_ARGS+= --with-python=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --without-python
+PLIST_SUB+= PYTHON:="@comment "
+PKGNAMESUFFIX= -nopython
+.endif
+
+.if defined(WITH_MEM_DEBUG)
+CONFIGURE_ARGS+= --with-mem-debug
+.endif
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "libxslt has several tunables:"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} " WITHOUT_PYTHON=yes Turns off python support"
+ @${ECHO_MSG} " WITH_MEM_DEBUG=yes Turns on memory debugging"
+ @${ECHO_MSG} ""
+
+.include <bsd.port.mk>
diff --git a/textproc/libxslt/distinfo b/textproc/libxslt/distinfo
new file mode 100644
index 000000000..191961232
--- /dev/null
+++ b/textproc/libxslt/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/libxslt-1.0.33.tar.bz2) = 699e52b3eb862224d5f5b84c03f08676
diff --git a/textproc/libxslt/files/patch-aa b/textproc/libxslt/files/patch-aa
new file mode 100644
index 000000000..759d51f2d
--- /dev/null
+++ b/textproc/libxslt/files/patch-aa
@@ -0,0 +1,28 @@
+--- Makefile.in.orig Fri Sep 12 15:22:17 2003
++++ Makefile.in Fri Sep 12 15:24:38 2003
+@@ -139,21 +139,20 @@
+ @WITH_DEBUGGER_TRUE@ libexslt \
+ @WITH_DEBUGGER_TRUE@ xsltproc \
+ @WITH_DEBUGGER_TRUE@ doc \
+-@WITH_DEBUGGER_TRUE@ @PYTHON_SUBDIR@ \
+-@WITH_DEBUGGER_TRUE@ tests
++@WITH_DEBUGGER_TRUE@ @WITH_PYTHON_TRUE@ @PYTHON_SUBDIR@
++
+
+ @WITH_DEBUGGER_FALSE@SUBDIRS = \
+ @WITH_DEBUGGER_FALSE@ libxslt \
+ @WITH_DEBUGGER_FALSE@ libexslt \
+ @WITH_DEBUGGER_FALSE@ xsltproc \
+ @WITH_DEBUGGER_FALSE@ doc \
+-@WITH_DEBUGGER_FALSE@ @PYTHON_SUBDIR@ \
+-@WITH_DEBUGGER_FALSE@ tests
++@WITH_DEBUGGER_FALSE@ @WITH_PYTHON_TRUE@ @PYTHON_SUBDIR@
+
+
+ DIST_SUBDIRS = libxslt libexslt xsltproc python doc tests breakpoint
+
+-confexecdir = $(libdir)
++confexecdir = $(sysconfdir)
+ confexec_DATA = xsltConf.sh
+
+ bin_SCRIPTS = xslt-config
diff --git a/textproc/libxslt/files/patch-ab b/textproc/libxslt/files/patch-ab
new file mode 100644
index 000000000..9e1b2046a
--- /dev/null
+++ b/textproc/libxslt/files/patch-ab
@@ -0,0 +1,8 @@
+--- libxslt/xsltconfig.h.in.orig Mon Mar 26 20:55:08 2001
++++ libxslt/xsltconfig.h.in Thu Apr 19 22:20:46 2001
+@@ -23,3 +23,5 @@
+ #ifdef __GNUC__
++#ifndef __FreeBSD__
+ #include <ansidecl.h>
++#endif
+ #ifndef ATTRIBUTE_UNUSED
diff --git a/textproc/libxslt/files/patch-configure b/textproc/libxslt/files/patch-configure
new file mode 100644
index 000000000..e644cf75e
--- /dev/null
+++ b/textproc/libxslt/files/patch-configure
@@ -0,0 +1,19 @@
+--- configure.orig Fri Sep 12 08:23:19 2003
++++ configure Fri Sep 12 15:29:42 2003
+@@ -8644,6 +8644,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -10300,7 +10301,7 @@
+ fi
+ if test "$with_python" != ""
+ then
+- pythondir='$(PYTHON_SITE_PACKAGES)'
++ pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
+ else
+ pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
+ fi
diff --git a/textproc/libxslt/files/patch-doc::Makefile.in b/textproc/libxslt/files/patch-doc::Makefile.in
new file mode 100644
index 000000000..f5776263c
--- /dev/null
+++ b/textproc/libxslt/files/patch-doc::Makefile.in
@@ -0,0 +1,11 @@
+--- doc/Makefile.in.orig Fri Aug 23 08:37:53 2002
++++ doc/Makefile.in Sat Aug 24 02:44:18 2002
+@@ -123,7 +123,7 @@
+
+
+ # The name of the module.
+-DOC_MODULE = libxslt-$(VERSION)
++DOC_MODULE = libxslt
+
+ # The top-level SGML file.
+ DOC_MAIN_SGML_FILE = libxslt.sgml
diff --git a/textproc/libxslt/files/patch-libxslt::extra.c b/textproc/libxslt/files/patch-libxslt::extra.c
new file mode 100644
index 000000000..9bb8e4e5f
--- /dev/null
+++ b/textproc/libxslt/files/patch-libxslt::extra.c
@@ -0,0 +1,19 @@
+
+$FreeBSD: ports/textproc/libxslt/files/patch-libxslt::extra.c,v 1.1 2001/08/27 10:33:03 sobomax Exp $
+
+--- libxslt/extra.c.orig Wed Aug 15 05:55:12 2001
++++ libxslt/extra.c Mon Aug 27 13:24:28 2001
+@@ -235,7 +235,12 @@
+ * Calling localtime() has the side-effect of setting timezone.
+ * After we know the timezone, we can adjust for it
+ */
+- lmt = gmt - timezone;
++ /*
++ * May be on some stupid Linux localtime() have such side-effect,
++ * but FreeBSD DOESN'T HAVE such side-ffect, so we should use
++ * local_tm.
++ */
++ lmt = gmt - local_tm->tm_gmtoff;
+
+ /*
+ * FIXME: it's been too long since I did manual memory management.
diff --git a/textproc/libxslt/files/patch-libxslt::xslt.h b/textproc/libxslt/files/patch-libxslt::xslt.h
new file mode 100644
index 000000000..88446294b
--- /dev/null
+++ b/textproc/libxslt/files/patch-libxslt::xslt.h
@@ -0,0 +1,18 @@
+
+$FreeBSD: ports/textproc/libxslt/files/patch-libxslt::xslt.h,v 1.1 2001/12/06 12:10:27 sobomax Exp $
+
+--- libxslt/xslt.h 2001/12/06 12:04:42 1.1
++++ libxslt/xslt.h 2001/12/06 12:07:32
+@@ -11,6 +11,12 @@
+
+ #include <libxml/tree.h>
+
++#if defined(WIN32) && defined(_MSC_VER)
++#include <libxslt/xsltwin32config.h>
++#else
++#include <libxslt/xsltconfig.h>
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
diff --git a/textproc/libxslt/files/patch-python::Makefile.in b/textproc/libxslt/files/patch-python::Makefile.in
new file mode 100644
index 000000000..20e206c53
--- /dev/null
+++ b/textproc/libxslt/files/patch-python::Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD: ports/textproc/libxslt/files/patch-python::Makefile.in,v 1.3 2002/04/18 11:31:24 sobomax Exp $
+
+--- python/Makefile.in.orig Mon Apr 15 21:07:35 2002
++++ python/Makefile.in Thu Apr 18 14:23:11 2002
+@@ -129,7 +129,7 @@
+ -I$(top_srcdir)
+
+
+-DOCS_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)
++DOCS_DIR = $(datadir)/doc/libxslt-python
+ # libxsltclass.txt is generated
+ DOCS = TODO
+
diff --git a/textproc/libxslt/files/patch-python::tests::Makefile.in b/textproc/libxslt/files/patch-python::tests::Makefile.in
new file mode 100644
index 000000000..b2b22d6ee
--- /dev/null
+++ b/textproc/libxslt/files/patch-python::tests::Makefile.in
@@ -0,0 +1,11 @@
+--- python/tests/Makefile.in.orig Fri Sep 12 15:25:00 2003
++++ python/tests/Makefile.in Fri Sep 12 15:25:38 2003
+@@ -133,7 +133,7 @@
+ am__quote = @am__quote@
+ install_sh = @install_sh@
+ pythondir = @pythondir@
+-EXAMPLE_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)/examples
++EXAMPLE_DIR = $(datadir)/doc/libxslt-python/examples
+
+ TESTSPY = \
+ basic.py \
diff --git a/textproc/libxslt/pkg-descr b/textproc/libxslt/pkg-descr
new file mode 100644
index 000000000..707c01ff0
--- /dev/null
+++ b/textproc/libxslt/pkg-descr
@@ -0,0 +1,4 @@
+An XSL Transformations (XSLT) library being developed for the GNOME project.
+
+WWW: http://xmlsoft.org/XSLT/
+WWW: http://www.w3.org/TR/xslt
diff --git a/textproc/libxslt/pkg-plist b/textproc/libxslt/pkg-plist
new file mode 100644
index 000000000..379423f13
--- /dev/null
+++ b/textproc/libxslt/pkg-plist
@@ -0,0 +1,113 @@
+bin/xslt-config
+bin/xsltproc
+etc/xsltConf.sh
+include/libexslt/exslt.h
+include/libexslt/exsltconfig.h
+include/libexslt/exsltexports.h
+include/libxslt/attributes.h
+include/libxslt/documents.h
+include/libxslt/extensions.h
+include/libxslt/extra.h
+include/libxslt/functions.h
+include/libxslt/imports.h
+include/libxslt/keys.h
+include/libxslt/namespaces.h
+include/libxslt/numbersInternals.h
+include/libxslt/pattern.h
+include/libxslt/preproc.h
+include/libxslt/security.h
+include/libxslt/templates.h
+include/libxslt/transform.h
+include/libxslt/variables.h
+include/libxslt/xslt.h
+include/libxslt/xsltInternals.h
+include/libxslt/xsltconfig.h
+include/libxslt/xsltexports.h
+include/libxslt/xsltutils.h
+lib/libexslt.a
+lib/libexslt.so
+lib/libexslt.so.7
+lib/libxslt.a
+lib/libxslt.so
+lib/libxslt.so.1
+lib/libxsltbreakpoint.a
+lib/libxsltbreakpoint.so
+lib/libxsltbreakpoint.so.1
+%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.py
+%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxsltmod.so
+libdata/pkgconfig/libxslt.pc
+share/aclocal/libxslt.m4
+%%PYTHON:%%share/doc/libxslt-python/TODO
+%%PYTHON:%%share/doc/libxslt-python/examples/basic.py
+%%PYTHON:%%share/doc/libxslt-python/examples/exslt.py
+%%PYTHON:%%share/doc/libxslt-python/examples/extelem.py
+%%PYTHON:%%share/doc/libxslt-python/examples/extfunc.py
+%%PYTHON:%%share/doc/libxslt-python/examples/pyxsltproc.py
+%%PYTHON:%%share/doc/libxslt-python/examples/test.xml
+%%PYTHON:%%share/doc/libxslt-python/examples/test.xsl
+share/doc/libxslt/html/API.html
+share/doc/libxslt/html/APIchunk0.html
+share/doc/libxslt/html/APIchunk1.html
+share/doc/libxslt/html/APIchunk2.html
+share/doc/libxslt/html/APIchunk3.html
+share/doc/libxslt/html/APIchunk4.html
+share/doc/libxslt/html/APIchunk5.html
+share/doc/libxslt/html/APIchunk6.html
+share/doc/libxslt/html/APIchunk7.html
+share/doc/libxslt/html/APIconstructors.html
+share/doc/libxslt/html/APIfiles.html
+share/doc/libxslt/html/APIfunctions.html
+share/doc/libxslt/html/APIsymbols.html
+share/doc/libxslt/html/FAQ.html
+share/doc/libxslt/html/Libxslt-Logo-180x168.gif
+share/doc/libxslt/html/Libxslt-Logo-90x34.gif
+share/doc/libxslt/html/book1.html
+share/doc/libxslt/html/bugs.html
+share/doc/libxslt/html/contexts.gif
+share/doc/libxslt/html/contribs.html
+share/doc/libxslt/html/docbook.html
+share/doc/libxslt/html/docs.html
+share/doc/libxslt/html/downloads.html
+share/doc/libxslt/html/extensions.html
+share/doc/libxslt/html/help.html
+share/doc/libxslt/html/index.html
+share/doc/libxslt/html/internals.html
+share/doc/libxslt/html/intro.html
+share/doc/libxslt/html/libxslt-attributes.html
+share/doc/libxslt/html/libxslt-extensions.html
+share/doc/libxslt/html/libxslt-functions.html
+share/doc/libxslt/html/libxslt-imports.html
+share/doc/libxslt/html/libxslt-keys.html
+share/doc/libxslt/html/libxslt-lib.html
+share/doc/libxslt/html/libxslt-namespaces.html
+share/doc/libxslt/html/libxslt-notes.html
+share/doc/libxslt/html/libxslt-numbersInternals.html
+share/doc/libxslt/html/libxslt-pattern.html
+share/doc/libxslt/html/libxslt-templates.html
+share/doc/libxslt/html/libxslt-transform.html
+share/doc/libxslt/html/libxslt-variables.html
+share/doc/libxslt/html/libxslt-xslt.html
+share/doc/libxslt/html/libxslt-xsltInternals.html
+share/doc/libxslt/html/libxslt-xsltutils.html
+share/doc/libxslt/html/news.html
+share/doc/libxslt/html/node.gif
+share/doc/libxslt/html/object.gif
+share/doc/libxslt/html/processing.gif
+share/doc/libxslt/html/python.html
+share/doc/libxslt/html/redhat.gif
+share/doc/libxslt/html/smallfootonly.gif
+share/doc/libxslt/html/stylesheet.gif
+share/doc/libxslt/html/templates.gif
+share/doc/libxslt/html/tutorial/libxslt_tutorial.c
+share/doc/libxslt/html/tutorial/libxslttutorial.html
+share/doc/libxslt/html/tutorial/libxslttutorial.xml
+share/doc/libxslt/html/xslt.html
+share/doc/libxslt/html/xsltproc.html
+share/doc/libxslt/html/xsltproc2.html
+@dirrm share/doc/libxslt/html/tutorial
+@dirrm share/doc/libxslt/html
+%%PYTHON:%%@dirrm share/doc/libxslt-python/examples
+%%PYTHON:%%@dirrm share/doc/libxslt-python
+@dirrm share/doc/libxslt
+@dirrm include/libxslt
+@dirrm include/libexslt