(#14496) taglib: bump version to 1.13

This commit is contained in:
ZHANG Xiang
2022-12-12 19:08:14 +08:00
committed by GitHub
parent 5a787d229b
commit ae36beb8e0
3 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
sources:
"1.13":
url: "https://taglib.org/releases/taglib-1.13.tar.gz"
sha256: "58f08b4db3dc31ed152c04896ee9172d22052bc7ef12888028c01d8b1d60ade0"
"1.12":
url: "https://taglib.org/releases/taglib-1.12.tar.gz"
sha256: "7fccd07669a523b07a15bd24c8da1bbb92206cb19e9366c3692af3d79253b703"

View File

@@ -1,6 +1,7 @@
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, replace_in_file, rm, rmdir
from conan.tools.scm import Version
from conans import tools as tools_legacy
import os
@@ -68,7 +69,10 @@ class TaglibConan(ConanFile):
os.path.join(self.source_folder, "taglib", "CMakeLists.txt"),
os.path.join(self.source_folder, "bindings", "c", "CMakeLists.txt"),
]:
replace_in_file(self, cmakelists, "INSTALL_NAME_DIR ${LIB_INSTALL_DIR}", "")
if Version(self.version) >= "1.13":
replace_in_file(self, cmakelists, "INSTALL_NAME_DIR ${CMAKE_INSTALL_LIBDIR}", "")
else:
replace_in_file(self, cmakelists, "INSTALL_NAME_DIR ${LIB_INSTALL_DIR}", "")
def build(self):
self._patch_sources()

View File

@@ -1,3 +1,5 @@
versions:
"1.13":
folder: all
"1.12":
folder: all