Skip to content

Commit

Permalink
[dylib] New port (#34578)
Browse files Browse the repository at this point in the history
* [ports/dylib] New port

Signed-off-by: Martin Olivier <[email protected]>

* fix: CPack installation

Signed-off-by: Martin Olivier <[email protected]>

* fix: added version in baseline && manifest format

Signed-off-by: Martin Olivier <[email protected]>

* fix: update version database

* fix: removed redundant package_name

Co-authored-by: JonLiu1993 <[email protected]>

* fix: cleanup

Co-authored-by: JonLiu1993 <[email protected]>

* fix: newline at the end of portfile.cmake

Co-authored-by: JonLiu1993 <[email protected]>

* fix: cleanup

* fix: hash

---------

Signed-off-by: Martin Olivier <[email protected]>
Co-authored-by: JonLiu1993 <[email protected]>
  • Loading branch information
martin-olivier and JonLiu1993 authored Oct 27, 2023
1 parent 7dc6a4e commit e712423
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ports/dylib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martin-olivier/dylib
REF "v${VERSION}"
SHA512 8e691c1bc73f381ce8ec50d85165c122ba55167b050e696c8b26ccf1ba14999ca8129fb6c5b6c3320166f606acb2c21867d0786347c341d1267815580beb5c0a
HEAD_REF main
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/dylib)

vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
17 changes: 17 additions & 0 deletions ports/dylib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "dylib",
"version-semver": "2.2.1",
"description": "C++ cross-platform wrapper around dynamic loading of shared libraries",
"homepage": "https://github.com/martin-olivier/dylib",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,10 @@
"baseline": "11.31",
"port-version": 3
},
"dylib": {
"baseline": "2.2.1",
"port-version": 0
},
"eabase": {
"baseline": "2.09.12",
"port-version": 3
Expand Down
9 changes: 9 additions & 0 deletions versions/d-/dylib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "5fcb0f058217dc6352d308f18015ef37b3f5f23c",
"version-semver": "2.2.1",
"port-version": 0
}
]
}

0 comments on commit e712423

Please sign in to comment.