From 3981ee1077341fc87d1f918b3f244f4cb498fdc5 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Wed, 10 Sep 2025 22:23:19 +1000 Subject: [PATCH] hvif_tools: bump version --- media-gfx/hvif_tools/hvif_tools-1.0.1.recipe | 56 ------------------ media-gfx/hvif_tools/hvif_tools-1.1.0.recipe | 61 ++++++++++++++++++++ 2 files changed, 61 insertions(+), 56 deletions(-) delete mode 100644 media-gfx/hvif_tools/hvif_tools-1.0.1.recipe create mode 100644 media-gfx/hvif_tools/hvif_tools-1.1.0.recipe diff --git a/media-gfx/hvif_tools/hvif_tools-1.0.1.recipe b/media-gfx/hvif_tools/hvif_tools-1.0.1.recipe deleted file mode 100644 index 4b9063e80..000000000 --- a/media-gfx/hvif_tools/hvif_tools-1.0.1.recipe +++ /dev/null @@ -1,56 +0,0 @@ -SUMMARY="A toolkit for converting Haiku Vector Icon Format (HVIF) icons to SVG and back" -DESCRIPTION="A small set of command‑line tools to work with the Haiku Vector Icon Format (HVIF). - -hvif2svg: - Parses .hvif with header validation. - Renders paths (points/curves), shapes, and styles (solid colors and gradients). - Supports fills and strokes (via HVIF transformers STROKE/CONTOUR). - Linear and radial gradients with gradientTransform; proper stop opacity. - Uses HVIF’s internal grid (viewBox 0 0 6528 6528 = 64 × 102 units). - -svg2hvif: - SVG parsing via NanoSVG (header‑only). - Normalizes coordinates to HVIF’s 64 × 64 space and centers content. - Converts fill and stroke (caps/joins/miter limit), stroke widths, and opacity. - Linear and radial gradients with calculated HVIF gradient transforms. - CLI and buffer‑to‑buffer example for embedding into apps/pipelines. - -Cross‑platform: Linux, macOS, Windows and Haiku" -HOMEPAGE="https://github.com/threedeyes/hvif-tools/" -COPYRIGHT="2005 Gerasim Troeglazov" -LICENSE="MIT" -REVISION="1" -SOURCE_URI="https://github.com/threedeyes/hvif-tools/releases/download/$portVersion/hvif-tools-$portVersion.tar.gz" -CHECKSUM_SHA256="3abfa05b8de481931b66c640bf19910d0f41831d22cc25a4a8fd0d0a9b16f26f" -SOURCE_DIR="hvif-tools-$portVersion" - -ARCHITECTURES="all" - -PROVIDES=" - hvif_tools = $portVersion - cmd:hvif2svg = $portVersion - cmd:svg2hvif = $portVersion - " -REQUIRES=" - haiku - " - -BUILD_REQUIRES=" - haiku_devel - " -BUILD_PREREQUIRES=" - cmd:cmake - cmd:gcc - cmd:make - " - -BUILD() -{ - cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release $cmakeDirArgs - make -C build $jobArgs -} - -INSTALL() -{ - make -C build install -} diff --git a/media-gfx/hvif_tools/hvif_tools-1.1.0.recipe b/media-gfx/hvif_tools/hvif_tools-1.1.0.recipe new file mode 100644 index 000000000..d226b3bb3 --- /dev/null +++ b/media-gfx/hvif_tools/hvif_tools-1.1.0.recipe @@ -0,0 +1,61 @@ +SUMMARY="A toolkit for converting Haiku Vector Icon Format (HVIF) icons to SVG and back" +DESCRIPTION="A small set of command‑line tools to work with the Haiku Vector Icon Format (HVIF). + +hvif2svg: +* Parses .hvif with header validation. +* Renders paths (points/curves), shapes, and styles (solid colors and gradients). +* Supports fills and strokes (via HVIF transformers STROKE/CONTOUR). +* Linear and radial gradients with gradientTransform; proper stop opacity. +* Uses HVIF’s internal grid (viewBox 0 0 6528 6528 = 64 × 102 units). + +svg2hvif: +* SVG parsing via NanoSVG (header‑only). +* Normalizes coordinates to HVIF’s 64 × 64 space and centers content. +* Converts fill and stroke (caps/joins/miter limit), stroke widths, and opacity. +* Linear and radial gradients with calculated HVIF gradient transforms. +* CLI and buffer‑to‑buffer example for embedding into apps/pipelines. + +Inkscape extensions: +* Import from HVIF +* Export to HVIF +" +HOMEPAGE="https://github.com/threedeyes/hvif-tools/" +COPYRIGHT="2005 Gerasim Troeglazov" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/threedeyes/hvif-tools/releases/download/$portVersion/hvif-tools-$portVersion.tar.gz" +CHECKSUM_SHA256="d32d4cbe5e4b938dc22835b8fd2da9aea140315b0707af21554a92680f4a4bd4" +SOURCE_DIR="hvif-tools-$portVersion" + +ARCHITECTURES="all" + +PROVIDES=" + hvif_tools = $portVersion + cmd:hvif2svg = $portVersion + cmd:svg2hvif = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc + cmd:make + " + +BUILD() +{ + cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release $cmakeDirArgs + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + mkdir -p $dataDir/inkscape/extensions + cp inkscape/*.{py,inx} $dataDir/inkscape/extensions +}