Skip to content

Commit

Permalink
(conan-io#22002) sdl_net: add v2.2.0, bump sdl
Browse files Browse the repository at this point in the history
* sdl_net: add v2.2.0, bump sdl

* sdl_net: update license file name
  • Loading branch information
valgur authored Jun 11, 2024
1 parent fab6b7b commit 6fdcb31
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions recipes/sdl_net/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"2.2.0":
url: "https://github.com/libsdl-org/SDL_net/releases/download/release-2.2.0/SDL2_net-2.2.0.tar.gz"
sha256: "4e4a891988316271974ff4e9585ed1ef729a123d22c08bd473129179dc857feb"
"2.0.1":
url: "https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz"
sha256: "15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21"
5 changes: 3 additions & 2 deletions recipes/sdl_net/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def layout(self):

def requirements(self):
# SDL_net.h includes SDL.h, SDL_endian.h and SDL_version.h
self.requires("sdl/2.28.2", transitive_headers=True)
self.requires("sdl/2.28.5", transitive_headers=True)

def validate(self):
if Version(self.version).major != Version(self.dependencies["sdl"].ref.version).major:
Expand All @@ -65,7 +65,8 @@ def build(self):
cmake.build()

def package(self):
copy(self, "COPYING.txt", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
license_file = "COPYING.txt" if Version(self.version) < "2.2.0" else "LICENSE.txt"
copy(self, license_file, self.source_folder, os.path.join(self.package_folder, "licenses"))
cmake = CMake(self)
cmake.install()

Expand Down
2 changes: 1 addition & 1 deletion recipes/sdl_net/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def layout(self):

def requirements(self):
self.requires(self.tested_reference_str)
self.requires("sdl/2.28.2")
self.requires("sdl/2.28.5")

def build(self):
cmake = CMake(self)
Expand Down
2 changes: 2 additions & 0 deletions recipes/sdl_net/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"2.2.0":
folder: all
"2.0.1":
folder: all

0 comments on commit 6fdcb31

Please sign in to comment.