drawtiming-0.7.1.ebuild 715 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=3
  4. inherit eutils
  5. DESCRIPTION="Command line tool for drawing timing diagrams"
  6. HOMEPAGE="http://drawtiming.sourceforge.net/index.html"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE="examples"
  12. DEPEND="media-gfx/imagemagick[cxx]"
  13. RDEPEND="${DEPEND}"
  14. src_prepare() {
  15. epatch "${FILESDIR}"/${P}-gcc43.patch \
  16. "${FILESDIR}"/${P}-ldflags.patch
  17. }
  18. src_install() {
  19. emake DESTDIR="${D}" install || die
  20. dodoc AUTHORS ChangeLog README THANKS || die
  21. if use examples; then
  22. insinto "/usr/share/doc/${PF}/examples"
  23. doins samples/*.txt || die
  24. fi
  25. }