You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.5 KiB
68 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
9 years ago
|
|
||
4 years ago
|
# ebuild generated by hackport 0.6.7.9999
|
||
|
#hackport: flags: -hgettext
|
||
9 years ago
|
|
||
4 years ago
|
CABAL_FEATURES="test-suite"
|
||
|
inherit haskell-cabal
|
||
9 years ago
|
|
||
|
DESCRIPTION="Draw sequence diagrams of D-Bus traffic"
|
||
4 years ago
|
HOMEPAGE="https://gitlab.freedesktop.org/bustle/bustle#readme"
|
||
5 years ago
|
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
|
||
9 years ago
|
|
||
4 years ago
|
LICENSE="LGPL-2.1 GPL-2 GPL-3"
|
||
9 years ago
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
IUSE="interactivetests +threaded"
|
||
|
|
||
|
RDEPEND="dev-haskell/cairo:=
|
||
|
dev-haskell/gio:=
|
||
|
dev-haskell/glib:=
|
||
4 years ago
|
dev-haskell/gtk3:=
|
||
|
>=dev-haskell/mtl-2.2.1:=
|
||
9 years ago
|
dev-haskell/pango:=
|
||
|
dev-haskell/text:=
|
||
4 years ago
|
>=dev-lang/ghc-8.4.3:=
|
||
9 years ago
|
dev-libs/glib:2
|
||
4 years ago
|
net-libs/libpcap
|
||
9 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
4 years ago
|
>=dev-haskell/cabal-2.2.0.1
|
||
9 years ago
|
virtual/pkgconfig
|
||
|
test? ( dev-haskell/hunit
|
||
|
dev-haskell/quickcheck
|
||
|
dev-haskell/test-framework
|
||
|
dev-haskell/test-framework-hunit )
|
||
|
"
|
||
|
|
||
|
src_configure() {
|
||
|
haskell-cabal_src_configure \
|
||
4 years ago
|
--flag=-hgettext \
|
||
9 years ago
|
$(cabal_flag interactivetests interactivetests) \
|
||
|
$(cabal_flag threaded threaded)
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
# compile haskell part
|
||
4 years ago
|
haskell-cabal_src_compile || die "could not build haskell parts"
|
||
9 years ago
|
|
||
|
# compile C part
|
||
|
emake \
|
||
|
"CC=$(tc-getCC)" \
|
||
|
"CFLAGS=${CFLAGS}" \
|
||
|
"CPPFLAGS=${CPPFLAGS}" \
|
||
|
"LDFLAGS=${LDFLAGS}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
# install haskell part
|
||
4 years ago
|
haskell-cabal_src_install || die "could not install haskell parts"
|
||
9 years ago
|
|
||
|
dobin "${S}"/dist/build/bustle-pcap
|
||
|
doman bustle-pcap.1
|
||
4 years ago
|
dodoc README.md NEWS.md
|
||
9 years ago
|
}
|