old_contents: from conans import ConanFile, CMake, tools
  import shutil
  import os
  
  
  class ZmqppConan(ConanFile):
      name = "zmqpp"
      description = "0mq 'highlevel' C++ bindings"
      version = "4.1.2"
      license = "MPLv2"
      url = "https://github.com/gasuketsu/conan-zmqpp"
      settings = "os", "compiler", "build_type", "arch"
      generators = "cmake", "txt", "env"
      exports = "CMakeLists.txt"
      options = {"shared": [True, False], "build_client": [True, False]}
      default_options = "libzmq:shared=True", "shared=True", "build_client=True"
  
      def requirements(self):
          self.requires("libzmq/[>4.1.0]@gasuketsu/testing")
  
      def source(self):
          self.run("git clone https://github.com/zeromq/zmqpp.git")
          self.run("cd zmqpp && git checkout 4.1.2")
          shutil.move("zmqpp/CMakeLists.txt", "zmqpp/CMakeListsOriginal.cmake")
          shutil.copy("CMakeLists.txt", "zmqpp/CMakeLists.txt")
  
      def build(self):
          cmake = CMake(self.settings)
          opts = {"ZMQPP_BUILD_STATIC":"ON" if not self.options.shared else "OFF",
                  "ZMQPP_BUILD_SHARED":"ON" if self.options.shared else "OFF",
                  "ZMQPP_BUILD_CLIENT":"ON"}
          cmake.configure(self, None, opts, source_dir="zmqpp")
          cmake.build(self)
  
      def package(self):
          self.copy("*.hpp", dst="include/zmqpp", src="zmqpp/src/zmqpp")
          self.copy("*.lib", dst="lib", src="zmqpp/cmake_build", keep_path=False)
          self.copy("*.dll", dst="bin", src="zmqpp/cmake_build", keep_path=False)
          self.copy("*.so", dst="lib", src="zmqpp/cmake_build", keep_path=False, symlinks=True)
          self.copy("*.a", dst="lib", src="zmqpp/cmake_build", keep_path=False)
          self.copy("*", dst="bin", src="zmqpp/cmake_build/bin", keep_path=False)
  
      def package_info(self):
          # TODO: add impl for Windows
          if self.options.build_client:
              self.env_info.path.append(os.path.join(self.package_folder, "bin"))
          if self.settings.os != "Windows":
              self.cpp_info.libs = ["zmqpp"] if self.options.shared else ["zmqpp-static"]
              self.env_info.LD_LIBRARY_PATH.append(os.path.join(self.package_folder, "lib"))
  
new_contents: from conans import ConanFile, CMake, tools
  import shutil
  import os
  
  
  class ZmqppConan(ConanFile):
      name = "zmqpp"
      description = "0mq 'highlevel' C++ bindings"
      version = "4.1.2"
      license = "MPLv2"
      url = "https://github.com/gasuketsu/conan-zmqpp"
      settings = "os", "compiler", "build_type", "arch"
      generators = "cmake", "txt", "env"
      exports = "CMakeLists.txt"
      options = {"shared": [True, False], "build_client": [True, False]}
      default_options = "libzmq:shared=True", "shared=True", "build_client=True"
  
      def requirements(self):
          self.requires("libzmq/[>4.1.0]@gasuketsu/testing")
  
      def source(self):
          self.run("git clone https://github.com/zeromq/zmqpp.git")
          self.run("cd zmqpp && git checkout 4.1.2")
          shutil.move("zmqpp/CMakeLists.txt", "zmqpp/CMakeListsOriginal.cmake")
          shutil.copy("CMakeLists.txt", "zmqpp/CMakeLists.txt")
  
      def build(self):
          cmake = CMake(self.settings)
          opts = {"ZMQPP_BUILD_STATIC":"ON" if not self.options.shared else "OFF",
                  "ZMQPP_BUILD_SHARED":"ON" if self.options.shared else "OFF",
                  "ZMQPP_BUILD_CLIENT":"ON"}
          cmake.configure(self, None, opts, source_dir="zmqpp")
          cmake.build(self)
  
      def package(self):
          self.copy("*.hpp", dst="include/zmqpp", src="zmqpp/src/zmqpp")
          self.copy("*.lib", dst="lib", keep_path=False)
          self.copy("*.dll", dst="bin", keep_path=False)
          self.copy("*.so", dst="lib", keep_path=False, symlinks=True)
          self.copy("*.a", dst="lib", keep_path=False)
          self.copy("*", dst="bin", src="bin", keep_path=False)
  
      def package_info(self):
          # TODO: add impl for Windows
          if self.options.build_client:
              self.env_info.path.append(os.path.join(self.package_folder, "bin"))
          if self.settings.os != "Windows":
              self.cpp_info.libs = ["zmqpp"] if self.options.shared else ["zmqpp-static"]
              self.env_info.LD_LIBRARY_PATH.append(os.path.join(self.package_folder, "lib"))
  
subject: fix src path in package()