File: conanfile.py

package info (click to toggle)
rang 3.2.0-1
  • links: PTS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 148 kB
  • sloc: cpp: 849; python: 33; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
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
from conans import ConanFile, Meson


class RangConan(ConanFile):
    name = "rang"
    version = "3.2.0"
    license = "The Unlicense"
    url = "https://github.com/agauniyal/rang"
    description = "A Minimal, Header only Modern c++ library for colors in your terminal"
    generators = "pkg_config"
    build_requires = "doctest/1.2.6@bincrafters/stable"
    exports_sources = "*"
    settings = "build_type"

    def build(self):
        meson = Meson(self)
        meson.configure(cache_build_folder="build")
        meson.build()

    def package(self):
        self.copy("*.hpp")
        self.copy(pattern="LICENSE", dst="licenses", keep_path=False)

    def package_id(self):
        self.info.header_only()