diff --git a/media-gfx/scour/scour-0.38.2.recipe b/media-gfx/scour/scour-0.38.2.recipe new file mode 100644 index 000000000..5c66799b3 --- /dev/null +++ b/media-gfx/scour/scour-0.38.2.recipe @@ -0,0 +1,55 @@ +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 +}