Beispiel #1
0
 def package(self):
     copy(self, "COPYING", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
     autotools = Autotools(self)
     autotools.install()
     # TODO: replace by conan.tools.files.rm (conan 1.50.0)
     tools_legacy.remove_files_by_mask(os.path.join(self.package_folder, "lib"), "*.la")
     rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
     rmdir(self, os.path.join(self.package_folder, "share"))
Beispiel #2
0
 def package(self):
     self.copy(pattern="COPYING",
               dst="licenses",
               src=self._source_subfolder)
     autotools = Autotools(self)
     autotools.install()
     tools.remove_files_by_mask(os.path.join(self.package_folder, "lib"),
                                "*.la")
     tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
     tools.rmdir(os.path.join(self.package_folder, "share"))
Beispiel #3
0
 def package(self):
     self.copy(pattern="COPYING",
               dst="licenses",
               src=self._source_subfolder)
     if conan_version < tools.Version("1.48.0"):
         autotools = Autotools(self)
     else:
         autotools = Autotools(self,
                               build_script_folder=self._source_subfolder)
     autotools.install()
     tools.remove_files_by_mask(os.path.join(self.package_folder, "lib"),
                                "*.la")
     tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
     tools.rmdir(os.path.join(self.package_folder, "share"))
Beispiel #4
0
    def package(self):
        for file in ["COPYING", "BSDL"]:
            self.copy(file, dst="licenses", src=self._source_subfolder)

        at = Autotools(self)
        with tools.vcvars(self):
            if cross_building(self):
                at.make(target="install-local")
                at.make(target="install-arch")
            else:
                at.install()

        tools.rmdir(os.path.join(self.package_folder, "share"))
        tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
        tools.remove_files_by_mask(os.path.join(self.package_folder, "lib"), "*.pdb")
Beispiel #5
0
    def package(self):
        self.copy(pattern="COPYING*",
                  dst="licenses",
                  src=self._source_subfolder)

        at = Autotools(self)
        at.install()

        tools.remove_files_by_mask(os.path.join(self.package_folder, "lib"),
                                   "*.la")
        tools.rmdir(os.path.join(self.package_folder, "share"))
        for dir in glob(
                os.path.join(self.package_folder,
                             "{}*".format(self.settings.arch))):
            tools.rmdir(dir)