scrot-0.8_p13.ebuild 909 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. MY_PV=${PV/_p/-}
  5. inherit bash-completion-r1 eutils
  6. DESCRIPTION="Screen capture utility using imlib2 library"
  7. HOMEPAGE="http://scrot.sourcearchive.com/"
  8. SRC_URI="http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_0.8.orig.tar.gz
  9. http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_${MY_PV}.debian.tar.gz"
  10. LICENSE="feh LGPL-2+"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 arm hppa ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
  13. IUSE=""
  14. RDEPEND=">=media-libs/imlib2-1.0.3
  15. >=media-libs/giblib-1.2.3"
  16. DEPEND="${RDEPEND}"
  17. S=${WORKDIR}/${PN}-0.8
  18. src_prepare() {
  19. local d=${WORKDIR}/debian/patches
  20. EPATCH_SOURCE=${d} epatch $(<"${d}"/series)
  21. }
  22. src_install() {
  23. emake DESTDIR="${D}" install
  24. rm -r "${D}"/usr/doc
  25. dodoc AUTHORS ChangeLog
  26. newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
  27. }