1 |
commit: e0ecbeb23685caa949b18000e6e4f188cc710375 |
2 |
Author: Gabriel Caudrelier <gabriel.caudrelier <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 30 02:33:54 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 29 20:48:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0ecbeb2 |
7 |
|
8 |
app-misc/pip3line: Add new package |
9 |
|
10 |
Signed-off-by: Gabriel Caudrelier <gabriel.caudrelier <AT> gmail.com> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
Bug: https://bugs.gentoo.org/667984 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10336 |
14 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
15 |
|
16 |
app-misc/pip3line/Manifest | 1 + |
17 |
app-misc/pip3line/metadata.xml | 17 +++++++ |
18 |
app-misc/pip3line/pip3line-3.5.4.ebuild | 87 +++++++++++++++++++++++++++++++++ |
19 |
app-misc/pip3line/pip3line-9999.ebuild | 87 +++++++++++++++++++++++++++++++++ |
20 |
4 files changed, 192 insertions(+) |
21 |
|
22 |
diff --git a/app-misc/pip3line/Manifest b/app-misc/pip3line/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000000..49dcda22a14 |
25 |
--- /dev/null |
26 |
+++ b/app-misc/pip3line/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST pip3line-3.5.4.tar.gz 732872 BLAKE2B e544a2e1af958f3b1ef2e523d8489c807976523109ef8cc73f2c43b543ba9bd0b48d49009637d386e69f7768db6e2bd5a8f098d30dbd199a0b3d6bdaf782c103 SHA512 4a5421e4bf197d8ba2802c3007cfdd4d75a8c356f5bd8774d7f50bb3301e6beb52cc06f7d3486e85c3eaa16d192643afeb00b95e4d174ce16665b509e522ee6a |
29 |
|
30 |
diff --git a/app-misc/pip3line/metadata.xml b/app-misc/pip3line/metadata.xml |
31 |
new file mode 100644 |
32 |
index 00000000000..9cc54c99226 |
33 |
--- /dev/null |
34 |
+++ b/app-misc/pip3line/metadata.xml |
35 |
@@ -0,0 +1,17 @@ |
36 |
+<?xml version="1.0" encoding="UTF-8"?> |
37 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
38 |
+<pkgmetadata> |
39 |
+ <maintainer type="person"> |
40 |
+ <email>gabriel.caudrelier@×××××.com</email> |
41 |
+ <name>Gabriel Caudrelier</name> |
42 |
+ </maintainer> |
43 |
+ <maintainer type="project"> |
44 |
+ <email>proxy-maint@g.o</email> |
45 |
+ <name>Proxy Maintainers</name> |
46 |
+ </maintainer> |
47 |
+ <use> |
48 |
+ <flag name='distorm'>Compile the Distorm plugin</flag> |
49 |
+ <flag name='qscintilla'>Use QScintilla for more efficient text display</flag> |
50 |
+ <flag name='ssl'>Compile the plugin adding miscellaneous hashes from OpenSSL</flag> |
51 |
+ </use> |
52 |
+</pkgmetadata> |
53 |
|
54 |
diff --git a/app-misc/pip3line/pip3line-3.5.4.ebuild b/app-misc/pip3line/pip3line-3.5.4.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..9789c01998c |
57 |
--- /dev/null |
58 |
+++ b/app-misc/pip3line/pip3line-3.5.4.ebuild |
59 |
@@ -0,0 +1,87 @@ |
60 |
+# Copyright 1999-2018 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=6 |
64 |
+ |
65 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
66 |
+ |
67 |
+inherit cmake-utils python-r1 python-utils-r1 |
68 |
+ |
69 |
+DESCRIPTION="Raw bytes manipulation, transformations (decoding and more) and interception" |
70 |
+HOMEPAGE="https://github.com/metrodango/pip3line" |
71 |
+ |
72 |
+if [[ ${PV} == 9999* ]] ; then |
73 |
+ inherit git-r3 |
74 |
+ EGIT_REPO_URI="https://github.com/metrodango/pip3line.git" |
75 |
+ EGIT_BRANCH="master" |
76 |
+else |
77 |
+ SRC_URI="https://github.com/metrodango/pip3line/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+ KEYWORDS="~amd64 ~x86" |
79 |
+fi |
80 |
+ |
81 |
+LICENSE="GPL-3" |
82 |
+SLOT="0" |
83 |
+ |
84 |
+# A few comments |
85 |
+# the ssl flag is just there to enable the plugin for low level crypto algorithms. |
86 |
+# It has nothing to do with the SSL/TLS protocol itself. |
87 |
+ |
88 |
+IUSE="distorm python qscintilla ssl" |
89 |
+ |
90 |
+RDEPEND=" |
91 |
+ ${PYTHON_DEPS} |
92 |
+ dev-qt/qtconcurrent:5 |
93 |
+ dev-qt/qtcore:5 |
94 |
+ dev-qt/qtgui:5 |
95 |
+ dev-qt/qtnetwork:5 |
96 |
+ dev-qt/qtsvg:5 |
97 |
+ dev-qt/qtwidgets:5 |
98 |
+ dev-qt/qtxmlpatterns:5 |
99 |
+ qscintilla? ( x11-libs/qscintilla ) |
100 |
+ ssl? ( dev-libs/openssl:0= )" |
101 |
+ |
102 |
+DEPEND="${RDEPEND} |
103 |
+ distorm? ( dev-vcs/git )" |
104 |
+ |
105 |
+src_configure() { |
106 |
+ |
107 |
+ local mycmakeargs=( |
108 |
+ -DBASIC=yes |
109 |
+ -DWITH_DISTORM=$(usex distorm) |
110 |
+ -DWITH_OPENSSL=$(usex ssl) |
111 |
+ -DWITH_SCINTILLA=$(usex qscintilla) |
112 |
+ ) |
113 |
+ |
114 |
+ # distorm is statically linked, due to insufficiencies |
115 |
+ # in the current distorm64 package |
116 |
+ |
117 |
+ if use distorm; then |
118 |
+ mycmakeargs+=(-DWITH_DISTORM_LINK_STATICALLY=ON) |
119 |
+ fi |
120 |
+ |
121 |
+ if use python; then |
122 |
+ local targets=( ${PYTHON_TARGETS} ) |
123 |
+ for target in ${targets[@]}; do |
124 |
+ if python_is_python3 ${target}; then |
125 |
+ python_export ${target} PYTHON PYTHON_LIBPATH PYTHON_INCLUDEDIR |
126 |
+ mycmakeargs+=(-DWITH_PYTHON3=ON |
127 |
+ -DPYTHON3_INCLUDE_DIRS=${PYTHON_INCLUDEDIR} |
128 |
+ -DPYTHON3_LIBRARIES=${PYTHON_LIBPATH} |
129 |
+ ) |
130 |
+ break |
131 |
+ fi |
132 |
+ done |
133 |
+ for target in ${targets[@]}; do |
134 |
+ if ! python_is_python3 ${target}; then |
135 |
+ python_export ${target} PYTHON PYTHON_LIBPATH PYTHON_INCLUDEDIR |
136 |
+ mycmakeargs+=(-DWITH_PYTHON27=ON |
137 |
+ -DPYTHON27_INCLUDE_DIRS=${PYTHON_INCLUDEDIR} |
138 |
+ -DPYTHON27_LIBRARIES=${PYTHON_LIBPATH} |
139 |
+ ) |
140 |
+ break |
141 |
+ fi |
142 |
+ done |
143 |
+ fi |
144 |
+ |
145 |
+ cmake-utils_src_configure |
146 |
+} |
147 |
|
148 |
diff --git a/app-misc/pip3line/pip3line-9999.ebuild b/app-misc/pip3line/pip3line-9999.ebuild |
149 |
new file mode 100644 |
150 |
index 00000000000..9789c01998c |
151 |
--- /dev/null |
152 |
+++ b/app-misc/pip3line/pip3line-9999.ebuild |
153 |
@@ -0,0 +1,87 @@ |
154 |
+# Copyright 1999-2018 Gentoo Authors |
155 |
+# Distributed under the terms of the GNU General Public License v2 |
156 |
+ |
157 |
+EAPI=6 |
158 |
+ |
159 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
160 |
+ |
161 |
+inherit cmake-utils python-r1 python-utils-r1 |
162 |
+ |
163 |
+DESCRIPTION="Raw bytes manipulation, transformations (decoding and more) and interception" |
164 |
+HOMEPAGE="https://github.com/metrodango/pip3line" |
165 |
+ |
166 |
+if [[ ${PV} == 9999* ]] ; then |
167 |
+ inherit git-r3 |
168 |
+ EGIT_REPO_URI="https://github.com/metrodango/pip3line.git" |
169 |
+ EGIT_BRANCH="master" |
170 |
+else |
171 |
+ SRC_URI="https://github.com/metrodango/pip3line/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
172 |
+ KEYWORDS="~amd64 ~x86" |
173 |
+fi |
174 |
+ |
175 |
+LICENSE="GPL-3" |
176 |
+SLOT="0" |
177 |
+ |
178 |
+# A few comments |
179 |
+# the ssl flag is just there to enable the plugin for low level crypto algorithms. |
180 |
+# It has nothing to do with the SSL/TLS protocol itself. |
181 |
+ |
182 |
+IUSE="distorm python qscintilla ssl" |
183 |
+ |
184 |
+RDEPEND=" |
185 |
+ ${PYTHON_DEPS} |
186 |
+ dev-qt/qtconcurrent:5 |
187 |
+ dev-qt/qtcore:5 |
188 |
+ dev-qt/qtgui:5 |
189 |
+ dev-qt/qtnetwork:5 |
190 |
+ dev-qt/qtsvg:5 |
191 |
+ dev-qt/qtwidgets:5 |
192 |
+ dev-qt/qtxmlpatterns:5 |
193 |
+ qscintilla? ( x11-libs/qscintilla ) |
194 |
+ ssl? ( dev-libs/openssl:0= )" |
195 |
+ |
196 |
+DEPEND="${RDEPEND} |
197 |
+ distorm? ( dev-vcs/git )" |
198 |
+ |
199 |
+src_configure() { |
200 |
+ |
201 |
+ local mycmakeargs=( |
202 |
+ -DBASIC=yes |
203 |
+ -DWITH_DISTORM=$(usex distorm) |
204 |
+ -DWITH_OPENSSL=$(usex ssl) |
205 |
+ -DWITH_SCINTILLA=$(usex qscintilla) |
206 |
+ ) |
207 |
+ |
208 |
+ # distorm is statically linked, due to insufficiencies |
209 |
+ # in the current distorm64 package |
210 |
+ |
211 |
+ if use distorm; then |
212 |
+ mycmakeargs+=(-DWITH_DISTORM_LINK_STATICALLY=ON) |
213 |
+ fi |
214 |
+ |
215 |
+ if use python; then |
216 |
+ local targets=( ${PYTHON_TARGETS} ) |
217 |
+ for target in ${targets[@]}; do |
218 |
+ if python_is_python3 ${target}; then |
219 |
+ python_export ${target} PYTHON PYTHON_LIBPATH PYTHON_INCLUDEDIR |
220 |
+ mycmakeargs+=(-DWITH_PYTHON3=ON |
221 |
+ -DPYTHON3_INCLUDE_DIRS=${PYTHON_INCLUDEDIR} |
222 |
+ -DPYTHON3_LIBRARIES=${PYTHON_LIBPATH} |
223 |
+ ) |
224 |
+ break |
225 |
+ fi |
226 |
+ done |
227 |
+ for target in ${targets[@]}; do |
228 |
+ if ! python_is_python3 ${target}; then |
229 |
+ python_export ${target} PYTHON PYTHON_LIBPATH PYTHON_INCLUDEDIR |
230 |
+ mycmakeargs+=(-DWITH_PYTHON27=ON |
231 |
+ -DPYTHON27_INCLUDE_DIRS=${PYTHON_INCLUDEDIR} |
232 |
+ -DPYTHON27_LIBRARIES=${PYTHON_LIBPATH} |
233 |
+ ) |
234 |
+ break |
235 |
+ fi |
236 |
+ done |
237 |
+ fi |
238 |
+ |
239 |
+ cmake-utils_src_configure |
240 |
+} |