Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add recipe for ua-nodeset #7312

Merged
merged 22 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions recipes/ua-nodeset/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sources:
"1.02":
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
url: https://github.com/OPCFoundation/UA-Nodeset/archive/refs/tags/PADIM-1.02-2021-07-21.tar.gz
sha256: 05c83369ea82cd275d47ccc46a6d919c81392e2d0b7444a3e538ee3ba482dbee
29 changes: 29 additions & 0 deletions recipes/ua-nodeset/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from conans import ConanFile, CMake, tools
import os


class UaNodeSetConan(ConanFile):
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
name = "UA-Nodeset"
license = "UNKNOWN" # https://github.com/OPCFoundation/UA-Nodeset/issues/79
Pro marked this conversation as resolved.
Show resolved Hide resolved
description = "This repository contains UANodeSets and other normative files which are released with a specification"
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
homepage = "https://github.com/OPCFoundation/UA-Nodeset"
url = "https://www.github.com/conan-io/conan-center-index"

no_copy_source = True


def source(self):
tools.get(**self.conan_data["sources"][self.version])
os.rename("{}-{}".format(self.name, self.version), self._source_subfolder)

def build(self):
pass


def package(self):
Pro marked this conversation as resolved.
Show resolved Hide resolved
self.copy("*", dst="res")


def package_info(self):
self.cpp_info.libdirs = []
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
self.env_info.nodeset_path = os.path.join(self.package_folder, "res")
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions recipes/ua-nodeset/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
versions:
Mo-Tay marked this conversation as resolved.
Show resolved Hide resolved
"1.02":
folder: all