diff --git a/ports/retropak/portfile.cmake b/ports/retropak/portfile.cmake new file mode 100644 index 0000000000..a524dfa61c --- /dev/null +++ b/ports/retropak/portfile.cmake @@ -0,0 +1,29 @@ +# This portfile is for reference when submitting to the vcpkg registry +# It should be placed in the vcpkg/ports/retropak directory + +# This is a data-only package (schemas and locales) +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO piersroberts/retropak + REF v${VERSION} + SHA512 e8a709af428222c40f75a5d0b12a9d70a34562ebc717a9702111a33251be57f042a78d5dbd84e1857c890e91426c925bb54e11b5ec275311288a2610e86d4c46 + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/packages/vcpkg" +) + +vcpkg_cmake_install() + +# Remove empty directories +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +# Install license +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +# Copy usage file +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + diff --git a/ports/retropak/usage b/ports/retropak/usage new file mode 100644 index 0000000000..243f81cca6 --- /dev/null +++ b/ports/retropak/usage @@ -0,0 +1,19 @@ +The package retropak provides JSON schema files for validating Retropak software containers. + +Schema files are installed to: ${RETROPAK_SCHEMA_DIR} +Locale files are installed to: ${RETROPAK_LOCALE_DIR} + +In your CMakeLists.txt: + + find_package(retropak CONFIG REQUIRED) + + # Access schema files + message(STATUS "Retropak schemas: ${RETROPAK_SCHEMA_DIR}") + message(STATUS "Retropak locales: ${RETROPAK_LOCALE_DIR}") + + # Example: Copy schema to build directory + configure_file( + "${RETROPAK_SCHEMA_DIR}/v1/retropak.schema.json" + "${CMAKE_BINARY_DIR}/retropak.schema.json" + COPYONLY + ) diff --git a/ports/retropak/vcpkg.json b/ports/retropak/vcpkg.json new file mode 100644 index 0000000000..3245fd4de7 --- /dev/null +++ b/ports/retropak/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "retropak", + "version": "1.0.0", + "description": "A modern container format for retro software preservation. Provides JSON schema and metadata specification for Retropak software containers.", + "homepage": "https://retropak.org", + "license": "CC0-1.0", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 8a80c9de6a..5026afd947 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8608,6 +8608,10 @@ "baseline": "1.0.0", "port-version": 0 }, + "retropak": { + "baseline": "1.0.0", + "port-version": 0 + }, "rewolf-wow64ext": { "baseline": "1.0.0.9", "port-version": 1 diff --git a/versions/r-/retropak.json b/versions/r-/retropak.json new file mode 100644 index 0000000000..752fa2b7f6 --- /dev/null +++ b/versions/r-/retropak.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "4d810cfbe5235eacd176ed78eed932999219d325", + "version": "1.0.0", + "port-version": 0 + } + ] +}