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

Add wineditline/2.206 #8553

Merged
merged 3 commits into from
Jan 7, 2022

Conversation

friendlyanon
Copy link
Contributor

Specify library name and version: wineditline/2.206

Fixes #8552


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@CLAassistant
Copy link

CLAassistant commented Dec 27, 2021

CLA assistant check
All committers have signed the CLA.

@conan-center-bot

This comment has been minimized.

@friendlyanon
Copy link
Contributor Author

friendlyanon commented Dec 27, 2021

I was missing conan_basic_setup() from the package's CML and it seems like it caused the package to build with MD, ignoring the profile's MTd setting. I have amended the commit.

@conan-center-bot

This comment has been minimized.

The archive that contains the source also comes with prebuilt binaries.
I deleted these thinking it'd be a waste to leave in the source.
@conan-center-bot
Copy link
Collaborator

All green in build 3 (62eb2382204bca4f603c0a33c50700826804910a):

  • wineditline/2.206@:
    All packages built successfully! (All logs)

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot conan-center-bot merged commit e7a0155 into conan-io:master Jan 7, 2022
Comment on lines +68 to +74
info.set_property("cmake_file_name", name)
info.set_property("cmake_target_name", f"{name}::{name}")

info.names.update({
"cmake_find_package": name,
"cmake_find_package_multi": name,
})
Copy link
Contributor

@SpaceIm SpaceIm Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recommend to explicitly set those values when upstream doesn't provide CMake config file, it's confusing for other maintainers.

And side comment: obfuscating self.cpp_info may not be a good idea

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have sent an email with a patch file to @ptosco to add a CMake package upstream, so let's hope that goes through.

I will remove this in a followup PR.

Comment on lines +1 to +25
cmake_minimum_required(VERSION 3.1)

project(wineditline_wrapper C)

include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake")
conan_basic_setup()

set(src source_subfolder/src)

add_library(edit "${src}/editline.c" "${src}/fn_complete.c" "${src}/history.c")
if(BUILD_SHARED_LIBS)
target_sources(edit PRIVATE "${src}/libedit.def")
endif()

target_include_directories(edit PRIVATE "${src}")

include(GNUInstallDirs)

install(
TARGETS edit
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)

install(DIRECTORY "${src}/editline" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are CMakeLists in archive, maybe not super neat but it can be patched. It's better to rely on upstream CMakeLists if available, and eventually submit PR to improve it.

miklelappo pushed a commit to miklelappo/conan-center-index that referenced this pull request Feb 9, 2022
* Add wineditline/2.206

* Use `conan_basic_setup(TARGETS)` in test_package

* Leave the fetched source untouched

The archive that contains the source also comes with prebuilt binaries.
I deleted these thinking it'd be a waste to leave in the source.

Co-authored-by: friendlyanon <friendlyanon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] wineditline/2.206
7 participants