1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Update 4Suite (textproc/py-4suite) to version 0.11

- This is a major rewrite of 4Suite.  From a ports point of view, things are
   simplified since the interdependency between 4Suite and PyXML has been
   somewhat simplified.
- Tested with Python 2.1 on -CURRENT, and (more briefly) with Python 1.5.2 on
  -CURRENT.

PR:		27173
Submitted by:	Johann Visagie <johann@egenetics.com> MAINTAINER
This commit is contained in:
James E. Housley 2001-05-11 12:24:20 +00:00
parent 0f0bc40ad4
commit fba7eacd8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42514
4 changed files with 605 additions and 708 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= 4suite
PORTVERSION= 0.10.2
PORTVERSION= 0.11
CATEGORIES= textproc python
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -14,22 +14,26 @@ DISTNAME= 4Suite-${PORTVERSION}
MAINTAINER= johann@egenetics.com
BUILD_DEPENDS= ${PYDISTUTILS}
RUN_DEPENDS= ${PYXML}
BUILD_DEPENDS= ${PYDISTUTILS} \
${PYXML}
USE_PYTHON= yes
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == "python1.5"
.if ${PYTHON_VERSION} == "python1.5" || ${PYTHON_VERSION} == "python1.6"
PLIST_SUB+= PACKAGE_DIR=xml PYTHON2_ONLY="@comment "
.else
PLIST_SUB+= PACKAGE_DIR=_xmlplus PYTHON2_ONLY=""
.endif
post-patch:
@ ${PERL} -pi -e \
's#(copy_to=.)docs#$$1doc/py-${PORTNAME}#; \
s#(copy_to=.)(test_suite|demo)#$$1examples/py-${PORTNAME}/$$2#' \
${WRKSRC}/setup.py
.if defined(NOPORTDOCS)
@ ${PERL} -pi -e '/^data_files\.extend/ && s/^/#/' ${WRKSRC}/setup.py
@ ${PERL} -pi -e 's/(data_files=)data_files + /$$1/' \
${WRKSRC}/setup.py
.endif
do-build:
@ -37,6 +41,6 @@ do-build:
do-install:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \
--prefix=${PREFIX}
--prefix=${PREFIX} --install-data=${PREFIX}/share
.include <bsd.port.post.mk>

View File

@ -1 +1 @@
MD5 (4Suite-0.10.2.tar.gz) = 2b09eccfe97a5e30d9f50d244609fd30
MD5 (4Suite-0.11.tar.gz) = 7155f58e9ff2e05b4b83ca1d2ad52211

View File

@ -1,72 +1,75 @@
This patch accomplishes the following:
This patch mainly ensures that the (optional) documentation is installed to
the "correct" location:
- Force 4Suite NOT to install the included PyXML. (Instead, the port has a
dependency on the PyXML port, textproc/py-xml.)
- It removes the hard-coded installation path for documentation. This allows
the installation path to be specified at install time with the
"--install-data" parameter to "setup.py install".
- 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.)
- It removes some redundant documentation.
- Install (optional) documentation to a path that conforms to FreeBSD's
hier(7) (but still obey ${PREFIX}).
- It splits data_files into two parts, one which contains only documentation,
and one which contains all other files (currently, juse one!)
Note that setup.py is processed further in the port Makefile's post-patch
target.
-- 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 @@
--- setup.py.orig Tue May 1 00:38:56 2001
+++ setup.py Fri May 4 17:23:15 2001
@@ -304,21 +304,7 @@
#
############################################################
-pyxml_install_attempted = 0
-pyxml_install_completed = 0
+pyxml_install_attempted = 1
+pyxml_install_completed = 1
pyxml_expat = 0
-data_files = [Data_Files(copy_to='.',
- files=['docs/text/COPYRIGHT',
- 'docs/text/CREDITS',
- 'docs/text/PACKAGES',
- 'docs/text/README',
- 'docs/text/REBUILDING',
- 'docs/text/TODO',
- 'docs/ChangeLog',
- 'docs/README.cDomlette',
- 'docs/README.Cyclops',
- ]),
- Data_Files(copy_to='docs',
- files=['docs/ChangeLog',
- ]),
- Data_Files(copy_to='docs/text',
+data_files = [Data_Files(copy_to='docs/text',
files=['docs/text/COPYRIGHT',
'docs/text/CREDITS',
'docs/text/PACKAGES',
@@ -435,9 +421,6 @@
Data_Files(copy_to='test_suite/4ODS/Tools',
files=glob.glob('Ods/Tools/test_suite/*.*')),
-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:
- Data_Files(use_install_cmd='install_lib',
- copy_to='Ft/DbDom',
- files=['DbDom/dom.odl']),
Data_Files(copy_to='test_suite/DbDom',
files=['Lib/TestSuite.py']),
Data_Files(copy_to='test_suite/DbDom',
@@ -457,8 +440,10 @@
Data_Files(copy_to='demo/4ODS/book_mark_manager',
files=glob.glob('Ods/demo/book_mark_manager/*.*')),
]
-for df in 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)
+data_files2 = [Data_Files(use_install_cmd='install_lib',
+ copy_to='Ft/DbDom',
+ files=['DbDom/dom.odl'])
+ ]
v = version.StrictVersion(__version__)
############################################################
#
@@ -545,7 +530,7 @@
py_files=py_files,
l10n=l10n,
- data_files=data_files,
+ data_files=data_files + data_files2,
ext_modules=ext_modules,
scripts=DistExt.EnsureScripts('Xslt/bin/4xslt',
'Rdf/exec/4rdf',

File diff suppressed because it is too large Load Diff