Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions 10.9-libcxx/stable/main/finkinfo/text/docutils-0181-py.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
Info2: <<
Package: docutils-py%type_pkg[python]
Type: python (2.7 3.4 3.5 3.6 3.7 3.8)
Version: 0.18.1
Revision: 1
Distribution: <<
(%type_pkg[python] = 34 ) 10.9,
(%type_pkg[python] = 34 ) 10.10,
(%type_pkg[python] = 34 ) 10.11,
(%type_pkg[python] = 34 ) 10.12,
(%type_pkg[python] = 34 ) 10.13,
(%type_pkg[python] = 34 ) 10.14,
(%type_pkg[python] = 34 ) 10.14.5,
(%type_pkg[python] = 34 ) 10.15,
(%type_pkg[python] = 35 ) 10.9,
(%type_pkg[python] = 35 ) 10.10,
(%type_pkg[python] = 35 ) 10.11,
(%type_pkg[python] = 35 ) 10.12,
(%type_pkg[python] = 35 ) 10.13,
(%type_pkg[python] = 35 ) 10.14,
(%type_pkg[python] = 35 ) 10.14.5,
(%type_pkg[python] = 35 ) 10.15,
(%type_pkg[python] = 36 ) 10.9,
(%type_pkg[python] = 36 ) 10.10,
(%type_pkg[python] = 36 ) 10.11,
(%type_pkg[python] = 36 ) 10.12,
(%type_pkg[python] = 36 ) 10.13,
(%type_pkg[python] = 36 ) 10.14,
(%type_pkg[python] = 36 ) 10.14.5,
(%type_pkg[python] = 36 ) 10.15
<<
Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%v.tar.gz
Source-Checksum: SHA256(679987caf361a7539d76e584cbeddc311e3aee937877c87346f31debc63e9d06)

Depends: python%type_pkg[python]

Conflicts: docutils (<= 0.4-2)
Replaces: docutils (<= 0.4-2)
Provides: docutils

CompileScript: <<
%p/bin/python%type_raw[python] setup.py build
<<

InstallScript: <<
#!/bin/sh -ev
%p/bin/python%type_raw[python] setup.py install --root %d

for i in *.txt ; do
htmldoc=${i%%txt}html
echo "Making $htmldoc"
PYTHONPATH=.:docutils/utils tools/rst2html.py $i $htmldoc
done

cd docs
for i in `find . -name '*.txt'` ; do
destdir="%i/share/doc/%n/html/"${i%%/*}
htmldoc=${i%%txt}html
echo "Making $htmldoc"
PYTHONPATH=..:../docutils/utils ../tools/rst2html.py $i $htmldoc
mkdir -p "$destdir"
cp $htmldoc $destdir
done

cd %i/bin
for i in rst2* rstpep2html.py; do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for i in rst2* rstpep2html.py; do
for i in docutils rst2* rstpep2html.py; do

@sth0 sth0 Nov 27, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Ah, that is python version not a spoken language version that is the problem.
should the line
cp %b/tools/rstpep2html.py %i/bin
also be python versioned? Something like this to be consistent?
cp %b/tools/rstpep2html.py %i/bin/rstpep2html-%type_raw[python].py
(This is only in the docutils-py.info since version 0.21.2 build rstpep2html in a different directory.)

So now the only error is that the mathematics.html docs file has all this unknown TeX/LaTeX symbols. Should TeX be a prerequisite? At the moment I can't build TeXLive due to errors and test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, I missed there are two distribution versions. Since it's also installed into %i/bin, it should need to be python-versioned or validation should fail as well.

TeXLive would be a quite heavy dependency, though probably a recommendation, as one of the principal outputs is to LaTeX format. It would seem like it has its own TeX parser if it gets that far though, just having problems with some mathtex commands.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, TeXLive would be a heavy lift. But if it has its own TeX parser why is the building of the documentation failing like that? If I can get TeXLive built and installed, I will see if the errors go away. Probably but something in the build notes that the mathematics documentation doesn't build unless you have it installed?

But still baffled by inability to get TeXLive-texmf to install.

mv $i ${i%%.py}-%type_raw[python].py
done
<<

PostInstScript: <<
for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do
for i in docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do

# link name path (source) priority
update-alternatives --install %p/bin/$i $i %p/bin/$i-%type_raw[python].py %type_pkg[python] \
--slave %p/bin/$i.py $i-py %p/bin/$i-%type_raw[python].py
done
<<

PreRmScript: <<
if [ $1 != "upgrade" ]; then
for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do
Comment thread
sth0 marked this conversation as resolved.
Outdated
update-alternatives --remove $i %p/bin/$i-%type_raw[python].py
update-alternatives --remove $i-py %p/bin/$i-%type_raw[python].py
done
fi
<<

DocFiles: README.html BUGS.html COPYING.html HISTORY.html FAQ.html THANKS.html

Description: Python-approved WYSIWYG text markup toolkit
DescDetail: <<
Docutils is an open-source text processing system for processing
plaintext documentation into useful formats, such as HTML or LaTeX. It
includes reStructuredText, the easy to read, easy to use,
what-you-see-is-what-you-get plaintext markup language.

Converters included:

* rst2html
* rst2latex
* rst2s5
... etc.
<<

License: GPL
Homepage: http://docutils.sourceforge.net/
#Maintainer: Brendan Cully <bcully@users.sourceforge.net>
Maintainer: Charles Lepple <clepple+fink@ghz.cc>

# closes Info2:
<<
112 changes: 53 additions & 59 deletions 10.9-libcxx/stable/main/finkinfo/text/docutils-py.info
Original file line number Diff line number Diff line change
@@ -1,77 +1,71 @@
# -*- coding: ascii; tab-width: 4 -*-
Info2: <<
Package: docutils-py%type_pkg[python]
Type: python (2.7 3.4 3.5 3.6 3.7 3.8 3.9 3.10)
Version: 0.14
Type: python (3.9 3.10)
Version: 0.21.2
Revision: 1
Distribution: <<
(%type_pkg[python] = 34 ) 10.9,
(%type_pkg[python] = 34 ) 10.10,
(%type_pkg[python] = 34 ) 10.11,
(%type_pkg[python] = 34 ) 10.12,
(%type_pkg[python] = 34 ) 10.13,
(%type_pkg[python] = 34 ) 10.14,
(%type_pkg[python] = 34 ) 10.14.5,
(%type_pkg[python] = 34 ) 10.15,
(%type_pkg[python] = 35 ) 10.9,
(%type_pkg[python] = 35 ) 10.10,
(%type_pkg[python] = 35 ) 10.11,
(%type_pkg[python] = 35 ) 10.12,
(%type_pkg[python] = 35 ) 10.13,
(%type_pkg[python] = 35 ) 10.14,
(%type_pkg[python] = 35 ) 10.14.5,
(%type_pkg[python] = 35 ) 10.15,
(%type_pkg[python] = 36 ) 10.9,
(%type_pkg[python] = 36 ) 10.10,
(%type_pkg[python] = 36 ) 10.11,
(%type_pkg[python] = 36 ) 10.12,
(%type_pkg[python] = 36 ) 10.13,
(%type_pkg[python] = 36 ) 10.14,
(%type_pkg[python] = 36 ) 10.14.5,
(%type_pkg[python] = 36 ) 10.15
<<
Source: mirror:sourceforge:docutils/docutils-%v.tar.gz
Source-Checksum: SHA256(51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274)

Depends: python%type_pkg[python]
Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%v.tar.gz
Source-Checksum: SHA256(3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f)

Conflicts: docutils (<= 0.4-2)
Replaces: docutils (<= 0.4-2)
Conflicts: docutils (<= 0.18)
Replaces: docutils (<= 0.18)
Provides: docutils

Depends: <<
python%type_pkg[python]
<<
BuildDepends: <<
bootstrap-modules-py%type_pkg[python]
<<

CompileScript: <<
%p/bin/python%type_raw[python] setup.py build
PYTHONPATH=%p/share/bootstrap-modules-python%type_pkg[python] %p/bin/python%type_raw[python] -m build --wheel --no-isolation --skip-dependency-check
<<

InfoTest: <<
TestDepends: <<
pytest-py%type_pkg[python] (>= 4.3.0),
pygments-py%type_pkg[python]
<<
TestScript: <<
PYTHONPATH=%b/src %p/bin/python%type_raw[python] -m pytest -vv || exit 2
<<
<<

InstallScript: <<
#!/bin/sh -ev
%p/bin/python%type_raw[python] setup.py install --root %d

for i in *.txt ; do
htmldoc=${i%%txt}html
echo "Making $htmldoc"
PYTHONPATH=.:docutils/utils tools/rst2html.py $i $htmldoc
done

cd docs
for i in `find . -name '*.txt'` ; do
destdir="%i/share/doc/%n/html/"${i%%/*}
htmldoc=${i%%txt}html
echo "Making $htmldoc"
PYTHONPATH=..:../docutils/utils ../tools/rst2html.py $i $htmldoc
mkdir -p "$destdir"
cp $htmldoc $destdir
done

cd %i/bin
for i in rst2* rstpep2html.py; do
mv $i ${i%%.py}-%type_raw[python].py
done
PYTHONPATH=%p/share/bootstrap-modules-python%type_pkg[python] %p/bin/python%type_raw[python] -m installer --destdir %d dist/*.whl
for i in *.txt ; do
htmldoc=${i%%txt}html
echo "Making $htmldoc"
PYTHONPATH=%i/lib/python3.10/site-packages %p/bin/python%type_raw[python] tools/rst2html.py $i $htmldoc
done

cd docs
for i in `find . -name '*.txt'` ; do
destdir="%i/share/doc/%n/html/"${i%%/*}
htmldoc=${i%%txt}html
echo "Making $htmldoc"
PYTHONPATH=%i/lib/python3.10/site-packages %p/bin/python%type_raw[python] ../tools/rst2html.py $i $htmldoc
mkdir -p "$destdir"
cp $htmldoc $destdir
done

cp %b/tools/rstpep2html.py %i/bin

cd %i/bin
for i in rst2* rstpep2html.py; do
mv $i ${i%%.py}-%type_raw[python].py
done
cd %i
<<

PostInstScript: <<
for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do
for i in rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do
# link name path (source) priority
update-alternatives --install %p/bin/$i $i %p/bin/$i-%type_raw[python].py %type_pkg[python] \
update-alternatives --verbose \
--install %p/bin/$i $i %p/bin/$i-%type_raw[python].py %type_pkg[python] \
--slave %p/bin/$i.py $i-py %p/bin/$i-%type_raw[python].py
done
<<
Expand All @@ -85,7 +79,7 @@ PreRmScript: <<
fi
<<

DocFiles: README.html BUGS.html COPYING.html HISTORY.html FAQ.html THANKS.html
DocFiles:BUGS.html COPYING.html HISTORY.html README.html RELEASE-NOTES.html THANKS.html

Description: Python-approved WYSIWYG text markup toolkit
DescDetail: <<
Expand Down