diff options
Diffstat (limited to 'dev-util/bustle/bustle-0.8.0.ebuild')
-rw-r--r-- | dev-util/bustle/bustle-0.8.0.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-util/bustle/bustle-0.8.0.ebuild b/dev-util/bustle/bustle-0.8.0.ebuild new file mode 100644 index 000000000000..cf60600336ea --- /dev/null +++ b/dev-util/bustle/bustle-0.8.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.7.9999 +#hackport: flags: -hgettext + +CABAL_FEATURES="test-suite" +inherit haskell-cabal + +DESCRIPTION="Draw sequence diagrams of D-Bus traffic" +HOMEPAGE="https://gitlab.freedesktop.org/bustle/bustle#readme" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="LGPL-2.1 GPL-2 GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="interactivetests +threaded" + +RDEPEND="dev-haskell/cairo:= + dev-haskell/gio:= + dev-haskell/glib:= + dev-haskell/gtk3:= + >=dev-haskell/mtl-2.2.1:= + dev-haskell/pango:= + dev-haskell/text:= + >=dev-lang/ghc-8.4.3:= + dev-libs/glib:2 + net-libs/libpcap +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.2.0.1 + virtual/pkgconfig + test? ( dev-haskell/hunit + dev-haskell/quickcheck + dev-haskell/test-framework + dev-haskell/test-framework-hunit ) +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=-hgettext \ + $(cabal_flag interactivetests interactivetests) \ + $(cabal_flag threaded threaded) +} + +src_compile() { + # compile haskell part + haskell-cabal_src_compile || die "could not build haskell parts" + + # compile C part + emake \ + "CC=$(tc-getCC)" \ + "CFLAGS=${CFLAGS}" \ + "CPPFLAGS=${CPPFLAGS}" \ + "LDFLAGS=${LDFLAGS}" +} + +src_install() { + # install haskell part + haskell-cabal_src_install || die "could not install haskell parts" + + dobin "${S}"/dist/build/bustle-pcap + doman bustle-pcap.1 + dodoc README.md NEWS.md +} |