Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docutils update to new upstream. #1174

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
122 changes: 122 additions & 0 deletions 10.9-libcxx/stable/main/finkinfo/text/docutils-py-0.19.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
Info2: <<
Package: docutils-py%type_pkg[python]
Type: python (2.7 3.4 3.5 3.6 3.7 3.8)
Version: 0.19
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(33995a6753c30b7f577febfc2c50411fec6aac7f7ffeb7c4cfe5991072dcf9e6)

Depends: python%type_pkg[python]

BuildDepends: setuptools-tng-py%type_pkg[python]

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

PatchScript: <<
%{default_script}
#!/bin/sh -ev
export PythonList=`find . -name \*.py`
for tool in $PythonList; do
sed -Ei '' -e's,(#!.*)python3*,\1%p/bin/python%type_raw[python],' $tool
done
<<

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=. 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=.. ../tools/rst2html.py $i $htmldoc
mkdir -p "$destdir"
cp $htmldoc $destdir
done

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

PostInstScript: <<
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 docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do
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 <[email protected]>
Maintainer: Charles Lepple <[email protected]>

# closes Info2:
<<
114 changes: 54 additions & 60 deletions 10.9-libcxx/stable/main/finkinfo/text/docutils-py.info
Original file line number Diff line number Diff line change
@@ -1,91 +1,85 @@
# -*- 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/rstpep2html-%type_raw[python].py

cd %i/bin
for i in docutils rst2* ; 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 docutils 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
<<

PreRmScript: <<
if [ $1 != "upgrade" ]; then
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
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
DocFiles:BUGS.html COPYING.html HISTORY.html README.html RELEASE-NOTES.html THANKS.html

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