Skip to content

Commit 6298b79

Browse files
author
turtlebrowser-bot
committed
schedule : Commit by patricia-gallardo with SHA 2a1b8d3d113866ba68e42a8702dc00206bddba2a on refs/heads/master
1 parent dafd9fc commit 6298b79

File tree

442 files changed

+68619
-67
lines changed

Some content is hidden

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

442 files changed

+68619
-67
lines changed

.conan/data/freetype/2.10.4/_/_/export/conanfile.py

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from conans import ConanFile, CMake, tools
22
import os
3+
import re
34
import shutil
45
import textwrap
56

@@ -8,8 +9,6 @@
89

910
class FreetypeConan(ConanFile):
1011
name = "freetype"
11-
12-
_libtool_version = "23.0.17" # check docs/version.txt, this is a different version mumber!
1312
description = "FreeType is a freely available software library to render fonts."
1413
url = "https://github.com/conan-io/conan-center-index"
1514
homepage = "https://www.freetype.org"
@@ -107,7 +106,6 @@ def _configure_cmake(self):
107106
if self._cmake:
108107
return self._cmake
109108
self._cmake = CMake(self)
110-
self._cmake.definitions["PROJECT_VERSION"] = self._libtool_version
111109
self._cmake.definitions["FT_WITH_ZLIB"] = self.options.with_zlib
112110
self._cmake.definitions["FT_WITH_PNG"] = self.options.with_png
113111
self._cmake.definitions["FT_WITH_BZIP2"] = self.options.with_bzip2
@@ -123,7 +121,7 @@ def build(self):
123121
cmake = self._configure_cmake()
124122
cmake.build()
125123

126-
def _make_freetype_config(self):
124+
def _make_freetype_config(self, version):
127125
freetype_config_in = os.path.join(self._source_subfolder, "builds", "unix", "freetype-config.in")
128126
if not os.path.isdir(os.path.join(self.package_folder, "bin")):
129127
os.makedirs(os.path.join(self.package_folder, "bin"))
@@ -139,23 +137,37 @@ def _make_freetype_config(self):
139137
tools.replace_in_file(freetype_config, r"%ft_version%", r"$conan_ftversion")
140138
tools.replace_in_file(freetype_config, r"%LIBSSTATIC_CONFIG%", r"$conan_staticlibs")
141139
tools.replace_in_file(freetype_config, r"-lfreetype", libs)
142-
tools.replace_in_file(freetype_config, r"export LC_ALL", """export LC_ALL
143-
BINDIR=$(dirname $0)
144-
conan_prefix=$(dirname $BINDIR)
145-
conan_exec_prefix=${{conan_prefix}}/bin
146-
conan_includedir=${{conan_prefix}}/include
147-
conan_libdir=${{conan_prefix}}/lib
148-
conan_ftversion={version}
149-
conan_staticlibs="{staticlibs}"
150-
""".format(version=self._libtool_version, staticlibs=staticlibs))
140+
tools.replace_in_file(freetype_config, r"export LC_ALL", textwrap.dedent("""\
141+
export LC_ALL
142+
BINDIR=$(dirname $0)
143+
conan_prefix=$(dirname $BINDIR)
144+
conan_exec_prefix=${{conan_prefix}}/bin
145+
conan_includedir=${{conan_prefix}}/include
146+
conan_libdir=${{conan_prefix}}/lib
147+
conan_ftversion={version}
148+
conan_staticlibs="{staticlibs}"
149+
""").format(version=version, staticlibs=staticlibs))
150+
151+
def _extract_libtool_version(self):
152+
conf_raw = tools.load(os.path.join(self._source_subfolder, "builds", "unix", "configure.raw"))
153+
return next(re.finditer(r"^version_info='([0-9:]+)'", conf_raw, flags=re.M)).group(1).replace(":", ".")
154+
155+
@property
156+
def _libtool_version_txt(self):
157+
return os.path.join(self.package_folder, "res", "freetype-libtool-version.txt")
151158

152159
def package(self):
153160
cmake = self._configure_cmake()
154161
cmake.install()
155-
self._make_freetype_config()
156-
self.copy("FTL.TXT", dst="licenses", src=os.path.join(self._source_subfolder, "docs"))
157-
self.copy("GPLv2.TXT", dst="licenses", src=os.path.join(self._source_subfolder, "docs"))
158-
self.copy("LICENSE.TXT", dst="licenses", src=os.path.join(self._source_subfolder, "docs"))
162+
163+
libtool_version = self._extract_libtool_version()
164+
tools.save(self._libtool_version_txt, libtool_version)
165+
self._make_freetype_config(libtool_version)
166+
167+
self.copy("FTL.TXT", src=os.path.join(self._source_subfolder, "docs"), dst="licenses")
168+
self.copy("GPLv2.TXT", src=os.path.join(self._source_subfolder, "docs"), dst="licenses")
169+
self.copy("LICENSE.TXT", src=os.path.join(self._source_subfolder, "docs"), dst="licenses")
170+
159171
tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
160172
tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
161173
self._create_cmake_module_variables(
@@ -223,7 +235,6 @@ def package_info(self):
223235
freetype_config = os.path.join(self.package_folder, "bin", "freetype-config")
224236
self.env_info.PATH.append(os.path.join(self.package_folder, "bin"))
225237
self.env_info.FT2_CONFIG = freetype_config
226-
self.user_info.LIBTOOL_VERSION = self._libtool_version
227238
self._chmod_plus_x(freetype_config)
228239
# cmake's FindFreetype.cmake module with imported target: Freetype::Freetype
229240
self.cpp_info.filenames["cmake_find_package"] = "Freetype"
@@ -234,3 +245,8 @@ def package_info(self):
234245
self.cpp_info.build_modules["cmake_find_package"] = [self._module_vars_rel_path]
235246
self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_target_rel_path]
236247
self.cpp_info.names["pkg_config"] = "freetype2"
248+
249+
libtool_version = tools.load(self._libtool_version_txt).strip()
250+
self.user_info.LIBTOOL_VERSION = libtool_version
251+
# FIXME: need to do override the pkg_config version (pkg_config_custom_content does not work)
252+
# self.cpp_info.version["pkg_config"] = pkg_config_version
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1632052422
1+
1632242888
22
conandata.yml: 81a1c76362fe5e71bcc978c0e49ba7a9
3-
conanfile.py: 7ac40840159da4160bb2bf7eb22d6ba1
3+
conanfile.py: 0cf3a462d2c61aca271860f47202d11a
44
export_source/CMakeLists.txt: ac606e6da954a6f18d4b49db940ee1a1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"recipe": {"revision": "0", "remote": "conancenter", "properties": {}, "checksums": {"conanmanifest.txt": {"md5": "2fce0cc03a7a8520a000d249bccda902", "sha1": "61483c39864e093eb4e034afb4537541c93f5ca3"}, "conanfile.py": {"md5": "7ac40840159da4160bb2bf7eb22d6ba1", "sha1": "14ec24563aef573c86662642398390e2d1cc7265"}, "conan_export.tgz": {"md5": "eea3d1a2f04ae2da2996d9e0a48d22ad", "sha1": "9f35a22d7cb89a793576e600631de9c510f7aef7"}}}, "packages": {"f4924bd3b94e155cbf790d74ba3a3c29ccc81e89": {"revision": "0", "recipe_revision": "0", "remote": "conancenter", "properties": {}, "checksums": {"conanmanifest.txt": {"md5": "59508f74037e5985f24af2a6570994f4", "sha1": "1d474551dd33ddae1f6276f1f34e52a3222cfebb"}, "conaninfo.txt": {"md5": "85e0ea576e675889c5446bfffa5664d3", "sha1": "1e41472355dda39464322c09d3de987fb92fd5ae"}, "conan_package.tgz": {"md5": "07f8e0024d539a2786d8674915b64e4d", "sha1": "fc91b338f1f1cbe0e5d1449a49ef2e5eb38df201"}}}}}
1+
{"recipe": {"revision": "0", "remote": "conancenter", "properties": {}, "checksums": {"conanmanifest.txt": {"md5": "6d1b5309b47327327455af35493eb467", "sha1": "d989a8137e9ea72028466cd08a669499f4305e45"}, "conanfile.py": {"md5": "0cf3a462d2c61aca271860f47202d11a", "sha1": "934273136c8c65932d0b2a72be7c798e90879227"}, "conan_export.tgz": {"md5": "eea3d1a2f04ae2da2996d9e0a48d22ad", "sha1": "9f35a22d7cb89a793576e600631de9c510f7aef7"}}}, "packages": {"f4924bd3b94e155cbf790d74ba3a3c29ccc81e89": {"revision": "0", "recipe_revision": "0", "remote": "conancenter", "properties": {}, "checksums": {"conanmanifest.txt": {"md5": "58132e3ad88dda552334b1d176f82304", "sha1": "0e568e05bbb30a0b6ee13a5e3ea021e489172dab"}, "conaninfo.txt": {"md5": "531aadb694328498cb46c0421b3cefaf", "sha1": "302c5a307d798c3652232aa40ac2b4854eb2b871"}, "conan_package.tgz": {"md5": "c3c84c4e0165f184a5e1ec1416d3caae", "sha1": "6bf22cff9197a2d9c69380626dddee7737eca2a5"}}}}}

.conan/data/freetype/2.10.4/_/_/package/f4924bd3b94e155cbf790d74ba3a3c29ccc81e89/bin/freetype-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ conan_prefix=$(dirname $BINDIR)
1616
conan_exec_prefix=${conan_prefix}/bin
1717
conan_includedir=${conan_prefix}/include
1818
conan_libdir=${conan_prefix}/lib
19-
conan_ftversion=23.0.17
19+
conan_ftversion=23.4.17
2020
conan_staticlibs="-lfreetype"
2121

2222

.conan/data/freetype/2.10.4/_/_/package/f4924bd3b94e155cbf790d74ba3a3c29ccc81e89/conaninfo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
zlib:shared=False
5454

5555
[recipe_hash]
56-
5f39ce560c4e2226babf571e8f4f6f32
56+
6e66ba2a68a458a4cbb60077e45ee139
5757

5858
[env]
5959

.conan/data/freetype/2.10.4/_/_/package/f4924bd3b94e155cbf790d74ba3a3c29ccc81e89/conanmanifest.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
1632053299
2-
bin/freetype-config: 5db4041ebd28c0840a4139385ba897de
3-
conaninfo.txt: 85e0ea576e675889c5446bfffa5664d3
1+
1632244393
2+
bin/freetype-config: 1d93f459e42428d8ece0b9077ae98ef2
3+
conaninfo.txt: 531aadb694328498cb46c0421b3cefaf
44
include/freetype2/freetype/config/ftconfig.h: 28acbc49e36c82ae9ea2b76e453a5e4b
55
include/freetype2/freetype/config/ftheader.h: 8e72e64894219c4ec3fca41f9b9bed55
66
include/freetype2/freetype/config/ftmodule.h: e8dfd5b101eeec8ee3902fdf750f3999
@@ -56,7 +56,8 @@ include/freetype2/freetype/tttags.h: e6575cc01c0d7fb4fd7104bd58976d87
5656
include/freetype2/ft2build.h: bd3f0a22427fb3084a1c1433e59ac33e
5757
lib/cmake/conan-official-freetype-targets.cmake: 427f38bae7f4bbcb0ad89f18dcc62edd
5858
lib/cmake/conan-official-freetype-variables.cmake: c62479687b38c38c2665e2475e299546
59-
lib/libfreetype.a: 1cf911a7720365d2104bed1c522a8f95
59+
lib/libfreetype.a: a428d21482826dda7c8db5c65a280b53
6060
licenses/FTL.TXT: 9f37b4e6afa3fef9dba8932b16bd3f97
6161
licenses/GPLv2.TXT: 8ef380476f642c20ebf40fecb0add2ec
6262
licenses/LICENSE.TXT: 4af6221506f202774ef74f64932878a1
63+
res/freetype-libtool-version.txt: 2e36112f674447a46b44e57b20c18696
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
23.4.17
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sources:
2+
2.70.0:
3+
sha256: aadf815ed908d4cc14ac3976f325b986b4ab2b65ad85bc214ddf2e200648bd1c
4+
url: https://gitlab.gnome.org/GNOME/glib/-/archive/2.70.0/glib-2.70.0.tar.gz

0 commit comments

Comments
 (0)