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 libmicrohttpd/0.9.75 recipe #13564

Merged
merged 15 commits into from
Oct 20, 2022

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Oct 18, 2022

Specify library name and version: libmicrohttpd/0.9.75

Tested with MSVC2019 + MinGW@Windows


  • 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.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

default_options = {
"shared": False,
"fPIC": True,
"with_https": False, # FIXME: should be True, but gnutls is not yet available in cci
Copy link
Member

Choose a reason for hiding this comment

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

I started a PR for GNU TlS, need to resume it.

Copy link
Contributor Author

@madebr madebr Oct 18, 2022

Choose a reason for hiding this comment

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

I stopped when I failed to get it building for MSVC x years ago.
Would be nice if you get it working.

recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libmicrohttpd/all/test_package/test_package.c Outdated Show resolved Hide resolved
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@madebr madebr force-pushed the add-libmicrohttpd-recipe branch from f1563cd to 95f281e Compare October 18, 2022 18:49
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

name = "libmicrohttpd"
description = "A small C library that is supposed to make it easy to run an HTTP server"
homepage = "https://www.gnu.org/software/libmicrohttpd/"
topics = ("libmicrohttpd", "httpd", "server", "service")
Copy link
Contributor

Choose a reason for hiding this comment

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

The package name doesn't need to be in topics.

Suggested change
topics = ("libmicrohttpd", "httpd", "server", "service")
topics = ("httpd", "server", "service")

recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
Comment on lines 83 to 84
if self._settings_build.os == "Windows" and not is_msvc(self) and not self.conf.get("tools.microsoft.bash:path", default=False, check_type=str):
self.build_requires("msys2/cci.latest")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think self.win_bash should be set to True here.

Suggested change
if self._settings_build.os == "Windows" and not is_msvc(self) and not self.conf.get("tools.microsoft.bash:path", default=False, check_type=str):
self.build_requires("msys2/cci.latest")
if self._settings_build.os == "Windows" and not is_msvc(self) :
self.win_bash = True
if not self.conf.get("tools.microsoft.bash:path", default=False, check_type=str):
self.tool_requires("msys2/cci.latest")

@functools.lru_cache(1)
def _configure_autotools(self):
yes_no = lambda v: "yes" if v else "no"
autotools = AutoToolsBuildEnvironment(self, win_bash=self._settings_build.os == "Windows")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to use AutotoolsToolchain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but I got bitten by 2 bugs: conan-io/conan#12193 and conan-io/conan#12338

"epoll": True,
"with_zlib": True,
}
generators = "pkg_config"
Copy link
Contributor

Choose a reason for hiding this comment

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

PkgConfigDeps + generate() method?

@conan-center-bot

This comment has been minimized.

recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libmicrohttpd/all/conanfile.py Outdated Show resolved Hide resolved
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Jordan Williams <jordan@jwillikers.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 13 (324800ce93b76136bb518fea3f544daa53f1c9ca):

  • libmicrohttpd/0.9.75@:
    All packages built successfully! (All logs)

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.

4 participants