Skip to content

Commit

Permalink
fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-krupa committed Feb 26, 2025
1 parent d82e156 commit 8a1f55c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions recipes/nfir/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMake, CMakeToolchain
from conan.tools.files import copy, get, collect_libs
from conan.tools.files import apply_conandata_patches
from conan.tools.files import get
from conan.tools.files import apply_conandata_patches, export_conandata_patches
from conan.tools.gnu import PkgConfigDeps
from os import path

class NFIRConan(ConanFile):
name = "nfir"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/usnistgov/NFIR"
topics = ("NIST, NFIR")
license = "NIST"
topics = ("NIST", "NFIR")
license = "NIST-PD"
description = "The NIST Fingerprint Image Resampler NFIR is a library capable of upsampling or downsampling fingerprint images."
settings = "os", "compiler", "build_type", "arch"
options = { "shared": [True, False], "fPIC": [True, False] }
default_options = { "shared": False, "fPIC": True }
package_type = "library"
implements = ["auto_shared_fpic"]

def layout(self):
cmake_layout(self)
def export_sources(self):
export_conandata_patches(self)

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)
def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
self.requires("opencv/4.10.0")

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def generate(self):
tc = CMakeToolchain(self)
tc.variables["USE_NFIMM"] = False
Expand Down
2 changes: 1 addition & 1 deletion recipes/nfir/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
versions:
"0.2.0":
"0.2.0.cci.20241122":
folder: all

0 comments on commit 8a1f55c

Please sign in to comment.