tic98-1.01-r3.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils
  5. DESCRIPTION="compressor for black-and-white images, in particular scanned documents"
  6. HOMEPAGE="http://membled.com/work/mirror/tic98/"
  7. SRC_URI="http://membled.com/work/mirror/tic98/${P}.tar.bz2"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
  11. IUSE=""
  12. RESTRICT="test"
  13. S="${WORKDIR}/${PN}"
  14. src_prepare() {
  15. epatch "${FILESDIR}"/${P}-macos.patch
  16. epatch "${FILESDIR}"/${P}-gentoo.diff
  17. epatch "${FILESDIR}"/${P}-glibc-2.10.patch
  18. # respect CFLAGS and LDFLAGS
  19. sed -i -e "s:CFLAGS= -O -Wall -Wno-unused:CFLAGS=${CFLAGS}:" \
  20. -e "s:LIBS= -lm #-L/home/singlis/linux/lib -lccmalloc -ldl:LIBS= -lm ${LDFLAGS}:" \
  21. -e "s:CC= gcc -pipe :CC=$(tc-getCC):" \
  22. -e "s:CPP= gcc -pipe:CPP=$(tc-getCPP):" \
  23. Makefile || die
  24. }
  25. src_compile() {
  26. emake all
  27. emake all2
  28. }
  29. src_install() {
  30. dodir /usr/bin
  31. emake BIN="${ED}"usr/bin install
  32. # collision with media-gfx/netpbm, see bug #207534
  33. rm "${ED}"/usr/bin/pbmclean || die
  34. }