farbfeld-9999.ebuild 864 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit git-r3 toolchain-funcs
  5. DESCRIPTION="farbfeld simple image format tools"
  6. HOMEPAGE="http://tools.suckless.org/farbfeld/"
  7. EGIT_REPO_URI="git://git.suckless.org/farbfeld"
  8. LICENSE="ISC"
  9. SLOT="0"
  10. KEYWORDS=""
  11. RDEPEND="
  12. media-libs/libjpeg-turbo
  13. media-libs/libpng:*
  14. media-libs/lcms:2
  15. "
  16. DEPEND="
  17. ${RDEPEND}
  18. "
  19. src_prepare() {
  20. sed config.mk \
  21. -e '/^CC/d' \
  22. -e 's|/usr/local|/usr|g' \
  23. -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
  24. -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
  25. -e 's|{|(|g;s|}|)|g' \
  26. -i || die
  27. sed Makefile \
  28. -e 's|{|(|g;s|}|)|g' \
  29. -e 's|^ @| |g' \
  30. -i || die
  31. }
  32. src_compile() {
  33. emake CC=$(tc-getCC)
  34. }
  35. src_install() {
  36. emake DESTDIR="${D}" install MANPREFIX=/usr/share/man
  37. }