Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bustle/
Date: Fri, 01 Jan 2021 11:48:28
Message-Id: 1609501644.33f31999cb4307a878dc6138fe5951f107be99d3.slyfox@gentoo
1 commit: 33f31999cb4307a878dc6138fe5951f107be99d3
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 11:47:24 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 11:47:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33f31999
7
8 dev-util/bustle: bump up to 0.8.0
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-util/bustle/Manifest | 1 +
14 dev-util/bustle/bustle-0.8.0.ebuild | 67 +++++++++++++++++++++++++++++++++++++
15 dev-util/bustle/metadata.xml | 5 ++-
16 3 files changed, 72 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-util/bustle/Manifest b/dev-util/bustle/Manifest
19 index 03f54b60f84..0af30f8d576 100644
20 --- a/dev-util/bustle/Manifest
21 +++ b/dev-util/bustle/Manifest
22 @@ -1 +1,2 @@
23 DIST bustle-0.5.4.tar.gz 122720 BLAKE2B b5a2315919644ab5c7712f9e9bde1bdea226b4e8898981f7150558bde648a5c7965be6ad8484c09727665292e5fe3f0cb545544dbb27f2a2553e513910289620 SHA512 56eaeef831fb5929d57a008ae71d8409048ce5d12eaada98830ef742baf3479264203465d77591cb338374096eac2dc2b68b44f075b2761f16df63fad54b91fd
24 +DIST bustle-0.8.0.tar.gz 101175 BLAKE2B 30359a51da16631eda8f74239de7955d5887e12e7e99853dd930b12b351a0dd56425487c339ddf297dae02b271019c11329130aa0caabc4bf0c87e21600b707b SHA512 92f4757c4ed9dd88bfa144a0626d7530b6a1f859a8069d8631a9990b6a523dbb59d573c6ba142614c371171ccf391a3e77d1e8ba0c2155ecf231f9e7aa735f72
25
26 diff --git a/dev-util/bustle/bustle-0.8.0.ebuild b/dev-util/bustle/bustle-0.8.0.ebuild
27 new file mode 100644
28 index 00000000000..cf60600336e
29 --- /dev/null
30 +++ b/dev-util/bustle/bustle-0.8.0.ebuild
31 @@ -0,0 +1,67 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +# ebuild generated by hackport 0.6.7.9999
38 +#hackport: flags: -hgettext
39 +
40 +CABAL_FEATURES="test-suite"
41 +inherit haskell-cabal
42 +
43 +DESCRIPTION="Draw sequence diagrams of D-Bus traffic"
44 +HOMEPAGE="https://gitlab.freedesktop.org/bustle/bustle#readme"
45 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
46 +
47 +LICENSE="LGPL-2.1 GPL-2 GPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="interactivetests +threaded"
51 +
52 +RDEPEND="dev-haskell/cairo:=
53 + dev-haskell/gio:=
54 + dev-haskell/glib:=
55 + dev-haskell/gtk3:=
56 + >=dev-haskell/mtl-2.2.1:=
57 + dev-haskell/pango:=
58 + dev-haskell/text:=
59 + >=dev-lang/ghc-8.4.3:=
60 + dev-libs/glib:2
61 + net-libs/libpcap
62 +"
63 +DEPEND="${RDEPEND}
64 + >=dev-haskell/cabal-2.2.0.1
65 + virtual/pkgconfig
66 + test? ( dev-haskell/hunit
67 + dev-haskell/quickcheck
68 + dev-haskell/test-framework
69 + dev-haskell/test-framework-hunit )
70 +"
71 +
72 +src_configure() {
73 + haskell-cabal_src_configure \
74 + --flag=-hgettext \
75 + $(cabal_flag interactivetests interactivetests) \
76 + $(cabal_flag threaded threaded)
77 +}
78 +
79 +src_compile() {
80 + # compile haskell part
81 + haskell-cabal_src_compile || die "could not build haskell parts"
82 +
83 + # compile C part
84 + emake \
85 + "CC=$(tc-getCC)" \
86 + "CFLAGS=${CFLAGS}" \
87 + "CPPFLAGS=${CPPFLAGS}" \
88 + "LDFLAGS=${LDFLAGS}"
89 +}
90 +
91 +src_install() {
92 + # install haskell part
93 + haskell-cabal_src_install || die "could not install haskell parts"
94 +
95 + dobin "${S}"/dist/build/bustle-pcap
96 + doman bustle-pcap.1
97 + dodoc README.md NEWS.md
98 +}
99
100 diff --git a/dev-util/bustle/metadata.xml b/dev-util/bustle/metadata.xml
101 index 00f0a89d739..0941fe5a2e7 100644
102 --- a/dev-util/bustle/metadata.xml
103 +++ b/dev-util/bustle/metadata.xml
104 @@ -7,6 +7,9 @@
105 </maintainer>
106 <use>
107 <flag name="interactivetests">Build interactive test programs</flag>
108 - <flag name="threaded">Build with support for multithreaded execution.</flag>
109 + <flag name="threaded">Build with the multi-threaded runtime</flag>
110 </use>
111 + <longdescription>
112 + Bustle records and draws sequence diagrams of D-Bus activity, showing signal emissions, method calls and their corresponding returns, with timestamps for each individual event and the duration of each method call. This can help you check for unwanted D-Bus traffic, and pinpoint why your D-Bus-based application isn&#39;t performing as well as you like. It also provides statistics like signal frequencies and average method call times.
113 + </longdescription>
114 </pkgmetadata>