Add port: textproc/py-4suite

New port (textproc/py-4suite) of 4Suite, a collection of Python tools for
XML processing.

PR:		25939
Submitted by:	Johann Visagie <johann@egenetics.com>
This commit is contained in:
James E. Housley 2001-03-23 00:54:36 +00:00
parent 1a8bdc02e5
commit ad49b10fc6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40230
8 changed files with 1788 additions and 0 deletions

View file

@ -121,6 +121,7 @@
SUBDIR += perl2html
SUBDIR += pspell
SUBDIR += pspell-ispell
SUBDIR += py-4suite
SUBDIR += py-HyperText
SUBDIR += py-csv
SUBDIR += py-expat

View file

@ -0,0 +1,42 @@
# New ports collection makefile for: py-4suite
# Date created: 16 March 2000
# Whom: Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#
PORTNAME= 4suite
PORTVERSION= 0.10.2
CATEGORIES= textproc python
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= 4Suite-${PORTVERSION}
MAINTAINER= johann@egenetics.com
BUILD_DEPENDS= ${PYDISTUTILS}
RUN_DEPENDS= ${PYXML}
USE_PYTHON= yes
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == "python1.5"
PLIST_SUB+= PACKAGE_DIR=xml PYTHON2_ONLY="@comment "
.else
PLIST_SUB+= PACKAGE_DIR=_xmlplus PYTHON2_ONLY=""
.endif
post-patch:
.if defined(NOPORTDOCS)
@ ${PERL} -pi -e '/^data_files\.extend/ && s/^/#/' ${WRKSRC}/setup.py
.endif
do-build:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py build
do-install:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \
--prefix=${PREFIX}
.include <bsd.port.post.mk>

View file

@ -0,0 +1 @@
MD5 (4Suite-0.10.2.tar.gz) = 2b09eccfe97a5e30d9f50d244609fd30

View file

@ -0,0 +1,17 @@
A small bug that surfaced during the creation of this port. As it happens,
this does not actually affect the port in its final submitted form, but...
a fix is a fix, and it may impact the port later.
-- Johann Visagie <johann@egenetics.com>
--- admin/DistExt.py.orig Mon Feb 19 21:40:30 2001
+++ admin/DistExt.py Fri Mar 16 18:29:11 2001
@@ -145,6 +145,7 @@
package_dir = [self.build_lib] + list(package)
package_dir = apply(os.path.join, package_dir)
for po_file in po_list:
+ self.mkpath(package_dir)
(out, _) = self.copy_file(po_file, package_dir)
self.outfiles.append(out)
locale = os.path.split(po_file)[1][:-3]

View file

@ -0,0 +1,72 @@
This patch accomplishes the following:
- Force 4Suite NOT to install the included PyXML. (Instead, the port has a
dependency on the PyXML port, textproc/py-xml.)
- Eliminate the possibly conflicting installation of 4DOM. Since PyXML
0.6.4, 4DOM is maintained as part of that package instead. (However,
retain the installation of some of the L10n extensions to 4DOM - the ones
which are not installed by PyXML.)
- Install (optional) documentation to a path that conforms to FreeBSD's
hier(7) (but still obey ${PREFIX}).
-- Johann Visagie <johann@egenetics.com>
--- setup.py.orig Sun Feb 18 23:35:50 2001
+++ setup.py Tue Mar 20 13:08:39 2001
@@ -53,12 +53,12 @@
#
############################################################
-pyxml_install_attempted = 0
-pyxml_install_completed = 0
+pyxml_install_attempted = 1
+pyxml_install_completed = 1
pyxml_expat = 0
-if os.access('PyXML', os.F_OK):
-#if 0:
+#if os.access('PyXML', os.F_OK):
+if 0:
pyxml_install_attempted = 1
# Rename xml to _xmlplus for Python 2.0
@@ -326,7 +326,6 @@
# Not really .py files, but go to the same place
l10n.extend([('Ft.Lib', 'Lib', glob.glob('Lib/*.po'), ['Lib/MessageSource.py']),
('Ft.Rdf', 'Rdf', glob.glob('Rdf/*.po'), ['Rdf/MessageSource.py']),
- (xml('dom'), 'Dom', glob.glob('Dom/*.po'), ['Dom/MessageSource.py']),
(xml('xpath'), 'XPath', glob.glob('XPath/*.po'), ['XPath/XPathParserBase.py']),
('Ft.XPointer', 'XPointer', glob.glob('XPointer/*.po'), ['XPointer/XPointerParserBase.py']),
(xml('xslt'), 'Xslt', glob.glob('Xslt/*.po'), ['Xslt/MessageSource.py', 'Xslt/XPatternParserBase.py']),
@@ -334,6 +333,7 @@
('Ft.Ods.Parsers.Oif', 'Ods/Parsers/Oif', glob.glob('Ods/Parsers/Oif/*.po'), ['Ods/Parsers/Oif/OifParserBase.py']),
('Ft.Ods.Parsers.Oql', 'Ods/Parsers/Oql', glob.glob('Ods/Parsers/Oql/*.po'), ['Ods/Parsers/Oql/OqlParserBase.py']),
])
+ py_files.extend([(xml('dom'), glob.glob('Dom/*.po'))])
else:
py_files.extend([('Ft.Lib', ['admin/DistExt.py', 'admin/install_data.py'])
])
@@ -343,11 +343,6 @@
'Ft.Lib',
'Ft.Tools',
- xml('dom'),
- xml('dom.html'),
- xml('dom.ext'),
- xml('dom.ext.reader'),
-
xml('xpath'),
xml('xslt'),
@@ -574,7 +569,7 @@
files=glob.glob('Ods/demo/book_mark_manager/*.*')),
]
for df in ft_data_files:
- df.base_dir = '$base/doc/$dist_name-$dist_version'
+ df.base_dir = '$base/share/doc/$dist_name'
data_files.extend(ft_data_files)
v = version.StrictVersion(__version__)

View file

@ -0,0 +1 @@
A collection of Python tools for XML processing and object database management

View file

@ -0,0 +1,22 @@
4Suite is a collection of Python tools for XML processing and object data
management, published by Fourthought, Inc under an open source licence.
The suite provides support for XML parsing, several transient and persistent
DOM implementations, XPath expressions, XPointer, XSLT transforms, XLink, RDF
and ODMG object databases.
The development of 4Suite is closely coordinated with that of the publicly
developed PyXML extension for Python. 4Suite is not intended to replace
PyXML, but rather to augment it with additional functionality. As certain
parts of 4Suite reach maturity they will be transferred to PyXML (this has
already happened with the 4DOM implementation of the DOM API). Eventually
PyXML will be a complete and stable toolkit, while 4Suite will continue to
provide bleeding edge (re)implementations.
The user of Python 2.0 and later therefore now has three options for XML
processing: the built-in 'xml' package, PyXML, and 4Suite. PyXML overrides
and/or extends the 'xml' package, and 4Suite does the same for PyXML.
WWW: http://4suite.org/
-- Johann Visagie <johann@egenetics.com>

1632
textproc/py-4suite/pkg-plist Normal file

File diff suppressed because it is too large Load diff