Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorpipe/files/, sci-libs/tensorpipe/
Date: Tue, 31 May 2022 10:57:21
Message-Id: 1653994613.926c98d2efbf6b5045463ece655adc62d52f5926.tupone@gentoo
1 commit: 926c98d2efbf6b5045463ece655adc62d52f5926
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 10:56:53 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 10:56:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=926c98d2
7
8 sci-libs/tensorpipe: add to tree
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 sci-libs/tensorpipe/Manifest | 1 +
14 .../files/tensorpipe-2022.05.13-gentoo.patch | 10 ++++++++
15 sci-libs/tensorpipe/metadata.xml | 11 ++++++++
16 sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild | 30 ++++++++++++++++++++++
17 4 files changed, 52 insertions(+)
18
19 diff --git a/sci-libs/tensorpipe/Manifest b/sci-libs/tensorpipe/Manifest
20 new file mode 100644
21 index 000000000000..088437c1b3f9
22 --- /dev/null
23 +++ b/sci-libs/tensorpipe/Manifest
24 @@ -0,0 +1 @@
25 +DIST tensorpipe-2022.05.13.tar.gz 259678 BLAKE2B 09231216b7ea1a5f4559bfd38d82337cdcde160c34ceb160c728b85ccf94566b812f0c38b6d3f6bc74b6f08b49b749939970265df343e3ca0214803f9d88e58c SHA512 cf0334f81affb2d844bc8b63c533a749753e36ee096f841641716a3bf044b17580262a2e9056d8d1351228e323c4f75401a2a120a5de397e80ec21a33fe56d2b
26
27 diff --git a/sci-libs/tensorpipe/files/tensorpipe-2022.05.13-gentoo.patch b/sci-libs/tensorpipe/files/tensorpipe-2022.05.13-gentoo.patch
28 new file mode 100644
29 index 000000000000..1d3ab0724030
30 --- /dev/null
31 +++ b/sci-libs/tensorpipe/files/tensorpipe-2022.05.13-gentoo.patch
32 @@ -0,0 +1,10 @@
33 +--- a/tensorpipe/CMakeLists.txt 2022-05-27 16:04:55.374134087 +0200
34 ++++ b/tensorpipe/CMakeLists.txt 2022-05-27 16:05:11.596909345 +0200
35 +@@ -184,7 +184,6 @@
36 + # We should keep libnop headers private as they should not be exposed to downstream users,
37 + # but they're currently transitively included by tensorpipe/transport/connection.h (which
38 + # is still unclear whether it should be a public or private header).
39 +-list(APPEND TP_INCLUDE_DIRS $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third_party/libnop/include>)
40 +
41 +
42 + ## Target
43
44 diff --git a/sci-libs/tensorpipe/metadata.xml b/sci-libs/tensorpipe/metadata.xml
45 new file mode 100644
46 index 000000000000..a676d5dbb87a
47 --- /dev/null
48 +++ b/sci-libs/tensorpipe/metadata.xml
49 @@ -0,0 +1,11 @@
50 +<?xml version="1.0" encoding="UTF-8"?>
51 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
52 +<pkgmetadata>
53 + <maintainer type="person">
54 + <email>tupone@g.o</email>
55 + <name>Tupone Alfredo</name>
56 + </maintainer>
57 + <upstream>
58 + <remote-id type="github">pytorch/tensorpipe</remote-id>
59 + </upstream>
60 +</pkgmetadata>
61
62 diff --git a/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild b/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild
63 new file mode 100644
64 index 000000000000..23422f9cc125
65 --- /dev/null
66 +++ b/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild
67 @@ -0,0 +1,30 @@
68 +# Copyright 2022 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=8
72 +
73 +inherit cmake
74 +
75 +CommitId=bb1473a4b38b18268e8693044afdb8635bc8351b
76 +
77 +DESCRIPTION="provides a tensor-aware channel"
78 +HOMEPAGE="https://github.com/pytorch/tensorpipe/"
79 +SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz
80 + -> ${P}.tar.gz"
81 +
82 +LICENSE="BSD"
83 +SLOT="0"
84 +KEYWORDS="~amd64"
85 +RESTRICT=test
86 +
87 +RDEPEND="
88 + dev-libs/libuv
89 +"
90 +DEPEND="${RDEPEND}
91 + dev-libs/libnop
92 +"
93 +BDEPEND=""
94 +
95 +S="${WORKDIR}"/${PN}-${CommitId}
96 +
97 +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )