Skip to content

Commit

Permalink
[ncurses] Fix "lib model" control. (#29881)
Browse files Browse the repository at this point in the history
* [cmake-user] Test CMake package Curses with port ncurses

* [ncurses] Control lib models
  • Loading branch information
dg0yt committed Feb 28, 2023
1 parent 1d26dc8 commit f937103
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
11 changes: 3 additions & 8 deletions ports/ncurses/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ vcpkg_list(SET OPTIONS)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
list(APPEND OPTIONS
--with-shared
--with-cxx-shared
--without-normal
--with-shared # "lib model"
--without-normal # "lib model"
)
endif()

Expand All @@ -46,17 +46,12 @@ vcpkg_configure_make(
--disable-db-install
--enable-pc-files
--without-ada
--without-debug # "lib model"
--without-manpages
--without-progs
--without-tack
--without-tests
--with-pkg-config-libdir=libdir
OPTIONS_DEBUG
--with-debug
--without-normal
OPTIONS_RELEASE
--without-debug
--with-normal
)
vcpkg_install_make()

Expand Down
1 change: 1 addition & 0 deletions ports/ncurses/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ncurses",
"version": "6.4",
"port-version": 1,
"description": "Free software emulation of curses in System V Release 4.0, and more",
"homepage": "https://invisible-island.net/ncurses/announce.html",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions scripts/test_ports/cmake-user/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@
"default-features": false,
"platform": "!uwp & !mingw"
},
{
"$package": "Curses",
"name": "ncurses",
"platform": "!windows | mingw"
},
{
"$package": "PhysFS",
"name": "physfs"
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5354,7 +5354,7 @@
},
"ncurses": {
"baseline": "6.4",
"port-version": 0
"port-version": 1
},
"neargye-semver": {
"baseline": "0.3.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/n-/ncurses.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "faaf5fff20ee04db0b33a595cd37f41b89c840d6",
"version": "6.4",
"port-version": 1
},
{
"git-tree": "c557b7daa2f3a87a54e037e7b984ad8a661c5903",
"version": "6.4",
Expand Down

0 comments on commit f937103

Please sign in to comment.