Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/pip3line/
Date: Sat, 08 Dec 2018 22:17:49
Message-Id: 1544307430.ba60ed0e19d82ec34f3a7e5cddfe14e6e7c2045f.monsieurp@gentoo
1 commit: ba60ed0e19d82ec34f3a7e5cddfe14e6e7c2045f
2 Author: Gabriel Caudrelier <gabriel.caudrelier <AT> gmail <DOT> com>
3 AuthorDate: Wed Dec 5 03:27:35 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 8 22:17:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba60ed0e
7
8 app-misc/pip3line: version bump to 3.5.5.
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.11
11 Signed-off-by: Gabriel Caudrelier <gabriel.caudrelier <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/10575
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 app-misc/pip3line/Manifest | 1 +
16 app-misc/pip3line/pip3line-3.5.5.ebuild | 87 +++++++++++++++++++++++++++++++++
17 2 files changed, 88 insertions(+)
18
19 diff --git a/app-misc/pip3line/Manifest b/app-misc/pip3line/Manifest
20 index 49dcda22a14..7d9839be610 100644
21 --- a/app-misc/pip3line/Manifest
22 +++ b/app-misc/pip3line/Manifest
23 @@ -1 +1,2 @@
24 DIST pip3line-3.5.4.tar.gz 732872 BLAKE2B e544a2e1af958f3b1ef2e523d8489c807976523109ef8cc73f2c43b543ba9bd0b48d49009637d386e69f7768db6e2bd5a8f098d30dbd199a0b3d6bdaf782c103 SHA512 4a5421e4bf197d8ba2802c3007cfdd4d75a8c356f5bd8774d7f50bb3301e6beb52cc06f7d3486e85c3eaa16d192643afeb00b95e4d174ce16665b509e522ee6a
25 +DIST pip3line-3.5.5.tar.gz 733385 BLAKE2B e9577fb02d778b689d1c3f5849f714b7d27a5ad49a7a68e412a19cb8251e7ca1d76d0a046bfe10db2257593ccba4f1aa5fff0f34c317975f75ef347f50172088 SHA512 95cbc567f1a7f2bcbc07fe7d560829d9538c126a2748b762fcf505bad47926376abea9d8eaba8670f4c3826b988ea1ea1338faf625a6cdf8db17f457af4edbbb
26
27 diff --git a/app-misc/pip3line/pip3line-3.5.5.ebuild b/app-misc/pip3line/pip3line-3.5.5.ebuild
28 new file mode 100644
29 index 00000000000..9789c01998c
30 --- /dev/null
31 +++ b/app-misc/pip3line/pip3line-3.5.5.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
39 +
40 +inherit cmake-utils python-r1 python-utils-r1
41 +
42 +DESCRIPTION="Raw bytes manipulation, transformations (decoding and more) and interception"
43 +HOMEPAGE="https://github.com/metrodango/pip3line"
44 +
45 +if [[ ${PV} == 9999* ]] ; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://github.com/metrodango/pip3line.git"
48 + EGIT_BRANCH="master"
49 +else
50 + SRC_URI="https://github.com/metrodango/pip3line/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64 ~x86"
52 +fi
53 +
54 +LICENSE="GPL-3"
55 +SLOT="0"
56 +
57 +# A few comments
58 +# the ssl flag is just there to enable the plugin for low level crypto algorithms.
59 +# It has nothing to do with the SSL/TLS protocol itself.
60 +
61 +IUSE="distorm python qscintilla ssl"
62 +
63 +RDEPEND="
64 + ${PYTHON_DEPS}
65 + dev-qt/qtconcurrent:5
66 + dev-qt/qtcore:5
67 + dev-qt/qtgui:5
68 + dev-qt/qtnetwork:5
69 + dev-qt/qtsvg:5
70 + dev-qt/qtwidgets:5
71 + dev-qt/qtxmlpatterns:5
72 + qscintilla? ( x11-libs/qscintilla )
73 + ssl? ( dev-libs/openssl:0= )"
74 +
75 +DEPEND="${RDEPEND}
76 + distorm? ( dev-vcs/git )"
77 +
78 +src_configure() {
79 +
80 + local mycmakeargs=(
81 + -DBASIC=yes
82 + -DWITH_DISTORM=$(usex distorm)
83 + -DWITH_OPENSSL=$(usex ssl)
84 + -DWITH_SCINTILLA=$(usex qscintilla)
85 + )
86 +
87 + # distorm is statically linked, due to insufficiencies
88 + # in the current distorm64 package
89 +
90 + if use distorm; then
91 + mycmakeargs+=(-DWITH_DISTORM_LINK_STATICALLY=ON)
92 + fi
93 +
94 + if use python; then
95 + local targets=( ${PYTHON_TARGETS} )
96 + for target in ${targets[@]}; do
97 + if python_is_python3 ${target}; then
98 + python_export ${target} PYTHON PYTHON_LIBPATH PYTHON_INCLUDEDIR
99 + mycmakeargs+=(-DWITH_PYTHON3=ON
100 + -DPYTHON3_INCLUDE_DIRS=${PYTHON_INCLUDEDIR}
101 + -DPYTHON3_LIBRARIES=${PYTHON_LIBPATH}
102 + )
103 + break
104 + fi
105 + done
106 + for target in ${targets[@]}; do
107 + if ! python_is_python3 ${target}; then
108 + python_export ${target} PYTHON PYTHON_LIBPATH PYTHON_INCLUDEDIR
109 + mycmakeargs+=(-DWITH_PYTHON27=ON
110 + -DPYTHON27_INCLUDE_DIRS=${PYTHON_INCLUDEDIR}
111 + -DPYTHON27_LIBRARIES=${PYTHON_LIBPATH}
112 + )
113 + break
114 + fi
115 + done
116 + fi
117 +
118 + cmake-utils_src_configure
119 +}