duhdraw-2.8.13-r1.ebuild 671 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit toolchain-funcs eutils
  5. DESCRIPTION="ASCII art editor"
  6. HOMEPAGE="http://www.cs.helsinki.fi/u/penberg/duhdraw"
  7. SRC_URI="http://www.cs.helsinki.fi/u/penberg/duhdraw/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
  11. DEPEND="sys-libs/ncurses"
  12. RDEPEND="${DEPEND}"
  13. src_prepare() {
  14. epatch "${FILESDIR}"/${P}-macos.patch
  15. epatch "${FILESDIR}"/${P}-prestrip.patch
  16. }
  17. src_compile() {
  18. emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}"
  19. }
  20. src_install() {
  21. dobin ansi ansitoc duhdraw
  22. dodoc CREDITS HISTORY TODO
  23. }