-
Notifications
You must be signed in to change notification settings - Fork 1
/
conanfile.py
29 lines (24 loc) · 816 Bytes
/
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
from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "1.7.6"
class CotireConan(ConanFile):
name = "cotire"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
generators = "cmake"
requires = tuple()
url = "http://github.com/sakra/cotire"
license = "MIT"
def source(self):
zip_name = "cotire.zip"
download("https://github.com/sakra/"
"cotire/archive/{version}.zip"
"".format(version="cotire-" + VERSION),
zip_name)
unzip(zip_name)
os.unlink(zip_name)
def package(self):
self.copy(pattern="*.cmake",
dst="cmake/cotire",
src=os.path.join("cotire-cotire-" + VERSION, "CMake"),
keep_path=True)