mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
56 lines
1.5 KiB
Bash
56 lines
1.5 KiB
Bash
SUMMARY="An SVG Optimizer / Cleaner"
|
|
DESCRIPTION="Scour is an SVG optimizer/cleaner written in Python that reduces the size of \
|
|
scalable vector graphics by optimizing structure and removing unnecessary data.
|
|
|
|
It can be used to create streamlined vector graphics suitable for web deployment, \
|
|
publishing/sharing or further processing.
|
|
|
|
The goal of Scour is to output a file that renders identically at a fraction of the size by \
|
|
removing a lot of redundant information created by most SVG editors. Optimization options are \
|
|
typically lossless but can be tweaked for more aggressive cleaning."
|
|
HOMEPAGE="https://github.com/scour-project/scour"
|
|
COPYRIGHT="2013-2014 Tavendo GmbH
|
|
2010 Jeff Schiller
|
|
2010 Louis Simard
|
|
2006 Enthought, Inc."
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/scour-project/scour/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="26166de53d9da3eccc52570bf8c2853e60efefd9e90e26fdfc7124fe0bd873af"
|
|
SOURCE_FILENAME="scour-v$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
pythonVersion="3"
|
|
pythonPackage="python310"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
cmd:scour = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
setuptools_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
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
|
|
}
|