mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
committed by
Jérôme Duval
parent
a3f31d81f4
commit
7def028590
@@ -1,20 +0,0 @@
|
||||
DESCRIPTION="Python XML package"
|
||||
HOMEPAGE="http://pyxml.sourceforge.net/topics/index.html"
|
||||
SOURCE_URI="http://sourceforge.net/projects/pyxml/files/latest/download?source=files"
|
||||
CHECKSUM_MD5="1f7655050cebbb664db976405fdba209"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND="dev-lang/python >= 2.6.4"
|
||||
BUILD()
|
||||
{
|
||||
cd PyXML-0.8.4
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd PyXML-0.8.4
|
||||
python setup.py install --root=${DESTDIR}
|
||||
}
|
||||
LICENSE="PyXML"
|
||||
COPYRIGHT="2000 Fourthought Inc, USA"
|
||||
@@ -1,20 +0,0 @@
|
||||
DESCRIPTION="Python library for working with RDF"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib"
|
||||
SOURCE_URI="http://rdflib.googlecode.com/files/rdflib-3.2.0.tar.gz"
|
||||
CHECKSUM_MD5="ab3d3a5f71ebb6fe4fd33539f5d5768e"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND="dev-lang/python >= 2.6.4"
|
||||
BUILD()
|
||||
{
|
||||
cd rdflib-3.2.0
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd rdflib-3.2.0
|
||||
python setup.py install --root=${DESTDIR}
|
||||
}
|
||||
LICENSE="Public Domain"
|
||||
COPYRIGHT="2002-2009, Daniel Krech"
|
||||
111
dev-python/rdflib/rdflib-4.2.2.recipe
Normal file
111
dev-python/rdflib/rdflib-4.2.2.recipe
Normal file
@@ -0,0 +1,111 @@
|
||||
SUMMARY="Python library for working with RDF"
|
||||
DESCRIPTION="RDFLib is a Python library for working with RDF, a simple \
|
||||
yet powerful language for representing information as graphs."
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib"
|
||||
COPYRIGHT="2002-2017 RDFLib Team"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/RDFLib/rdflib/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a362926f77624a8abfb93042c28607f49445d003792d5271cd07f0610ab16033"
|
||||
SOURCE_FILENAME="rdflib-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="?any"
|
||||
|
||||
PROVIDES="
|
||||
rdflib = $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
|
||||
cmd:csv2rdf_$pythonVersion
|
||||
cmd:rdf2dot_$pythonVersion
|
||||
cmd:rdfgraphisomorphism_$pythonVersion
|
||||
cmd:rdfpipe_$pythonVersion
|
||||
cmd:rdfs2dot_$pythonVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
if [ $pythonPackage = python3 ]; then
|
||||
PROVIDES_python3+="
|
||||
cmd:csv2rdf
|
||||
cmd:rdf2dot
|
||||
cmd:rdfgraphisomorphism
|
||||
cmd:rdfpipe
|
||||
cmd:rdfs2dot
|
||||
"
|
||||
fi
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
TEST_REQUIRES="TEST_REQUIRES
|
||||
nose_$pythonPackage"
|
||||
done
|
||||
|
||||
BUILD()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
rm -rf "$sourceDir"-$pythonPackage
|
||||
cp -a "$sourceDir" "$sourceDir"-$pythonPackage
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
$python setup.py build
|
||||
done
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation
|
||||
mkdir -p "$installLocation"
|
||||
$python setup.py install \
|
||||
--root=/ --prefix="$prefix"
|
||||
|
||||
if [ "$pythonPackage" = python ]; then
|
||||
rm -rf "$binDir"
|
||||
fi
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$prefix"/lib/$python \
|
||||
"$binDir"
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
python=python$pythonVersion
|
||||
$python setup.py test
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user