mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python. * switch architectures to any for relevant python recipes. * bump versions for retext, argh, beautifulsoup, cssselect, dateutil, docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko, pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
SUMMARY="An open-source text processing system"
|
||||
DESCRIPTION="Docutils is an open-source text processing system for processing \
|
||||
plaintext documentation into useful formats, such as HTML, LaTeX, man-pages, \
|
||||
open-document or XML. It includes reStructuredText, the easy to read, easy to \
|
||||
use, what-you-see-is-what-you-get plaintext markup language."
|
||||
HOMEPAGE="http://docutils.sourceforge.net/"
|
||||
COPYRIGHT="Günter Milde
|
||||
John Gruber
|
||||
Alex Fernández"
|
||||
LICENSE="Public Domain
|
||||
BSD (2-clause)
|
||||
GNU GPL v3
|
||||
Python"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/docutils/files/docutils/$portVersion/docutils-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
docutils = $portVersion
|
||||
cmd:rst2html.py = $portVersion
|
||||
cmd:rst2latex.py = $portVersion
|
||||
cmd:rst2man.py = $portVersion
|
||||
cmd:rst2newlatex.py = $portVersion
|
||||
cmd:rst2odt_prepstyles.py = $portVersion
|
||||
cmd:rst2odt.py = $portVersion
|
||||
cmd:rst2pseudoxml.py = $portVersion
|
||||
cmd:rst2s5.py = $portVersion
|
||||
cmd:rst2xetex.py = $portVersion
|
||||
cmd:rst2xml.py = $portVersion
|
||||
cmd:rstpep2html.py = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
|
||||
--prefix="$prefix" \
|
||||
--force
|
||||
}
|
||||
101
dev-python/docutils/docutils-0.13.1.recipe
Normal file
101
dev-python/docutils/docutils-0.13.1.recipe
Normal file
@@ -0,0 +1,101 @@
|
||||
SUMMARY="An open-source text processing system"
|
||||
DESCRIPTION="Docutils is an open-source text processing system for processing \
|
||||
plaintext documentation into useful formats, such as HTML, LaTeX, man-pages, \
|
||||
open-document or XML. It includes reStructuredText, the easy to read, easy to \
|
||||
use, what-you-see-is-what-you-get plaintext markup language."
|
||||
HOMEPAGE="http://docutils.sourceforge.net/"
|
||||
COPYRIGHT="Günter Milde
|
||||
John Gruber
|
||||
Alex Fernández"
|
||||
LICENSE="Public Domain
|
||||
BSD (2-clause)
|
||||
GNU GPL v3
|
||||
Python"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/docutils/files/docutils/$portVersion/docutils-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
PROVIDES_python="$PROVIDES_python
|
||||
cmd:rst2html.py = $portVersion
|
||||
cmd:rst2html5.py = $portVersion
|
||||
cmd:rst2latex.py = $portVersion
|
||||
cmd:rst2man.py = $portVersion
|
||||
cmd:rst2newlatex.py = $portVersion
|
||||
cmd:rst2odt_prepstyles.py = $portVersion
|
||||
cmd:rst2odt.py = $portVersion
|
||||
cmd:rst2pseudoxml.py = $portVersion
|
||||
cmd:rst2s5.py = $portVersion
|
||||
cmd:rst2xetex.py = $portVersion
|
||||
cmd:rst2xml.py = $portVersion
|
||||
cmd:rstpep2html.py = $portVersion
|
||||
"
|
||||
PROVIDES_python3="$PROVIDES_python3
|
||||
cmd:rst2html3.py = $portVersion
|
||||
cmd:rst2html53.py = $portVersion
|
||||
cmd:rst2latex3.py = $portVersion
|
||||
cmd:rst2man3.py = $portVersion
|
||||
cmd:rst2newlatex3.py = $portVersion
|
||||
cmd:rst2odt_prepstyles3.py = $portVersion
|
||||
cmd:rst2odt3.py = $portVersion
|
||||
cmd:rst2pseudoxml3.py = $portVersion
|
||||
cmd:rst2s53.py = $portVersion
|
||||
cmd:rst2xetex3.py = $portVersion
|
||||
cmd:rst2xml3.py = $portVersion
|
||||
cmd:rstpep2html3.py = $portVersion
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
if [ $pythonPackage != python ]; then
|
||||
for f in $binDir/*.py; do
|
||||
mv $f ${f%.py}3.py
|
||||
done
|
||||
fi
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user