This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
generated from bincrafters/template-default
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
46 lines (36 loc) · 1.42 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from conans import ConanFile, AutoToolsBuildEnvironment, tools
import os
class WaylandProtocolsConan(ConanFile):
name = "wayland-protocols"
description = "The Wayland-Protocols package contains additional Wayland protocols that add functionality outside of protocols already in the Wayland core."
topics = ("conan", "wayland-protocols", "wayland")
url = "https://github.com/bincrafters/conan-wayland-protocols"
homepage = "https://wayland.freedesktop.org/"
license = "MIT"
generators = "pkg_config"
settings = []
options = {}
default_options = {}
_source_subfolder = "source_subfolder"
_autotools = None
requires = (
"wayland/1.19.0"
)
def source(self):
tools.get(**self.conan_data["sources"][self.version])
extracted_dir = self.name + "-" + self.version
os.rename(extracted_dir, self._source_subfolder)
def _configure_autotools(self):
if not self._autotools:
self._autotools = AutoToolsBuildEnvironment(self)
self._autotools.configure(configure_dir= self._source_subfolder)
return self._autotools
def build(self):
autotools = self._configure_autotools()
autotools.make()
def package(self):
self.copy(pattern="COPYING", dst="licenses", src=self._source_subfolder)
autotools = self._configure_autotools()
autotools.install()
def package_info(self):
pass