diff --git a/dev-python/apsw/apsw-3.30.1~r1.recipe b/dev-python/apsw/apsw-3.30.1~r1.recipe new file mode 100644 index 000000000..f3baa6f66 --- /dev/null +++ b/dev-python/apsw/apsw-3.30.1~r1.recipe @@ -0,0 +1,66 @@ +SUMMARY="Another Python SQLite Wrapper" +DESCRIPTION="A Python wrapper for the SQLite embedded relational database \ +engine. In contrast to other wrappers such as pysqlite it focuses on being a \ +minimal layer over SQLite attempting just to translate the complete SQLite \ +API into Python." +HOMEPAGE="https://github.com/rogerbinns/apsw/ + https://pypi.org/project/apsw/" +COPYRIGHT="2004-2019 Roger Binns" +LICENSE="OSI" +REVISION="1" +SOURCE_URI="https://github.com/rogerbinns/apsw/archive/3.30.1-r1.tar.gz" +CHECKSUM_SHA256="5b7adbc5aa6bc0b186d32ff813a1248817470da78dc9ebf4efc4ff0b475372dd" +SOURCE_DIR="apsw-3.30.1-r1" + +ARCHITECTURES="any" + +PROVIDES=" + $portName = $portVersion + " +REQUIRES=" + haiku + lib:libsqlite3$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku_devel + " + +PYTHON_PACKAGES=(python python36 python3) +PYTHON_VERSIONS=(2.7 3.6 3.7) +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 + devel:libsqlite3$secondaryArchSuffix" +BUILD_PREREQUIRES="$BUILD_PREREQUIRES + cmd:python$pythonVersion + cmd:gcc$secondaryArchSuffix" +done + +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 + + packageEntries $pythonPackage \ + $prefix/lib/python* + done +} diff --git a/dev-python/apsw/licenses/OSI b/dev-python/apsw/licenses/OSI new file mode 100644 index 000000000..932f6946a --- /dev/null +++ b/dev-python/apsw/licenses/OSI @@ -0,0 +1,27 @@ +Copyright (c) 2004-2019 Roger Binns +See src/traceback.c for code by Greg Ewing. + +All code and documentation is provided under this license: + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source + distribution. + +Alternatively you may strike the license above and use it under any +OSI approved open source license such as those listed at +http://opensource.org/licenses/alphabetical