gtkwave-3.3.73.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit eutils fdo-mime toolchain-funcs
  5. DESCRIPTION="A wave viewer for LXT, LXT2, VZT, GHW and standard Verilog VCD/EVCD files"
  6. HOMEPAGE="http://gtkwave.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. IUSE="doc examples fasttree fatlines judy lzma packed tcl"
  9. LICENSE="GPL-2 MIT"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
  12. RDEPEND="dev-libs/glib:2
  13. x11-libs/gtk+:2
  14. x11-libs/pango
  15. sys-libs/zlib
  16. judy? ( dev-libs/judy )
  17. tcl? ( dev-lang/tcl:0 dev-lang/tk:0 )
  18. lzma? ( app-arch/xz-utils )"
  19. DEPEND="${RDEPEND}
  20. virtual/pkgconfig
  21. dev-util/gperf"
  22. AT_M4DIR="${S}"
  23. src_prepare(){
  24. # do not install doc and examples by default
  25. sed -i -e 's/doc examples//' Makefile.in || die
  26. }
  27. src_configure(){
  28. econf --disable-local-libz \
  29. --disable-local-libbz2 \
  30. --disable-mime-update \
  31. --enable-largefile \
  32. $(use_enable packed struct-pack) \
  33. $(use_enable fatlines) \
  34. $(use_enable tcl) \
  35. $(use_enable lzma xz) \
  36. $(use_enable fasttree) \
  37. $(use_enable judy)
  38. }
  39. src_compile() {
  40. emake AR=$(tc-getAR)
  41. }
  42. src_install() {
  43. emake DESTDIR="${D}" install
  44. dodoc ChangeLog README
  45. if use doc ; then
  46. insinto /usr/share/doc/${PF}
  47. doins "doc/${PN}.odt"
  48. fi
  49. if use examples ; then
  50. insinto /usr/share/doc/${PF}
  51. doins -r examples
  52. fi
  53. }
  54. pkg_postinst() {
  55. fdo-mime_desktop_database_update
  56. fdo-mime_mime_database_update
  57. }
  58. pkg_postrm() {
  59. fdo-mime_desktop_database_update
  60. fdo-mime_mime_database_update
  61. }