forked from zamazan4ik/conan-sml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
31 lines (24 loc) · 1.04 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from conans import ConanFile, tools
class SmlConan(ConanFile):
name = "sml"
version = "1.1.0"
license = "MIT"
author = "Alexander Zaitsev [email protected]"
url = "https://github.com/ZaMaZaN4iK/conan-sml"
homepage = "https://github.com/boost-experimental/sml"
description = "[Boost].SML: C++14 State Machine Library"
topics = ("sml", "boost", "metaprogramming", "design-patterns", "state-machine")
no_copy_sources = True
_source_subfolder = "source_subfolder"
def source(self):
checksum = "5b51a0b0318fb155c65621f77179ae80f61d136789ea749dde18c4a1fca51a74"
tools.get("{0}/archive/v{1}.tar.gz".format(self.homepage, self.version), sha256=checksum)
extracted_dir = self.name + "-" + self.version
os.rename(extracted_dir, self._source_subfolder)
def package(self):
self.copy("*hpp", dst="include", src=os.path.join(self._source_subfolder, "include"))
def package_info(self):
self.info.header_only()