Skip to content
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

[ncurses] Update #22087

Merged
merged 4 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions ports/ncurses/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,42 +1,49 @@
vcpkg_fail_port_install(ON_TARGET "Windows" "UWP")

set(NCURSES_VERSION_STR 6.3)
vcpkg_download_distfile(
ARCHIVE_PATH
URLS
"https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz"
"ftp://ftp.invisible-island.net/ncurses/ncurses-6.2.tar.gz"
"https://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz"
FILENAME "ncurses-6.2.tgz"
SHA512 4c1333dcc30e858e8a9525d4b9aefb60000cfc727bc4a1062bace06ffc4639ad9f6e54f6bdda0e3a0e5ea14de995f96b52b3327d9ec633608792c99a1e8d840d
"https://invisible-mirror.net/archives/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
"ftp://ftp.invisible-island.net/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
"https://ftp.gnu.org/gnu/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
FILENAME "ncurses-${NCURSES_VERSION_STR}.tgz"
SHA512 5373f228cba6b7869210384a607a2d7faecfcbfef6dbfcd7c513f4e84fbd8bcad53ac7db2e7e84b95582248c1039dcfc7c4db205a618f7da22a166db482f0105
)

vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE_PATH}
ARCHIVE "${ARCHIVE_PATH}"
)

set(OPTIONS
--disable-db-install
--enable-pc-files
--without-ada
--without-manpages
--without-progs
--without-tack
--without-tests
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
list(APPEND OPTIONS
--with-shared
--with-cxx-shared
--without-normal
)
endif()
if(VCPKG_TARGET_IS_MINGW)
list(APPEND OPTIONS
--disable-home-terminfo
--enable-term-driver
--disable-termcap
)
endif()

set(OPTIONS_DEBUG
--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig
"--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig"
--with-debug
)
set(OPTIONS_RELEASE
--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/lib/pkgconfig
"--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/lib/pkgconfig"
--without-debug
)

Expand All @@ -56,4 +63,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
7 changes: 7 additions & 0 deletions ports/ncurses/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The package ncurses is compatible with built-in CMake variables:

set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)
target_include_directories(main ${CURSES_INCLUDE_DIRS})
target_compile_options(main ${CURSES_CFLAGS})
target_link_libraries(main PRIVATE ${CURSES_LIBRARIES})
5 changes: 2 additions & 3 deletions ports/ncurses/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "ncurses",
"version-string": "6.2",
"port-version": 1,
"version-string": "6.3",
"description": "free software emulation of curses in System V Release 4.0",
"supports": "!(windows | uwp)"
"supports": "!windows | mingw"
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4665,8 +4665,8 @@
"port-version": 1
},
"ncurses": {
"baseline": "6.2",
"port-version": 1
"baseline": "6.3",
"port-version": 0
},
"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": "68d49e9492a5a00c0b04cfbe2985ed99fc33973a",
"version-string": "6.3",
"port-version": 0
},
{
"git-tree": "f196044f9f7779e0bdb54015dbd3be84aaa00820",
"version-string": "6.2",
Expand Down