-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
leptonica: use libpng version range, bump deps, remove old versions #23134
Changes from all commits
1628606
f1e46aa
17a1b80
d27866c
c0db2ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,15 +72,15 @@ def requirements(self): | |
if self.options.with_jpeg == "libjpeg": | ||
self.requires("libjpeg/9e") | ||
elif self.options.with_jpeg == "libjpeg-turbo": | ||
self.requires("libjpeg-turbo/3.0.1") | ||
self.requires("libjpeg-turbo/3.0.2") | ||
elif self.options.with_jpeg == "mozjpeg": | ||
self.requires("mozjpeg/4.1.5") | ||
if self.options.with_png: | ||
self.requires("libpng/1.6.40") | ||
self.requires("libpng/[>=1.6 <2]") | ||
if self.options.with_tiff: | ||
self.requires("libtiff/4.6.0") | ||
if self.options.with_openjpeg: | ||
self.requires("openjpeg/2.5.0") | ||
self.requires("openjpeg/2.5.2") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This'd create conflicts with every other recipe that depends on openjpeg, as those are stuck on .0 for now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. opencv has moved to 2.5.2, leptonica is only used by tesseract which is only used by opencv so we might as well update this no ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @RubenRBS, do you need more information ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, sorry for the delay, will try to push this one forward :) |
||
if self.options.with_webp: | ||
self.requires("libwebp/1.3.2") | ||
|
||
|
@@ -94,8 +94,6 @@ def source(self): | |
|
||
def generate(self): | ||
tc = CMakeToolchain(self) | ||
if Version(self.version) < "1.79.0": | ||
tc.variables["STATIC"] = not self.options.shared | ||
tc.variables["BUILD_PROG"] = False | ||
tc.variables["SW_BUILD"] = False | ||
if Version(self.version) >= "1.83.0": | ||
|
@@ -162,10 +160,7 @@ def _patch_sources(self): | |
replace_in_file(self, cmakelists_src, "${JP2K_LIBRARIES}", "openjp2") | ||
if Version(self.version) < "1.83.0": | ||
# pkgconfig is prefered to CMake. Disable pkgconfig so only CMake is used | ||
if Version(self.version) <= "1.78.0": | ||
replace_in_file(self, cmakelists, "pkg_check_modules(JP2K libopenjp2)", "") | ||
else: | ||
replace_in_file(self, cmakelists, "pkg_check_modules(JP2K libopenjp2>=2.0 QUIET)", "") | ||
replace_in_file(self, cmakelists, "pkg_check_modules(JP2K libopenjp2>=2.0 QUIET)", "") | ||
# versions below 1.83.0 do not have an option toggle | ||
replace_in_file(self, cmakelists, "if(NOT JP2K)", "if(0)") | ||
if not self.options.with_openjpeg: | ||
|
@@ -180,8 +175,7 @@ def _patch_sources(self): | |
if Version(self.version) < "1.83.0": | ||
# versions below 1.83.0 do not have an option toggle | ||
replace_in_file(self, cmakelists, "if(NOT WEBP)", "if(0)") | ||
if Version(self.version) >= "1.79.0": | ||
replace_in_file(self, cmakelists, "if(NOT WEBPMUX)", "if(0)") | ||
replace_in_file(self, cmakelists, "if(NOT WEBPMUX)", "if(0)") | ||
if not self.options.with_webp: | ||
replace_in_file(self, cmakelists_src, "if (WEBP_FOUND)", "if(0)") | ||
replace_in_file(self, cmake_configure, "if (WEBP_FOUND)", "if(0)") | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
versions: | ||
"1.83.1": | ||
folder: all | ||
"1.83.0": | ||
folder: all | ||
"1.82.0": | ||
folder: all | ||
"1.81.0": | ||
folder: all | ||
"1.80.0": | ||
folder: all | ||
"1.79.0": | ||
folder: all | ||
"1.78.0": | ||
folder: all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only tesseract is consuming leptonica/1.83.1 and 1.82.0. Looking good removing old versions.