snarf-7.0-r3.ebuild 890 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils
  4. IUSE=""
  5. DESCRIPTION="Small and fast CLI resource grabber with support for http, gopher, finger, and ftp protocols"
  6. SRC_URI="http://www.xach.com/snarf/${P}.tar.gz"
  7. HOMEPAGE="http://www.xach.com/snarf/"
  8. KEYWORDS="alpha amd64 ppc sparc x86"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. DEPEND=""
  12. src_unpack() {
  13. unpack ${A}
  14. epatch "${FILESDIR}"/snarf-basename-patch.diff
  15. epatch "${FILESDIR}"/snarf-unlink-empty.diff
  16. epatch "${FILESDIR}"/snarf-fix-off-by-ones.diff
  17. }
  18. src_install() {
  19. dobin snarf
  20. doman snarf.1
  21. dodoc ChangeLog README TODO
  22. }
  23. pkg_postinst() {
  24. elog 'To use snarf with portage, try these settings in your make.conf'
  25. elog
  26. elog ' FETCHCOMMAND="/usr/bin/snarf -b \${URI} \${DISTDIR}/\${FILE}"'
  27. elog ' RESUMECOMMAND="/usr/bin/snarf -rb \${URI} \${DISTDIR}/\${FILE}"'
  28. }