Skip to content

Commit

Permalink
Fix strawberry perl not supporting non x86 archs
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS committed May 28, 2024
1 parent f707cc7 commit 3bfd6a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/strawberryperl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class StrawberryPerlConan(ConanFile):
homepage = "http://strawberryperl.com"
url = "https://github.com/conan-io/conan-center-index"
topics = ("perl", "interpreter", "windows")
package_type = "application"
settings = "os", "arch", "compiler", "build_type"

def layout(self):
Expand All @@ -24,8 +25,10 @@ def package_id(self):
del self.info.settings.build_type

def validate(self):
if self.info.settings.os != "Windows":
raise ConanInvalidConfiguration("Strawberry Perl is only intended to be used on Windows.")
if self.settings.os != "Windows":
raise ConanInvalidConfiguration(f"{self.ref} is only intended to be used on Windows.")
if self.settings.arch not in ("x86", "x86_64"):
raise ConanInvalidConfiguration(f"{self.ref} is only available for x86 and x86_64 architectures.")

def source(self):
pass
Expand Down

0 comments on commit 3bfd6a9

Please sign in to comment.