-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconanfile.py
32 lines (25 loc) · 1.07 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from conans import ConanFile, tools
class TinyfsmConan(ConanFile):
name = "tinyfsm"
version = "0.3.2"
license = "MIT"
author = "Alexander Zaitsev [email protected]"
url = "https://github.com/ZaMaZaN4iK/conan-tinyfsm"
homepage = "https://github.com/digint/tinyfsm"
description = "A simple C++ finite state machine library"
topics = ("state-machine", "cpp11")
no_copy_sources = True
_source_subfolder = "source_subfolder"
def source(self):
checksum = "8d1b8c2451add006f99fdcff07197bfc2e8972868d315243be06cfd0b1e879f5"
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"))
self.copy("COPYING", dst="licenses", src=self._source_subfolder)
def package_info(self):
self.info.header_only()