diff options
Diffstat (limited to 'vcpkg/ports/pciids')
| -rw-r--r-- | vcpkg/ports/pciids/acquire_pciids.cmake | 9 | ||||
| -rw-r--r-- | vcpkg/ports/pciids/portfile.cmake | 15 | ||||
| -rw-r--r-- | vcpkg/ports/pciids/vcpkg-port-config.cmake | 1 | ||||
| -rw-r--r-- | vcpkg/ports/pciids/vcpkg.json | 8 |
4 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/pciids/acquire_pciids.cmake b/vcpkg/ports/pciids/acquire_pciids.cmake new file mode 100644 index 0000000..6f8e8ec --- /dev/null +++ b/vcpkg/ports/pciids/acquire_pciids.cmake @@ -0,0 +1,9 @@ +function(acquire_pciids out_var) + vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pciutils/pciids + REF 4e3f51b4b7ba7ffd3cca463d6a19daf0f4270252 + SHA512 952b56affffdf9ecf78f6125cf4216bd01d85c55e49ec4b2dfb3a77bae2258dec6b4e2d28824d6408f072667480ef7e5f7279fd69bae65c071b7b3816fe9f504 + ) + set(${out_var} "${SOURCE_PATH}/pci.ids" PARENT_SCOPE) +endfunction() diff --git a/vcpkg/ports/pciids/portfile.cmake b/vcpkg/ports/pciids/portfile.cmake new file mode 100644 index 0000000..200ee48 --- /dev/null +++ b/vcpkg/ports/pciids/portfile.cmake @@ -0,0 +1,15 @@ +# This package doesn't "install" the pciids data file but +# provides a maintainer function which does the download. + +set(VCPKG_POLICY_CMAKE_HELPER_PORT enabled) + +include("${CMAKE_CURRENT_LIST_DIR}/acquire_pciids.cmake") +acquire_pciids(pciids_path) +cmake_path(GET pciids_path PARENT_PATH pciids_dir) + +file(INSTALL + "${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" + "${CMAKE_CURRENT_LIST_DIR}/acquire_pciids.cmake" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" +) +vcpkg_install_copyright(FILE_LIST "${pciids_dir}/README") diff --git a/vcpkg/ports/pciids/vcpkg-port-config.cmake b/vcpkg/ports/pciids/vcpkg-port-config.cmake new file mode 100644 index 0000000..9945df9 --- /dev/null +++ b/vcpkg/ports/pciids/vcpkg-port-config.cmake @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/acquire_pciids.cmake")
diff --git a/vcpkg/ports/pciids/vcpkg.json b/vcpkg/ports/pciids/vcpkg.json new file mode 100644 index 0000000..edcb67c --- /dev/null +++ b/vcpkg/ports/pciids/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "pciids", + "version-date": "2023-04-11", + "description": "Maintainer function to acquire a PCI ID Repository database snapshot", + "homepage": "https://pci-ids.ucw.cz/", + "license": "GPL-2.0-or-later OR BSD-3-Clause", + "supports": "native" +} |