dog-1.7-r4.ebuild 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2011 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="3"
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Dog is better than cat"
  6. # the best HOMEPAGE we have.
  7. HOMEPAGE="https://packages.gentoo.org/package/sys-apps/dog"
  8. SRC_URI="mirror://gentoo/${P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="alpha amd64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris"
  12. IUSE=""
  13. src_prepare() {
  14. epatch \
  15. "${FILESDIR}"/${P}-check-ctime.diff \
  16. "${FILESDIR}"/${PV}-manpage-touchup.patch \
  17. "${FILESDIR}"/${P}-64bit-goodness.patch \
  18. "${FILESDIR}"/${P}-strfry.patch
  19. if [[ "${CHOST}" == *-solaris* ]]
  20. then
  21. sed -i '/gcc.*-o dog/s/$/ -lsocket/' \
  22. Makefile || die "sed Makefile failed"
  23. fi
  24. sed -i \
  25. -e 's,^CFLAGS,#CFLAGS,' \
  26. -e "s,gcc,$(tc-getCC)," \
  27. -e 's:-o dog:$(LDFLAGS) -o dog:g' \
  28. Makefile || die "sed Makefile failed"
  29. }
  30. src_install() {
  31. dobin dog || die
  32. doman dog.1 || die
  33. dodoc README AUTHORS || die
  34. }