summaryrefslogtreecommitdiff
path: root/dev-libs/metee
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-26 00:09:36 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-26 00:09:36 +0100
commitb1c81de4fadbd00897700a7321f03b390d952b2e (patch)
treee6cc812351d4f105c110cfc363ebb497e996f47a /dev-libs/metee
parent7c59acba5699c9c58090a7a738669669a7307023 (diff)
gentoo resync : 26.08.2021
Diffstat (limited to 'dev-libs/metee')
-rw-r--r--dev-libs/metee/Manifest4
-rw-r--r--dev-libs/metee/files/metee-3.1.0-make-docs-optional.patch81
-rw-r--r--dev-libs/metee/metadata.xml19
-rw-r--r--dev-libs/metee/metee-3.1.0.ebuild31
4 files changed, 135 insertions, 0 deletions
diff --git a/dev-libs/metee/Manifest b/dev-libs/metee/Manifest
new file mode 100644
index 000000000000..948dfdc24e9c
--- /dev/null
+++ b/dev-libs/metee/Manifest
@@ -0,0 +1,4 @@
+AUX metee-3.1.0-make-docs-optional.patch 2583 BLAKE2B f95c85a91178e2986dfdc8e98630616c3d1364c533cd10f2b69fa5e04184e719d149a2df46d9aa9296df222b56fdef56cf2b265de5eafcbfbf3d019d8e8ea857 SHA512 d2e84ab41ebdfa1fc4d1905cd9cfeed0826512409832e6c99cd946cb71f6829ef52130146a326868d42538c55b26ac1f866809688bce73415f0ebb19338ca0ff
+DIST metee-3.1.0.tar.gz 70185 BLAKE2B 7f0c595b52b608e1136c77df13244681b73f099e384fae6f5ccd350ccf679f539c8b0bc8ac062f386fa41cec9c9edf3064a6c6a981af4ccdc978629a9ebc0d90 SHA512 a967df238f2a51ecbee6fe3fe8a0d63aa321c35a520f0297688a6dab1d760358bca53a6d3cf3446f1fc9cf7f0a6c13746f5d3aa1e2064e753b1bbdb2bd356e60
+EBUILD metee-3.1.0.ebuild 692 BLAKE2B c2b6bc7dcb2c9a8b458ea70c793c7613395d88a24b1d36965e659dcf0aed04b065df71d482c95bc7e804e7019b68e3e468658d79b7ca4250735209a34e174df5 SHA512 fe305bc31bda6054be0d27cc247c4b36406c0e2c92eb36e99fc6861224619b85bc3ddeca7b6e37a9ce989febc60be45491e385af4a1b7be4334104ef3113f038
+MISC metadata.xml 575 BLAKE2B 1652ae3e008655a1dae0cf5ff1a46b07f277f92cf7e182a4fd293b1bebe37a0cc213cb8fb3acba5fbe2e0fad78879072a0aedcf2ab4c554ff6f173a1e22a20b2 SHA512 b010b8d7b410b4f6862a1d6f76ad9067b9d02144581e96a9a6f6481cee963ae40bd0be644546d728a55f4c3fe04e6a68185cdf53ec0359b3ecba5ff010c405b2
diff --git a/dev-libs/metee/files/metee-3.1.0-make-docs-optional.patch b/dev-libs/metee/files/metee-3.1.0-make-docs-optional.patch
new file mode 100644
index 000000000000..9e4eda27e2d8
--- /dev/null
+++ b/dev-libs/metee/files/metee-3.1.0-make-docs-optional.patch
@@ -0,0 +1,81 @@
+From 95c36b4f09eb3697877610a8a995befe32536b78 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <conikost@gentoo.org>
+Date: Sun, 22 Aug 2021 14:16:56 +0200
+Subject: [PATCH] CMakeLists.txt: make docs optional
+
+Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
+---
+ CMakeLists.txt | 51 ++++++++++++++++++++++++++------------------------
+ 1 file changed, 27 insertions(+), 24 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5b2696d..cd56dc3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,6 +3,7 @@
+ cmake_minimum_required(VERSION 3.5)
+ project(metee)
+
++option(BUILD_DOCS "Build docs" YES)
+ option(BUILD_TEST "Build self-test" NO)
+ option(BUILD_SAMPLES "Build samples" NO)
+ option(BUILD_MSVC_RUNTIME_STATIC "Build with static runtime libraries on MSVC"
+@@ -43,32 +44,34 @@ install(
+ )
+
+ # Documentation
+-find_package(Doxygen)
+-if(DOXYGEN_FOUND)
+- set(DOXYGEN_INPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+- set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+- configure_file(
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/Doxyfile.in
+- ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
+- )
+-
+- add_custom_target(
+- doc ALL
+- ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+- COMMENT "Generating documentation with Doxygen"
+- VERBATIM
+- )
+-
+- if(UNIX)
+- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man/man3
+- DESTINATION ${CMAKE_INSTALL_MANDIR}
++if(BUILD_DOCS)
++ find_package(Doxygen)
++ if(DOXYGEN_FOUND)
++ set(DOXYGEN_INPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
++ set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
++ configure_file(
++ ${CMAKE_CURRENT_SOURCE_DIR}/include/Doxyfile.in
++ ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
+ )
+- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
+- DESTINATION ${CMAKE_INSTALL_DOCDIR}
++
++ add_custom_target(
++ doc ALL
++ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
++ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
++ COMMENT "Generating documentation with Doxygen"
++ VERBATIM
+ )
+- else()
+- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION doc)
++
++ if(UNIX)
++ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man/man3
++ DESTINATION ${CMAKE_INSTALL_MANDIR}
++ )
++ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
++ DESTINATION ${CMAKE_INSTALL_DOCDIR}
++ )
++ else()
++ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION doc)
++ endif()
+ endif()
+ endif()
+
diff --git a/dev-libs/metee/metadata.xml b/dev-libs/metee/metadata.xml
new file mode 100644
index 000000000000..594605d5c892
--- /dev/null
+++ b/dev-libs/metee/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>gentoo@taujhe.de</email>
+ <name>Jan Henke</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">intel/metee</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/metee/metee-3.1.0.ebuild b/dev-libs/metee/metee-3.1.0.ebuild
new file mode 100644
index 000000000000..713c3b7a8cfa
--- /dev/null
+++ b/dev-libs/metee/metee-3.1.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Cross-platform access library for Intel CSME HECI interface"
+HOMEPAGE="https://github.com/intel/compute-runtime"
+SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+BDEPEND="doc? ( app-doc/doxygen )"
+
+PATCHES=( "${FILESDIR}/${PN}-3.1.0-make-docs-optional.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCS="$(usex doc)"
+ -DBUILD_SAMPLES="NO"
+ -DBUILD_SHARED_LIBS="YES"
+ -DBUILD_TEST="NO"
+ -DCONSOLE_OUTPUT="NO"
+ )
+
+ cmake_src_configure
+}