mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
- Dropped Python2 version. - No need to version-suffix cmd:cram. Notice: upstream repo has been archived in 2022, and while the repo mentions an 0.8 release, the link for that is broken, and no 0.8 tag exists on its git repo. Considering only one package in HaikuPorts needs cmd:cram (the silver searcher, and only for its `TEST()`)... impact of these changes is pretty minimal. (Will fix "the silver searcher"'s recipe next).
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
SUMMARY="Functional testing framework for command line applications"
|
|
DESCRIPTION="Cram is a functional testing framework for command line \
|
|
applications. Cram tests look like snippets of interactive shell sessions. \
|
|
Cram runs each command and compares the command output in the test with \
|
|
the command's actual output."
|
|
HOMEPAGE="https://bitheap.org/cram/"
|
|
COPYRIGHT="2010-2016 Rafael G. Martins"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="3"
|
|
SOURCE_URI="https://bitheap.org/cram/cram-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7da7445af2ce15b90aad5ec4792f857cef5786d71f14377e9eb994d8b8337f2f"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
# It only makes sense to package this one just for the default Python version.
|
|
pythonVersion=3.9
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
cmd:cram = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
setuptools_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python$pythonVersion
|
|
"
|
|
TEST_REQUIRES="
|
|
cmd:cram
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
python=python$pythonVersion
|
|
installLocation=$prefix/lib/$python/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
|
|
mkdir -p $installLocation
|
|
|
|
$python setup.py build install --root=/ --prefix=$prefix
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cram tests/*.t
|
|
}
|