jolt 0.9.444__py3-none-any.whl → 0.9.447__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jolt/pkgs/abseil.py +14 -10
- jolt/pkgs/boost.py +13 -9
- jolt/pkgs/boringssl.py +2 -8
- jolt/pkgs/bzip2.py +1 -3
- jolt/pkgs/cares.py +2 -7
- jolt/pkgs/catch2.py +2 -7
- jolt/pkgs/curl.py +2 -3
- jolt/pkgs/double_conversion.py +2 -7
- jolt/pkgs/flatbuffers.py +2 -7
- jolt/pkgs/fmt.py +2 -7
- jolt/pkgs/googletest.py +2 -8
- jolt/pkgs/grpc.py +2 -3
- jolt/pkgs/jsoncpp.py +2 -3
- jolt/pkgs/libarchive.py +2 -7
- jolt/pkgs/libcap.py +11 -3
- jolt/pkgs/libedit.py +2 -4
- jolt/pkgs/libevent.py +10 -2
- jolt/pkgs/libexpat.py +2 -7
- jolt/pkgs/libogg.py +2 -7
- jolt/pkgs/libtirpc.py +2 -7
- jolt/pkgs/libvorbis.py +2 -9
- jolt/pkgs/libxml2.py +2 -3
- jolt/pkgs/lz4.py +2 -7
- jolt/pkgs/mstch.py +2 -7
- jolt/pkgs/mysql.py +2 -7
- jolt/pkgs/ng_log.py +2 -7
- jolt/pkgs/openssl.py +14 -11
- jolt/pkgs/paho.py +4 -5
- jolt/pkgs/poco.py +13 -10
- jolt/pkgs/protobuf.py +2 -3
- jolt/pkgs/pugixml.py +2 -7
- jolt/pkgs/rapidjson.py +2 -5
- jolt/pkgs/rapidyaml.py +2 -8
- jolt/pkgs/re2.py +2 -7
- jolt/pkgs/sdl.py +2 -3
- jolt/pkgs/simdjson.py +2 -7
- jolt/pkgs/soci.py +2 -3
- jolt/pkgs/spdlog.py +2 -7
- jolt/pkgs/sqlite.py +3 -11
- jolt/pkgs/ssl.py +1 -1
- jolt/pkgs/xz.py +2 -7
- jolt/pkgs/yamlcpp.py +2 -7
- jolt/pkgs/zeromq.py +3 -11
- jolt/pkgs/zlib.py +9 -11
- jolt/pkgs/zstd.py +2 -3
- jolt/plugins/cmake.py +2 -1
- jolt/plugins/cxxinfo.py +32 -0
- jolt/version.py +1 -1
- {jolt-0.9.444.dist-info → jolt-0.9.447.dist-info}/METADATA +1 -1
- {jolt-0.9.444.dist-info → jolt-0.9.447.dist-info}/RECORD +53 -53
- {jolt-0.9.444.dist-info → jolt-0.9.447.dist-info}/WHEEL +1 -1
- {jolt-0.9.444.dist-info → jolt-0.9.447.dist-info}/entry_points.txt +0 -0
- {jolt-0.9.444.dist-info → jolt-0.9.447.dist-info}/top_level.txt +0 -0
jolt/pkgs/abseil.py
CHANGED
|
@@ -27,17 +27,21 @@ class Abseil(cmake.CMake):
|
|
|
27
27
|
if self.system == "windows":
|
|
28
28
|
artifact.cxxinfo.msvcrt = "Dynamic"
|
|
29
29
|
artifact.cxxinfo.incpaths.append("include")
|
|
30
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
31
|
-
if self.shared:
|
|
32
|
-
artifact.environ.LD_LIBRARY_PATH.append("lib")
|
|
33
30
|
|
|
34
|
-
with tools.cwd(artifact.path
|
|
35
|
-
for
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
with tools.cwd(artifact.path):
|
|
32
|
+
for libdir in ["lib", "lib32", "lib64"]:
|
|
33
|
+
if not tools.exists(libdir):
|
|
34
|
+
continue
|
|
35
|
+
with tools.cwd(libdir):
|
|
36
|
+
artifact.cxxinfo.libpaths.append(libdir)
|
|
37
|
+
if self.shared:
|
|
38
|
+
artifact.environ.LD_LIBRARY_PATH.append(libdir)
|
|
39
|
+
for libfile in tools.glob("*.lib"):
|
|
40
|
+
libname, _ = os.path.splitext(libfile)
|
|
41
|
+
artifact.cxxinfo.libraries.append(libname)
|
|
42
|
+
for libfile in tools.glob("lib*.a"):
|
|
43
|
+
libname, _ = os.path.splitext(libfile)
|
|
44
|
+
artifact.cxxinfo.libraries.append(libname[3:])
|
|
41
45
|
|
|
42
46
|
|
|
43
47
|
TaskRegistry.get().add_task_class(Abseil)
|
jolt/pkgs/boost.py
CHANGED
|
@@ -95,17 +95,21 @@ class Boost(Task):
|
|
|
95
95
|
with tools.cwd(self.installdir):
|
|
96
96
|
artifact.collect("*", symlinks=True)
|
|
97
97
|
artifact.cxxinfo.incpaths.append("include")
|
|
98
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
for libdir in ["lib", "lib32", "lib64"]:
|
|
100
|
+
if not os.path.isdir(os.path.join(artifact.path, libdir)):
|
|
101
|
+
continue
|
|
102
|
+
artifact.cxxinfo.libpaths.append(libdir)
|
|
104
103
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
with tools.cwd(self.installdir, libdir):
|
|
105
|
+
for lib in tools.glob("libboost_*.a"):
|
|
106
|
+
name, _ = os.path.splitext(os.path.basename(lib))
|
|
107
|
+
artifact.cxxinfo.libraries.append(name[3:])
|
|
108
|
+
|
|
109
|
+
arch = tools.getenv("VSCMD_ARG_TGT_ARCH", "x64")
|
|
110
|
+
for lib in tools.glob(f"lib*-mt-{arch}-*.lib"):
|
|
111
|
+
name, _ = os.path.splitext(lib)
|
|
112
|
+
artifact.cxxinfo.libraries.append(name)
|
|
109
113
|
|
|
110
114
|
|
|
111
115
|
TaskRegistry.get().add_task_class(Boost)
|
jolt/pkgs/boringssl.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import nasm
|
|
3
|
-
from jolt.plugins import cmake, git
|
|
3
|
+
from jolt.plugins import cmake, cxxinfo, git
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -10,6 +10,7 @@ from jolt.tasks import TaskRegistry
|
|
|
10
10
|
@attributes.system
|
|
11
11
|
@cmake.requires()
|
|
12
12
|
@cmake.use_ninja()
|
|
13
|
+
@cxxinfo.publish(libraries=["ssl", "crypto"])
|
|
13
14
|
class BoringSSL(cmake.CMake):
|
|
14
15
|
name = "boringssl"
|
|
15
16
|
version = Parameter("0.20251124.0", help="boringssl version.")
|
|
@@ -21,12 +22,5 @@ class BoringSSL(cmake.CMake):
|
|
|
21
22
|
"BUILD_SHARED_LIBS={shared[ON,OFF]}",
|
|
22
23
|
]
|
|
23
24
|
|
|
24
|
-
def publish(self, artifact, tools):
|
|
25
|
-
super().publish(artifact, tools)
|
|
26
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
27
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
28
|
-
artifact.cxxinfo.libraries.append("ssl")
|
|
29
|
-
artifact.cxxinfo.libraries.append("crypto")
|
|
30
|
-
|
|
31
25
|
|
|
32
26
|
TaskRegistry.get().add_task_class(BoringSSL)
|
jolt/pkgs/bzip2.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.tasks import TaskRegistry
|
|
3
|
-
from jolt.plugins import fetch, ninja
|
|
3
|
+
from jolt.plugins import cxxinfo, fetch, ninja
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@attributes.requires("requires_src")
|
|
@@ -32,8 +32,6 @@ class LibBzip2(ninja.CXXLibrary):
|
|
|
32
32
|
def publish(self, artifact, tools):
|
|
33
33
|
super().publish(artifact, tools)
|
|
34
34
|
artifact.cxxinfo.incpaths.append("include")
|
|
35
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
36
|
-
artifact.cxxinfo.libraries.append("bz2")
|
|
37
35
|
artifact.environ.CMAKE_PREFIX_PATH.append(".")
|
|
38
36
|
|
|
39
37
|
with tools.cwd("{fetch[src]}/bzip2-{version}"):
|
jolt/pkgs/cares.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@attributes.requires("requires_git")
|
|
8
8
|
@cmake.requires()
|
|
9
9
|
@cmake.use_ninja()
|
|
10
|
+
@cxxinfo.publish(libraries=["cares"])
|
|
10
11
|
class CAres(cmake.CMake):
|
|
11
12
|
name = "c-ares"
|
|
12
13
|
version = Parameter("1.34.6", help="c-ares version.")
|
|
@@ -19,11 +20,5 @@ class CAres(cmake.CMake):
|
|
|
19
20
|
"CARES_BUILD_TESTS=OFF",
|
|
20
21
|
]
|
|
21
22
|
|
|
22
|
-
def publish(self, artifact, tools):
|
|
23
|
-
super().publish(artifact, tools)
|
|
24
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
25
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
26
|
-
artifact.cxxinfo.libraries.append("cares")
|
|
27
|
-
|
|
28
23
|
|
|
29
24
|
TaskRegistry.get().add_task_class(CAres)
|
jolt/pkgs/catch2.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter, Task
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@attributes.requires("requires_git")
|
|
8
8
|
@cmake.requires()
|
|
9
9
|
@cmake.use_ninja()
|
|
10
|
+
@cxxinfo.publish(libraries=["Catch2"])
|
|
10
11
|
class Catch2(cmake.CMake):
|
|
11
12
|
name = "catch2"
|
|
12
13
|
version = Parameter("3.11.0", help="catch2 version.")
|
|
@@ -17,12 +18,6 @@ class Catch2(cmake.CMake):
|
|
|
17
18
|
"BUILD_SHARED_LIBS={shared[ON,OFF]}",
|
|
18
19
|
]
|
|
19
20
|
|
|
20
|
-
def publish(self, artifact, tools):
|
|
21
|
-
super().publish(artifact, tools)
|
|
22
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
23
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
24
|
-
artifact.cxxinfo.libraries.append("Catch2")
|
|
25
|
-
|
|
26
21
|
|
|
27
22
|
class Catch2Main(Task):
|
|
28
23
|
name = "catch2/main"
|
jolt/pkgs/curl.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import brotli, ssl, zlib, zstd
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@ from jolt.tasks import TaskRegistry
|
|
|
12
12
|
@attributes.system
|
|
13
13
|
@cmake.requires()
|
|
14
14
|
@cmake.use_ninja()
|
|
15
|
+
@cxxinfo.publish()
|
|
15
16
|
class Curl(cmake.CMake):
|
|
16
17
|
name = "curl"
|
|
17
18
|
version = Parameter("8.17.0", help="Curl version.")
|
|
@@ -34,8 +35,6 @@ class Curl(cmake.CMake):
|
|
|
34
35
|
|
|
35
36
|
def publish(self, artifact, tools):
|
|
36
37
|
super().publish(artifact, tools)
|
|
37
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
38
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
39
38
|
if self.system == "windows":
|
|
40
39
|
artifact.cxxinfo.libraries.append("libcurl_imp")
|
|
41
40
|
else:
|
jolt/pkgs/double_conversion.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from jolt import attributes, Parameter
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@attributes.requires("requires_git")
|
|
8
8
|
@cmake.requires()
|
|
9
9
|
@cmake.use_ninja()
|
|
10
|
+
@cxxinfo.publish(libraries=["double-conversion"])
|
|
10
11
|
class DoubleConversion(cmake.CMake):
|
|
11
12
|
name = "double-conversion"
|
|
12
13
|
version = Parameter("3.4.0", help="double_conversion version.")
|
|
@@ -14,11 +15,5 @@ class DoubleConversion(cmake.CMake):
|
|
|
14
15
|
requires_git = ["git:url=https://github.com/google/double-conversion.git,rev=v{version}"]
|
|
15
16
|
srcdir = "{git[double-conversion]}"
|
|
16
17
|
|
|
17
|
-
def publish(self, artifact, tools):
|
|
18
|
-
super().publish(artifact, tools)
|
|
19
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
20
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
21
|
-
artifact.cxxinfo.libraries.append("double-conversion")
|
|
22
|
-
|
|
23
18
|
|
|
24
19
|
TaskRegistry.get().add_task_class(DoubleConversion)
|
jolt/pkgs/flatbuffers.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@attributes.requires("requires_git")
|
|
8
8
|
@cmake.requires()
|
|
9
9
|
@cmake.use_ninja()
|
|
10
|
+
@cxxinfo.publish(libraries=["flatbuffers"])
|
|
10
11
|
class Flatbuffers(cmake.CMake):
|
|
11
12
|
name = "flatbuffers"
|
|
12
13
|
version = Parameter("25.9.23", help="Flatbuffers version.")
|
|
@@ -19,11 +20,5 @@ class Flatbuffers(cmake.CMake):
|
|
|
19
20
|
"FLATBUFFERS_BUILD_TESTS=OFF",
|
|
20
21
|
]
|
|
21
22
|
|
|
22
|
-
def publish(self, artifact, tools):
|
|
23
|
-
super().publish(artifact, tools)
|
|
24
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
25
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
26
|
-
artifact.cxxinfo.libraries.append("flatbuffers")
|
|
27
|
-
|
|
28
23
|
|
|
29
24
|
TaskRegistry.get().add_task_class(Flatbuffers)
|
jolt/pkgs/fmt.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
|
-
from jolt.plugins import git, cmake
|
|
2
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
3
3
|
from jolt.tasks import TaskRegistry
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@attributes.requires("requires_git")
|
|
7
7
|
@cmake.requires()
|
|
8
8
|
@cmake.use_ninja()
|
|
9
|
+
@cxxinfo.publish(libraries=["fmt"])
|
|
9
10
|
class Fmt(cmake.CMake):
|
|
10
11
|
name = "fmt"
|
|
11
12
|
version = Parameter("12.1.0", help="Fmt version.")
|
|
@@ -17,11 +18,5 @@ class Fmt(cmake.CMake):
|
|
|
17
18
|
"FMT_TEST=OFF",
|
|
18
19
|
]
|
|
19
20
|
|
|
20
|
-
def publish(self, artifact, tools):
|
|
21
|
-
super().publish(artifact, tools)
|
|
22
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
23
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
24
|
-
artifact.cxxinfo.libraries.append("fmt")
|
|
25
|
-
|
|
26
21
|
|
|
27
22
|
TaskRegistry.get().add_task_class(Fmt)
|
jolt/pkgs/googletest.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter, Task
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@attributes.requires("requires_git")
|
|
8
8
|
@cmake.requires()
|
|
9
9
|
@cmake.use_ninja()
|
|
10
|
+
@cxxinfo.publish(libraries=["gmock", "gtest"])
|
|
10
11
|
class GoogleTest(cmake.CMake):
|
|
11
12
|
name = "google/test"
|
|
12
13
|
version = Parameter("1.12.1", help="GoogleTest version.")
|
|
@@ -17,13 +18,6 @@ class GoogleTest(cmake.CMake):
|
|
|
17
18
|
"BUILD_SHARED_LIBS={shared[ON,OFF]}",
|
|
18
19
|
]
|
|
19
20
|
|
|
20
|
-
def publish(self, artifact, tools):
|
|
21
|
-
super().publish(artifact, tools)
|
|
22
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
23
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
24
|
-
artifact.cxxinfo.libraries.append("gmock")
|
|
25
|
-
artifact.cxxinfo.libraries.append("gtest")
|
|
26
|
-
|
|
27
21
|
|
|
28
22
|
class GTestMain(Task):
|
|
29
23
|
name = "google/test/main"
|
jolt/pkgs/grpc.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter, Task
|
|
2
2
|
from jolt.pkgs import abseil, cares, cmake, nasm, protobuf, re2, ssl, zlib
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -15,6 +15,7 @@ from jolt.tasks import TaskRegistry
|
|
|
15
15
|
@attributes.system
|
|
16
16
|
@cmake.requires()
|
|
17
17
|
@cmake.use_ninja()
|
|
18
|
+
@cxxinfo.publish()
|
|
18
19
|
class Grpc(cmake.CMake):
|
|
19
20
|
name = "grpc"
|
|
20
21
|
version = Parameter("1.76.0", help="Grpc version.")
|
|
@@ -47,8 +48,6 @@ class Grpc(cmake.CMake):
|
|
|
47
48
|
super().publish(artifact, tools)
|
|
48
49
|
if self.system == "windows":
|
|
49
50
|
artifact.cxxinfo.msvcrt = "Dynamic"
|
|
50
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
51
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
52
51
|
|
|
53
52
|
|
|
54
53
|
class GrpcC(Task):
|
jolt/pkgs/jsoncpp.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake, pkgconfig
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake, pkgconfig
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ from jolt.tasks import TaskRegistry
|
|
|
8
8
|
@attributes.system
|
|
9
9
|
@cmake.requires()
|
|
10
10
|
@cmake.use_ninja()
|
|
11
|
+
@cxxinfo.publish()
|
|
11
12
|
class JsonCPP(cmake.CMake):
|
|
12
13
|
name = "jsoncpp"
|
|
13
14
|
version = Parameter("1.9.6", help="JsonCPP version.")
|
|
@@ -20,8 +21,6 @@ class JsonCPP(cmake.CMake):
|
|
|
20
21
|
|
|
21
22
|
def publish(self, artifact, tools):
|
|
22
23
|
super().publish(artifact, tools)
|
|
23
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
24
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
25
24
|
if self.system == "windows":
|
|
26
25
|
artifact.cxxinfo.libraries.append("jsoncpp_static")
|
|
27
26
|
else:
|
jolt/pkgs/libarchive.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.tasks import TaskRegistry
|
|
3
|
-
from jolt.plugins import cmake, git
|
|
3
|
+
from jolt.plugins import cmake, cxxinfo, git
|
|
4
4
|
from jolt.pkgs import bzip2, libexpat, lz4, openssl, xz, zlib, zstd
|
|
5
5
|
|
|
6
6
|
|
|
@@ -14,6 +14,7 @@ from jolt.pkgs import bzip2, libexpat, lz4, openssl, xz, zlib, zstd
|
|
|
14
14
|
@attributes.requires("requires_git")
|
|
15
15
|
@cmake.requires()
|
|
16
16
|
@cmake.use_ninja()
|
|
17
|
+
@cxxinfo.publish(libraries=["archive"])
|
|
17
18
|
class Libarchive(cmake.CMake):
|
|
18
19
|
name = "libarchive"
|
|
19
20
|
version = Parameter("3.8.5", help="libarchive version.")
|
|
@@ -33,11 +34,5 @@ class Libarchive(cmake.CMake):
|
|
|
33
34
|
"ENABLE_TEST=OFF",
|
|
34
35
|
]
|
|
35
36
|
|
|
36
|
-
def publish(self, artifact, tools):
|
|
37
|
-
super().publish(artifact, tools)
|
|
38
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
39
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
40
|
-
artifact.cxxinfo.libraries.append("archive")
|
|
41
|
-
|
|
42
37
|
|
|
43
38
|
TaskRegistry.get().add_task_class(Libarchive)
|
jolt/pkgs/libcap.py
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
from jolt import attributes, Parameter, Task
|
|
2
|
-
from jolt.plugins import fetch
|
|
3
|
-
from jolt.tasks import TaskRegistry
|
|
2
|
+
from jolt.plugins import cxxinfo, fetch
|
|
3
|
+
from jolt.tasks import BooleanParameter, TaskRegistry
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@attributes.common_metadata()
|
|
7
7
|
@attributes.requires("requires_src")
|
|
8
|
+
@cxxinfo.publish(libraries=["cap", "psx"])
|
|
8
9
|
class Libcap(Task):
|
|
9
10
|
name = "libcap"
|
|
10
11
|
version = Parameter("2.77", help="Libcap version.")
|
|
12
|
+
shared = BooleanParameter(False, help="Build shared libraries.")
|
|
11
13
|
requires_src = ["git:url=https://git.kernel.org/pub/scm/libs/libcap/libcap.git,rev=libcap-{version}"]
|
|
12
14
|
srcdir = "{git[libcap]}"
|
|
13
15
|
|
|
@@ -19,7 +21,7 @@ class Libcap(Task):
|
|
|
19
21
|
|
|
20
22
|
# Patch pkgconfig files
|
|
21
23
|
with tools.cwd(self.installdir):
|
|
22
|
-
for pc in tools.glob("lib
|
|
24
|
+
for pc in tools.glob("lib*/pkgconfig/*.pc"):
|
|
23
25
|
tools.replace_in_file(
|
|
24
26
|
pc,
|
|
25
27
|
"prefix=/usr",
|
|
@@ -38,6 +40,12 @@ class Libcap(Task):
|
|
|
38
40
|
|
|
39
41
|
def publish(self, artifact, tools):
|
|
40
42
|
with tools.cwd(self.installdir):
|
|
43
|
+
if self.shared:
|
|
44
|
+
for lib in tools.glob("lib*/*.a"):
|
|
45
|
+
tools.unlink(lib)
|
|
46
|
+
else:
|
|
47
|
+
for lib in tools.glob("lib*/*.so*"):
|
|
48
|
+
tools.unlink(lib)
|
|
41
49
|
artifact.collect("*", symlinks=True)
|
|
42
50
|
|
|
43
51
|
|
jolt/pkgs/libedit.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import ncurses
|
|
3
|
-
from jolt.plugins import git, autotools, pkgconfig
|
|
3
|
+
from jolt.plugins import cxxinfo, git, autotools, pkgconfig
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ from jolt.tasks import TaskRegistry
|
|
|
8
8
|
@attributes.requires("requires_ncurses")
|
|
9
9
|
@autotools.requires()
|
|
10
10
|
@pkgconfig.requires()
|
|
11
|
+
@cxxinfo.publish(libraries=["edit"])
|
|
11
12
|
class Libedit(autotools.Autotools):
|
|
12
13
|
name = "libedit"
|
|
13
14
|
version = Parameter("20251016-3.1", help="Libedit version.")
|
|
@@ -31,9 +32,6 @@ class Libedit(autotools.Autotools):
|
|
|
31
32
|
|
|
32
33
|
def publish(self, artifact, tools):
|
|
33
34
|
super().publish(artifact, tools)
|
|
34
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
35
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
36
|
-
artifact.cxxinfo.libraries.append("edit")
|
|
37
35
|
artifact.environ.CMAKE_PREFIX_PATH.append(".")
|
|
38
36
|
if self.shared:
|
|
39
37
|
artifact.environ.LD_LIBRARY_PATH.append("lib")
|
jolt/pkgs/libevent.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import os
|
|
1
2
|
from jolt import attributes, Parameter
|
|
2
3
|
from jolt.pkgs import cmake, openssl
|
|
3
|
-
from jolt.plugins import git, cmake, pkgconfig
|
|
4
|
+
from jolt.plugins import cxxinfo, git, cmake, pkgconfig
|
|
4
5
|
from jolt.tasks import TaskRegistry
|
|
5
6
|
|
|
6
7
|
|
|
@@ -9,6 +10,7 @@ from jolt.tasks import TaskRegistry
|
|
|
9
10
|
@cmake.requires()
|
|
10
11
|
@cmake.use_ninja()
|
|
11
12
|
@pkgconfig.requires()
|
|
13
|
+
@cxxinfo.publish(libraries=["event"])
|
|
12
14
|
class LibEvent(cmake.CMake):
|
|
13
15
|
name = "libevent"
|
|
14
16
|
version = Parameter("2.1.12", help="libevent version.")
|
|
@@ -19,7 +21,13 @@ class LibEvent(cmake.CMake):
|
|
|
19
21
|
|
|
20
22
|
def publish(self, artifact, tools):
|
|
21
23
|
super().publish(artifact, tools)
|
|
22
|
-
|
|
24
|
+
|
|
25
|
+
for libdir in ["lib", "lib32", "lib64"]:
|
|
26
|
+
if os.path.isdir(os.path.join(artifact.path, libdir)):
|
|
27
|
+
self.libdir = libdir
|
|
28
|
+
break
|
|
29
|
+
|
|
30
|
+
with tools.cwd(artifact.path, "{libdir}/cmake/libevent"):
|
|
23
31
|
for file in tools.glob("*.cmake"):
|
|
24
32
|
tools.replace_in_file(
|
|
25
33
|
file,
|
jolt/pkgs/libexpat.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
|
-
from jolt.plugins import cmake, git
|
|
2
|
+
from jolt.plugins import cmake, cxxinfo, git
|
|
3
3
|
from jolt.tasks import TaskRegistry
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@attributes.requires("requires_src")
|
|
7
7
|
@cmake.requires()
|
|
8
8
|
@cmake.use_ninja()
|
|
9
|
+
@cxxinfo.publish(libraries=["expat"])
|
|
9
10
|
class Libexpat(cmake.CMake):
|
|
10
11
|
name = "libexpat"
|
|
11
12
|
version = Parameter("2.7.3", help="Expat version.")
|
|
@@ -17,11 +18,5 @@ class Libexpat(cmake.CMake):
|
|
|
17
18
|
"BUILD_SHARED_LIBS={shared[ON,OFF]}",
|
|
18
19
|
]
|
|
19
20
|
|
|
20
|
-
def publish(self, artifact, tools):
|
|
21
|
-
super().publish(artifact, tools)
|
|
22
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
23
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
24
|
-
artifact.cxxinfo.libraries.append("expat")
|
|
25
|
-
|
|
26
21
|
|
|
27
22
|
TaskRegistry.get().add_task_class(Libexpat)
|
jolt/pkgs/libogg.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@attributes.requires("requires_git")
|
|
8
8
|
@cmake.requires()
|
|
9
9
|
@cmake.use_ninja()
|
|
10
|
+
@cxxinfo.publish(libraries=["ogg"])
|
|
10
11
|
class Libogg(cmake.CMake):
|
|
11
12
|
name = "libogg"
|
|
12
13
|
version = Parameter("1.3.6", help="libogg version.")
|
|
@@ -18,11 +19,5 @@ class Libogg(cmake.CMake):
|
|
|
18
19
|
"CMAKE_POLICY_VERSION_MINIMUM=3.5",
|
|
19
20
|
]
|
|
20
21
|
|
|
21
|
-
def publish(self, artifact, tools):
|
|
22
|
-
super().publish(artifact, tools)
|
|
23
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
24
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
25
|
-
artifact.cxxinfo.libraries.append("ogg")
|
|
26
|
-
|
|
27
22
|
|
|
28
23
|
TaskRegistry.get().add_task_class(Libogg)
|
jolt/pkgs/libtirpc.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
from jolt import attributes, Parameter
|
|
2
|
-
from jolt.plugins import autotools, fetch
|
|
2
|
+
from jolt.plugins import autotools, cxxinfo, fetch
|
|
3
3
|
from jolt.tasks import TaskRegistry
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@attributes.requires("requires_src")
|
|
7
7
|
@autotools.requires()
|
|
8
|
+
@cxxinfo.publish(libraries=["tirpc"])
|
|
8
9
|
class Libtirpc(autotools.Autotools):
|
|
9
10
|
"""Libtirpc package"""
|
|
10
11
|
name = "libtirpc"
|
|
@@ -14,11 +15,5 @@ class Libtirpc(autotools.Autotools):
|
|
|
14
15
|
srcdir = "{fetch[src]}/libtirpc-{version}"
|
|
15
16
|
options = ["--disable-gssapi"]
|
|
16
17
|
|
|
17
|
-
def publish(self, artifact, tools):
|
|
18
|
-
super().publish(artifact, tools)
|
|
19
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
20
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
21
|
-
artifact.cxxinfo.libraries.append("tirpc")
|
|
22
|
-
|
|
23
18
|
|
|
24
19
|
TaskRegistry.get().add_task_class(Libtirpc)
|
jolt/pkgs/libvorbis.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import cmake, libogg
|
|
3
|
-
from jolt.plugins import git, cmake, pkgconfig
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake, pkgconfig
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -9,6 +9,7 @@ from jolt.tasks import TaskRegistry
|
|
|
9
9
|
@cmake.requires()
|
|
10
10
|
@cmake.use_ninja()
|
|
11
11
|
@pkgconfig.requires()
|
|
12
|
+
@cxxinfo.publish(libraries=["vorbis", "vorbisenc", "vorbisfile"])
|
|
12
13
|
class Libvorbis(cmake.CMake):
|
|
13
14
|
name = "libvorbis"
|
|
14
15
|
version = Parameter("1.3.7", help="libvorbis version.")
|
|
@@ -21,13 +22,5 @@ class Libvorbis(cmake.CMake):
|
|
|
21
22
|
"CMAKE_POLICY_VERSION_MINIMUM=3.5",
|
|
22
23
|
]
|
|
23
24
|
|
|
24
|
-
def publish(self, artifact, tools):
|
|
25
|
-
super().publish(artifact, tools)
|
|
26
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
27
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
28
|
-
artifact.cxxinfo.libraries.append("vorbis")
|
|
29
|
-
artifact.cxxinfo.libraries.append("vorbisenc")
|
|
30
|
-
artifact.cxxinfo.libraries.append("vorbisfile")
|
|
31
|
-
|
|
32
25
|
|
|
33
26
|
TaskRegistry.get().add_task_class(Libvorbis)
|
jolt/pkgs/libxml2.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
2
|
from jolt.pkgs import cmake
|
|
3
|
-
from jolt.plugins import git, cmake
|
|
3
|
+
from jolt.plugins import cxxinfo, git, cmake
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ from jolt.tasks import TaskRegistry
|
|
|
8
8
|
@attributes.system
|
|
9
9
|
@cmake.requires()
|
|
10
10
|
@cmake.use_ninja()
|
|
11
|
+
@cxxinfo.publish()
|
|
11
12
|
class Libxml2(cmake.CMake):
|
|
12
13
|
name = "libxml2"
|
|
13
14
|
version = Parameter("2.15.1", help="Libxml2 version.")
|
|
@@ -22,8 +23,6 @@ class Libxml2(cmake.CMake):
|
|
|
22
23
|
|
|
23
24
|
def publish(self, artifact, tools):
|
|
24
25
|
super().publish(artifact, tools)
|
|
25
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
26
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
27
26
|
if self.system == "windows":
|
|
28
27
|
artifact.cxxinfo.libraries.append("libxml2{shared[,s]}")
|
|
29
28
|
else:
|
jolt/pkgs/lz4.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from jolt import attributes, BooleanParameter, Parameter
|
|
2
|
-
from jolt.plugins import cmake, git
|
|
2
|
+
from jolt.plugins import cmake, cxxinfo, git
|
|
3
3
|
from jolt.tasks import TaskRegistry
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@attributes.requires("requires_git")
|
|
7
7
|
@cmake.requires()
|
|
8
8
|
@cmake.use_ninja()
|
|
9
|
+
@cxxinfo.publish(libraries=["lz4"])
|
|
9
10
|
class Lz4(cmake.CMake):
|
|
10
11
|
name = "lz4"
|
|
11
12
|
version = Parameter("1.10.0", help="LZ4 version.")
|
|
@@ -16,11 +17,5 @@ class Lz4(cmake.CMake):
|
|
|
16
17
|
"BUILD_SHARED_LIBS={shared[ON,OFF]}",
|
|
17
18
|
]
|
|
18
19
|
|
|
19
|
-
def publish(self, artifact, tools):
|
|
20
|
-
super().publish(artifact, tools)
|
|
21
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
22
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
23
|
-
artifact.cxxinfo.libraries.append("lz4")
|
|
24
|
-
|
|
25
20
|
|
|
26
21
|
TaskRegistry.get().add_task_class(Lz4)
|
jolt/pkgs/mstch.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from jolt import attributes, Parameter
|
|
2
2
|
from jolt.pkgs import boost
|
|
3
|
-
from jolt.plugins import cmake, fetch
|
|
3
|
+
from jolt.plugins import cmake, cxxinfo, fetch
|
|
4
4
|
from jolt.tasks import TaskRegistry
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ from jolt.tasks import TaskRegistry
|
|
|
8
8
|
@attributes.requires("requires_src")
|
|
9
9
|
@cmake.requires()
|
|
10
10
|
@cmake.use_ninja()
|
|
11
|
+
@cxxinfo.publish(libraries=["mstch"])
|
|
11
12
|
class MSTCH(cmake.CMake):
|
|
12
13
|
name = "mstch"
|
|
13
14
|
version = Parameter("1.0.2", help="MSTCH version.")
|
|
@@ -18,11 +19,5 @@ class MSTCH(cmake.CMake):
|
|
|
18
19
|
"CMAKE_POLICY_VERSION_MINIMUM=3.5",
|
|
19
20
|
]
|
|
20
21
|
|
|
21
|
-
def publish(self, artifact, tools):
|
|
22
|
-
super().publish(artifact, tools)
|
|
23
|
-
artifact.cxxinfo.incpaths.append("include")
|
|
24
|
-
artifact.cxxinfo.libpaths.append("lib")
|
|
25
|
-
artifact.cxxinfo.libraries.append("mstch")
|
|
26
|
-
|
|
27
22
|
|
|
28
23
|
TaskRegistry.get().add_task_class(MSTCH)
|