[readline] add usage (#33247)

* Generate Imath.pc

* update version

* add dependency imath minizip-ng

* updata version

* add usage

* update version

* add pc

* update version

* add pc

* update version
This commit is contained in:
jim wang 2023-08-26 03:06:08 +08:00 committed by GitHub
parent d71315b15e
commit 80f8da23a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 47 additions and 6 deletions

View File

@ -64,3 +64,10 @@ install(TARGETS readline
install(EXPORT unofficial-readline-win32-config
NAMESPACE unofficial::readline-win32::
DESTINATION share/unofficial-readline-win32)
Set(prefix "${CMAKE_INSTALL_PREFIX}")
Set(exec_prefix "\${prefix}")
Set(libdir "\${prefix}/lib")
Set(includedir "\${prefix}/include")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/readline.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/readline.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/readline.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")

View File

@ -8,7 +8,7 @@ vcpkg_from_github(
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h" DESTINATION "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/readline.pc.in" DESTINATION "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src"
)
@ -16,9 +16,10 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-readline-win32)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src/COPYING")

View File

@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Readline
Description: Gnu Readline library for command line editing
URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
Version: @LIBVERSION@
Requires.private: @TERMCAP_PKG_CONFIG_LIB@
Libs: -L${libdir} -lreadline
Cflags: -I${includedir}

View File

@ -1,7 +1,7 @@
{
"name": "readline-win32",
"version": "5.0",
"port-version": 5,
"port-version": 6,
"description": "Implementation of readline for Windows Desktop",
"homepage": "https://github.com/lltcggie/readline",
"license": null,

View File

@ -3,3 +3,4 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
endif()
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
FILE(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

10
ports/readline/usage Normal file
View File

@ -0,0 +1,10 @@
the package readline can be used under windows via:
find_package(unofficial-readline-win32 CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::readline-win32::readline)
The package readline can be imported via the CMake FindPkgConfig module:
find_package(PkgConfig REQUIRED)
pkg_check_modules(readline REQUIRED IMPORTED_TARGET readline)
target_link_libraries(main PRIVATE PkgConfig::readline)

View File

@ -1,7 +1,7 @@
{
"name": "readline",
"version": "0",
"port-version": 4,
"port-version": 5,
"description": "GNU readline and history libraries",
"supports": "!uwp",
"dependencies": [

View File

@ -7150,7 +7150,7 @@
},
"readline": {
"baseline": "0",
"port-version": 4
"port-version": 5
},
"readline-osx": {
"baseline": "2020-01-04",
@ -7162,7 +7162,7 @@
},
"readline-win32": {
"baseline": "5.0",
"port-version": 5
"port-version": 6
},
"readosm": {
"baseline": "1.1.0a",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c54e93659340794a88b8122fde8123941f0be228",
"version": "5.0",
"port-version": 6
},
{
"git-tree": "19f9684f55a9aa01b5612a5ebec47960f51bacdd",
"version": "5.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f4d85b7efb4b5a01e60852a81a351971c8c5dd78",
"version": "0",
"port-version": 5
},
{
"git-tree": "24b7f806888a5db397f8d737e361e2c9e5025c1f",
"version": "0",