-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[gdbm] Add new port, starting on version 1.24 #44186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fc81c92
Add gdbm port
noahknegt c96ee28
Add gdbm to version database
noahknegt d8b609e
Apply feedback provided in a review
noahknegt ba687d5
rework how the features are checked
noahknegt 9e97db0
Update version of the git-tree
noahknegt 7346343
Add more feedback from the PR
noahknegt 871e232
Updated git-tree for gdbm
noahknegt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| vcpkg_download_distfile(ARCHIVE | ||
| URLS "https://ftp.gnu.org/gnu/gdbm/gdbm-${VERSION}.tar.gz" | ||
| "https://ftpmirror.gnu.org/gdbm/gdbm-${VERSION}.tar.gz" | ||
| "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gdbm/gdbm-${VERSION}.tar.gz" | ||
| FILENAME "gdbm-${VERSION}.tar.gz" | ||
| SHA512 401ff8c707079f21da1ac1d6f4714a87f224b6f41943078487dc891be49f51fd1ac7a32fd599aae0fad185f2c6ba7432616d328fd6aaab068eb54db9562ff7fa | ||
| ) | ||
|
|
||
| vcpkg_extract_source_archive( | ||
| SOURCE_PATH | ||
| ARCHIVE "${ARCHIVE}" | ||
| ) | ||
|
|
||
| vcpkg_list(SET options) | ||
|
|
||
| if("libgdbm-compat" IN_LIST FEATURES) | ||
| list(APPEND options "--enable-libgdbm-compat=yes") | ||
| endif() | ||
|
|
||
| if("readline" IN_LIST FEATURES) | ||
| list(APPEND options "--with-readline") | ||
| else() | ||
| list(APPEND options "--without-readline") | ||
| endif() | ||
|
|
||
| if("memory-mapped-io" IN_LIST FEATURES) | ||
| list(APPEND options "--enable-memory-mapped-io") | ||
| else() | ||
| list(APPEND options "--disable-memory-mapped-io") | ||
| endif() | ||
|
|
||
| vcpkg_make_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| AUTORECONF | ||
| COPY_SOURCE | ||
| OPTIONS | ||
| ${options} | ||
| ) | ||
|
|
||
| vcpkg_make_install() | ||
|
|
||
| vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") | ||
|
|
||
| vcpkg_fixup_pkgconfig() | ||
|
|
||
| file(REMOVE_RECURSE | ||
| "${CURRENT_PACKAGES_DIR}/debug/share" | ||
| "${CURRENT_PACKAGES_DIR}/share/gdbm/info" | ||
| "${CURRENT_PACKAGES_DIR}/share/gdbm/locale" | ||
| "${CURRENT_PACKAGES_DIR}/share/gdbm/man1" | ||
| "${CURRENT_PACKAGES_DIR}/share/gdbm/man3" | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "name": "gdbm", | ||
| "version": "1.24", | ||
| "description": "GDBM is a library of database functions that use extensible hashing and works similar to the standard UNIX dbm.", | ||
| "homepage": "https://www.gnu.org.ua/software/gdbm/gdbm.html", | ||
| "license": "GPL-3.0-only", | ||
| "supports": "linux", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-make", | ||
| "host": true | ||
| } | ||
| ], | ||
| "features": { | ||
| "libgdbm-compat": { | ||
| "description": "Build and install libgdbm_compat, a compatibility layer which provides UNIX-like dbm and ndbm interfaces." | ||
| }, | ||
| "memory-mapped-io": { | ||
| "description": "Enable the use of mmap(2) for I/O optimizations." | ||
| }, | ||
| "readline": { | ||
| "description": "Enable GNU Readline support.", | ||
| "dependencies": [ | ||
| "readline" | ||
| ] | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "6f1a4f9089dcb8097ecdf38fda0274e2f19c6294", | ||
| "version": "1.24", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.