mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
* noteshrink: fix missing executable permision. Forgot to do this when combined the "sed" + "cp" lines I had before. * scipy: disable recipe to avoid future hangs on the buildmasters.
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
SUMMARY="Convert scans of handwritten notes to beautiful, compact PDFs"
|
|
DESCRIPTION="Noteshrink is an utility that is used to convert scans of notes to compact PDFs."
|
|
HOMEPAGE="https://mzucker.github.io/2016/09/20/noteshrink.html"
|
|
COPYRIGHT="2016 Matt Zucker"
|
|
LICENSE="MIT"
|
|
REVISION="3"
|
|
SOURCE_URI="https://github.com/mzucker/noteshrink/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="2a29c09768973e688b693b61337c6c49384e8123cf88824dba335cc8c4ed2ca8"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
noteshrink = $portVersion
|
|
cmd:noteshrink
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
numpy_python310
|
|
pillow_python310
|
|
scipy_python310
|
|
# These are optional:
|
|
# cmd:pngcrush
|
|
# cmd:pngquant
|
|
# cmd:optipng
|
|
cmd:convert # Deprecated in IMv7. imagemagick wants to be called "magick" now.
|
|
cmd:python3
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
numpy_python310
|
|
pillow_python310
|
|
scipy_python310
|
|
cmd:convert
|
|
cmd:make
|
|
cmd:optipng
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
sed 's|#!/usr/bin/env python|#!/bin/python3|' noteshrink.py > $binDir/noteshrink
|
|
chmod +x $binDir/noteshrink
|
|
}
|
|
|
|
|
|
TEST()
|
|
{
|
|
# As tests, let it convert the examples. Should create the following PDFs:
|
|
# "graph-paper-ink-only.pdf", "notesA.pdf", "notesB.pdf", and "tree.pdf",
|
|
# along with some left-over ".png"s.
|
|
rm -f example_output/*
|
|
make
|
|
}
|