[retropak] new port (#49579)

This commit is contained in:
Piers Roberts 2026-01-25 08:36:24 +00:00 committed by GitHub
parent ceb868446d
commit b4dd6f84a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 79 additions and 0 deletions

View File

@ -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}")

19
ports/retropak/usage Normal file
View File

@ -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
)

18
ports/retropak/vcpkg.json Normal file
View File

@ -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
}
]
}

View File

@ -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

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "4d810cfbe5235eacd176ed78eed932999219d325",
"version": "1.0.0",
"port-version": 0
}
]
}