Skip to content

Commit e2ffbf6

Browse files
authored
Updates fork with latest changes from master (#12)
For posterity, I used the following commands. 1. Add upstream remote: `git remote add upstream git@github.com:conan-io/conan-center-index.git`. 2. Fetch and merge upstream: ``` $> git checkout master $> git pull $> git checkout -b ${USER}/merge $> git fetch upstream $> git merge upstream/master $> git push -u origin ${USER}/merge ``` And then just make sure you change the base branch to the `XRPLF/conan-center-index` in the GitHub UI before creating the pull request.
1 parent 1325adc commit e2ffbf6

File tree

278 files changed

+1839
-8609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+1839
-8609
lines changed

recipes/arrow/all/conandata.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
sources:
2+
"21.0.0":
3+
url: "https://www.apache.org/dyn/closer.lua/arrow/arrow-21.0.0/apache-arrow-21.0.0.tar.gz?action=download"
4+
sha256: "5d3f8db7e72fb9f65f4785b7a1634522e8d8e9657a445af53d4a34a3849857b5"
25
"20.0.0":
36
url: "https://www.apache.org/dyn/closer.lua/arrow/arrow-20.0.0/apache-arrow-20.0.0.tar.gz?action=download"
47
sha256: "89efbbf852f5a1f79e9c99ab4c217e2eb7f991837c005cba2d4a2fbd35fad212"
@@ -24,6 +27,10 @@ sources:
2427
url: "https://www.apache.org/dyn/closer.lua/arrow/arrow-14.0.2/apache-arrow-14.0.2.tar.gz?action=download"
2528
sha256: "1304dedb41896008b89fe0738c71a95d9b81752efc77fa70f264cb1da15d9bc2"
2629
patches:
30+
"21.0.0":
31+
- patch_file: "patches/21.0.0-0001-fix-downloaded-mimalloc.patch"
32+
patch_description: "use cci package"
33+
patch_type: "conan"
2734
"20.0.0":
2835
- patch_file: "patches/20.0.0-0001-fix-downloaded-mimalloc.patch"
2936
patch_description: "use cci package"

recipes/arrow/all/conanfile.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def layout(self):
142142
cmake_layout(self, src_folder="src")
143143

144144
def _requires_rapidjson(self):
145-
return self.options.with_json or self.options.encryption
145+
return (self.options.with_json or self.options.encryption or
146+
(Version(self.version) >= "21.0.0" and self.options.parquet))
146147

147148
def requirements(self):
148149
if self.options.with_thrift:
@@ -445,6 +446,15 @@ def package_info(self):
445446
self.cpp_info.components["libacero"].names["cmake_find_package_multi"] = "acero"
446447
self.cpp_info.components["libacero"].names["pkg_config"] = "acero"
447448
self.cpp_info.components["libacero"].requires = ["libarrow"]
449+
if Version(self.version) >= "21.0.0" and self.options.compute:
450+
# libacero depends on compute
451+
self.cpp_info.components["libacero"].requires.append("libarrow_compute")
452+
453+
if Version(self.version) >= "21.0.0" and self.options.compute:
454+
self.cpp_info.components["libarrow_compute"].set_property("pkg_config_name", "arrow_compute")
455+
self.cpp_info.components["libarrow_compute"].set_property("cmake_target_name", f"ArrowCompute::arrow_compute_{cmake_suffix}")
456+
self.cpp_info.components["libarrow_compute"].libs = [f"arrow_compute{suffix}"]
457+
self.cpp_info.components["libarrow_compute"].requires = ["libarrow"]
448458

449459
if self.options.gandiva:
450460
self.cpp_info.components["libgandiva"].set_property("pkg_config_name", "gandiva")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake
2+
index 7fa4b66..f81c831 100644
3+
--- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
4+
+++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
5+
@@ -2230,6 +2230,10 @@ endif()
6+
# mimalloc - Cross-platform high-performance allocator, from Microsoft
7+
8+
if(ARROW_MIMALLOC)
9+
+ find_package(mimalloc REQUIRED CONFIG)
10+
+endif()
11+
+
12+
+if(0)
13+
if(NOT ARROW_ENABLE_THREADING)
14+
message(FATAL_ERROR "Can't use mimalloc with ARROW_ENABLE_THREADING=OFF")
15+
endif()

recipes/arrow/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
versions:
2+
"21.0.0":
3+
folder: all
24
"20.0.0":
35
folder: all
46
"19.0.1":

recipes/aruco/3.x.x/conandata.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ sources:
22
"3.1.15":
33
url: "https://downloads.sourceforge.net/project/aruco/3.1.15/3.1.15.zip"
44
sha256: "8408ad1621b92c885b0740641ab98ec022705d48a08deb6f071ffebf455cc8b2"
5-
"3.1.12":
6-
url: "https://downloads.sourceforge.net/project/aruco/3.1.12/aruco-3.1.12.zip"
7-
sha256: "70b9ec8aa8eac6fe3f622201747a3e32c77bbb5f015e28a95c1c7c91f8ee8a09"

recipes/aruco/3.x.x/conanfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from conan.tools.files import collect_libs, copy, get, rmdir, replace_in_file
44
import os
55

6-
required_conan_version = ">=1.53.0"
6+
required_conan_version = ">=2.0"
77

88

99
class ArucoConan(ConanFile):
@@ -39,9 +39,9 @@ def layout(self):
3939
def requirements(self):
4040
# Header used in public markerdetector.h
4141
# cv::FileStorage::FileStorage used by aruco::CameraParameters::saveToFile
42-
self.requires("opencv/4.9.0", transitive_headers=True, transitive_libs=True)
42+
self.requires("opencv/[>=4.9.0 <5]", transitive_headers=True, transitive_libs=True)
4343
# Header used in levmarq.h
44-
self.requires("eigen/3.4.0", transitive_headers=False)
44+
self.requires("eigen/[>=3.4.0 <4]", transitive_headers=False)
4545

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

recipes/aruco/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
versions:
22
"3.1.15":
33
folder: 3.x.x
4-
"3.1.12":
5-
folder: 3.x.x

recipes/avcpp/all/conandata.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,3 @@ sources:
22
"2.4.0":
33
url: "https://github.com/h4tr3d/avcpp/archive/refs/tags/v2.4.0.tar.gz"
44
sha256: "47e044c10fa232f0d12d80351e675d5a5ef1480f81a93f288f33f8d03e94ae17"
5-
"2.3.2":
6-
url: "https://github.com/h4tr3d/avcpp/archive/refs/tags/v2.3.2.tar.gz"
7-
sha256: "ce1a7296e6b1bf808ad4f9f486723c88e4cd12d80a96e226635ce3316ca73733"
8-
"2.3.0":
9-
url: "https://github.com/h4tr3d/avcpp/archive/refs/tags/v2.3.0.tar.gz"
10-
sha256: "8ecb98caa9640a21772562c326f7c1f6ad99cd7f15d7ea40fe37d114fabbe2b5"
11-
"2.1.0":
12-
url: "https://github.com/h4tr3d/avcpp/archive/refs/tags/v2.1.0.tar.gz"
13-
sha256: "8398217dccb9f5b4cbb41e5bf4f73f47b461ed3ba8c3aefdda9f9dd714649855"
14-
patches:
15-
"2.4.0":
16-
- patch_file: "patches/2.3.0-fix-ffmpeg.patch"
17-
patch_description: "fix ffmpeg package name and remove ffmpeg from install targets"
18-
patch_type: "conan"
19-
"2.3.2":
20-
- patch_file: "patches/2.3.0-fix-ffmpeg.patch"
21-
patch_description: "fix ffmpeg package name and remove ffmpeg from install targets"
22-
patch_type: "conan"
23-
"2.3.0":
24-
- patch_file: "patches/2.3.0-fix-ffmpeg.patch"
25-
patch_description: "fix ffmpeg package name and remove ffmpeg from install targets"
26-
patch_type: "conan"
27-
"2.1.0":
28-
- patch_file: "patches/2.1.0-fix-ffmpeg.patch"
29-
patch_description: "fix ffmpeg package name and remove ffmpeg from install targets"
30-
patch_type: "conan"

recipes/avcpp/all/conanfile.py

Lines changed: 24 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from conan import ConanFile
2-
from conan.errors import ConanInvalidConfiguration
32
from conan.tools.build import check_min_cppstd
43
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
5-
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir
6-
from conan.tools.scm import Version
4+
from conan.tools.files import copy, get, replace_in_file, rmdir
75
import os
86

9-
required_conan_version = ">=1.53.0"
7+
required_conan_version = ">=2.1"
108

119

1210
class AvcppConan(ConanFile):
@@ -27,23 +25,6 @@ class AvcppConan(ConanFile):
2725
"shared": False,
2826
}
2927

30-
@property
31-
def _min_cppstd(self):
32-
return "17"
33-
34-
@property
35-
def _compilers_minimum_version(self):
36-
return {
37-
"gcc": "8",
38-
"clang": "7",
39-
"apple-clang": "12.0",
40-
"Visual Studio": "15",
41-
"msvc": "191",
42-
}
43-
44-
def export_sources(self):
45-
export_conandata_patches(self)
46-
4728
def config_options(self):
4829
if self.settings.os == "Windows":
4930
del self.options.fPIC
@@ -56,38 +37,36 @@ def layout(self):
5637
cmake_layout(self, src_folder="src")
5738

5839
def requirements(self):
59-
self.requires("ffmpeg/6.1", transitive_headers=True)
40+
self.requires("ffmpeg/[>=6.1 <8]", transitive_headers=True)
6041

6142
def validate(self):
62-
if self.settings.compiler.get_safe("cppstd"):
63-
check_min_cppstd(self, self._min_cppstd)
64-
65-
minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
66-
if minimum_version and Version(self.settings.compiler.version) < minimum_version:
67-
raise ConanInvalidConfiguration(
68-
f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support."
69-
)
43+
check_min_cppstd(self, 17)
7044

7145
def build_requirements(self):
72-
if Version(self.version) >= "2.2.0":
73-
self.tool_requires("cmake/[>=3.19 <4]")
46+
self.tool_requires("cmake/[>=3.19]")
7447

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

51+
# Fix issue with install targets
52+
replace_in_file(self, os.path.join(self.source_folder, "src", "CMakeLists.txt"),
53+
"install(TARGETS ${AV_TARGETS} FFmpeg",
54+
'install(TARGETS ${AV_TARGETS}')
55+
7856
def generate(self):
7957
tc = CMakeToolchain(self)
80-
tc.variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True
81-
tc.variables["AV_ENABLE_SHARED"] = self.options.shared
82-
tc.variables["AV_ENABLE_STATIC"] = not self.options.shared
83-
tc.variables["AV_BUILD_EXAMPLES"] = False
58+
tc.cache_variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True
59+
tc.cache_variables["AV_ENABLE_SHARED"] = self.options.shared
60+
tc.cache_variables["AV_ENABLE_STATIC"] = not self.options.shared
61+
tc.cache_variables["AV_BUILD_EXAMPLES"] = False
8462
tc.generate()
8563

8664
deps = CMakeDeps(self)
65+
deps.set_property("ffmpeg", "cmake_file_name", "FFmpeg")
66+
deps.set_property("ffmpeg", "cmake_target_name", "FFmpeg::FFmpeg")
8767
deps.generate()
8868

8969
def build(self):
90-
apply_conandata_patches(self)
9170
cmake = CMake(self)
9271
cmake.configure()
9372
cmake.build()
@@ -99,23 +78,16 @@ def package(self):
9978
rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
10079

10180
def package_info(self):
102-
target_name = "avcpp" if self.options.shared else "avcpp-static"
10381

10482
self.cpp_info.set_property("cmake_file_name", "avcpp")
105-
self.cpp_info.set_property("cmake_target_name", f"avcpp::{target_name}")
83+
self.cpp_info.set_property("cmake_target_name", "avcpp::avcpp")
84+
if not self.options.shared:
85+
# upstream CMakeLists.txt uses "avcpp-static" as target name only
86+
# when both shared and static libraries are built, we keep this for compatibility
87+
self.cpp_info.set_property("cmake_target_aliases", ["avcpp::avcpp-static"])
88+
self.cpp_info.libs = ["avcpp"]
10689

107-
self.cpp_info.components["AvCpp"].names["cmake_find_package"] = target_name
108-
self.cpp_info.components["AvCpp"].names["cmake_find_package_multi"] = target_name
109-
self.cpp_info.components["AvCpp"].set_property("cmake_target_name", f"avcpp::{target_name}")
110-
self.cpp_info.components["AvCpp"].libs = ["avcpp", ]
111-
self.cpp_info.components["AvCpp"].requires = ["ffmpeg::ffmpeg", ]
11290
if self.settings.os in ["Linux", "FreeBSD"]:
113-
self.cpp_info.components["AvCpp"].system_libs = ["mvec"]
91+
self.cpp_info.system_libs = ["mvec"]
11492
if self.settings.os == "Windows":
115-
self.cpp_info.components["AvCpp"].system_libs = ["mfplat"]
116-
117-
# TODO: to remove in conan v2 once cmake_find_package_* generators removed
118-
self.cpp_info.filenames["cmake_find_package"] = "avcpp"
119-
self.cpp_info.filenames["cmake_find_package_multi"] = "avcpp"
120-
self.cpp_info.names["cmake_find_package"] = "avcpp"
121-
self.cpp_info.names["cmake_find_package_multi"] = "avcpp"
93+
self.cpp_info.system_libs = ["mfplat"]

recipes/avcpp/all/patches/2.1.0-fix-ffmpeg.patch

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)