From d5a733db8610f4184cea3beb0bc4aac27e0365bf Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Mon, 3 Feb 2025 01:36:20 +0200 Subject: [PATCH] Add mypaint and mypaint-brushes new ports --- ports/libmypaint/portfile.cmake | 23 +++++++++++++++++++++++ ports/libmypaint/vcpkg.json | 16 ++++++++++++++++ ports/mypaint-brushes/portfile.cmake | 27 +++++++++++++++++++++++++++ ports/mypaint-brushes/vcpkg.json | 14 ++++++++++++++ versions/baseline.json | 8 ++++++++ versions/l-/libmypaint.json | 9 +++++++++ versions/m-/mypaint-brushes.json | 9 +++++++++ 7 files changed, 106 insertions(+) create mode 100644 ports/libmypaint/portfile.cmake create mode 100644 ports/libmypaint/vcpkg.json create mode 100644 ports/mypaint-brushes/portfile.cmake create mode 100644 ports/mypaint-brushes/vcpkg.json create mode 100644 versions/l-/libmypaint.json create mode 100644 versions/m-/mypaint-brushes.json diff --git a/ports/libmypaint/portfile.cmake b/ports/libmypaint/portfile.cmake new file mode 100644 index 00000000000000..53475f863f279d --- /dev/null +++ b/ports/libmypaint/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/mypaint/libmypaint/releases/download/v${VERSION}/libmypaint-${VERSION}.tar.xz" + FILENAME "libmypaint-${VERSION}.tar.xz" + SHA512 e9413fd6a5336791ab3228a5ad9e7f06871d075c7ded236942f896a205ba44ea901a945fdc97b8be357453a1505331b59e824fe67500fbcda0cc4f11f79af608 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + PATCHES +) + +vcpkg_make_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS +) + +vcpkg_make_install() + +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") diff --git a/ports/libmypaint/vcpkg.json b/ports/libmypaint/vcpkg.json new file mode 100644 index 00000000000000..e72d8fbb8fc468 --- /dev/null +++ b/ports/libmypaint/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "libmypaint", + "version": "1.6.1", + "description": "MyPaint brush engine library.", + "homepage": "mypaint.org", + "license": null, + "supports": "!windows | mingw", + "dependencies": [ + "glib", + "json-c", + { + "name": "vcpkg-make", + "host": true + } + ] +} diff --git a/ports/mypaint-brushes/portfile.cmake b/ports/mypaint-brushes/portfile.cmake new file mode 100644 index 00000000000000..2252dee9af2f96 --- /dev/null +++ b/ports/mypaint-brushes/portfile.cmake @@ -0,0 +1,27 @@ +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/mypaint/mypaint-brushes/releases/download/v${VERSION}/mypaint-brushes-${VERSION}.tar.xz" + FILENAME "mypaint-brushes-${VERSION}.tar.xz" + SHA512 22ff99c40a2fff71efd5c25a462cefb9948f0d258aee12e3eb924bac53733a2573e100454e2f3e4631d59eac013c2aaa7f32ff566843d23df971bf2aaa1181bd +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + PATCHES +) + +vcpkg_make_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS +) + +vcpkg_make_install() + +vcpkg_copy_pdbs() +file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/pkgconfig") +file(RENAME "${CURRENT_PACKAGES_DIR}/share/mypaint-brushes/pkgconfig/mypaint-brushes-1.0.pc" "${CURRENT_PACKAGES_DIR}/share/pkgconfig/mypaint-brushes-1.0.pc") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/" "${CURRENT_PACKAGES_DIR}/share/mypaint-brushes/pkgconfig") +vcpkg_fixup_pkgconfig() +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/ports/mypaint-brushes/vcpkg.json b/ports/mypaint-brushes/vcpkg.json new file mode 100644 index 00000000000000..eada99f51b15c7 --- /dev/null +++ b/ports/mypaint-brushes/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "mypaint-brushes", + "version": "1.3.1", + "description": "used by MyPaint and other software using libmypaint.", + "homepage": "mypaint.org", + "license": "CC0-1.0", + "dependencies": [ + "libmypaint", + { + "name": "vcpkg-make", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index b65ca1a3505cbe..1b0378f65ff645 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4852,6 +4852,10 @@ "baseline": "1.25.2", "port-version": 0 }, + "libmypaint": { + "baseline": "1.6.1", + "port-version": 0 + }, "libmysofa": { "baseline": "1.3.2", "port-version": 0 @@ -6228,6 +6232,10 @@ "baseline": "3.4.3", "port-version": 3 }, + "mypaint-brushes": { + "baseline": "1.3.1", + "port-version": 0 + }, "mysql-connector-cpp": { "baseline": "9.1.0", "port-version": 3 diff --git a/versions/l-/libmypaint.json b/versions/l-/libmypaint.json new file mode 100644 index 00000000000000..af08e7130fb47d --- /dev/null +++ b/versions/l-/libmypaint.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "115bea79af77c6ceb533b4a746e9f13a8d2e4fe9", + "version": "1.6.1", + "port-version": 0 + } + ] +} diff --git a/versions/m-/mypaint-brushes.json b/versions/m-/mypaint-brushes.json new file mode 100644 index 00000000000000..964542fed341bf --- /dev/null +++ b/versions/m-/mypaint-brushes.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "89e784fb73dc4c664cbc6d8530703c4a09b72269", + "version": "1.3.1", + "port-version": 0 + } + ] +}