dvd+rw-tools-7.1-r3.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit toolchain-funcs
  5. DESCRIPTION="A set of tools for DVD+RW/-RW drives"
  6. HOMEPAGE="http://fy.chalmers.se/~appro/linux/DVD+RW/"
  7. SRC_URI="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
  11. IUSE=""
  12. RDEPEND="virtual/cdrtools"
  13. DEPEND="${RDEPEND}
  14. sys-devel/m4"
  15. PATCHES=(
  16. "${FILESDIR}"/${PN}-7.0-sysmacros.patch
  17. "${FILESDIR}"/${PN}-7.0-wctomb-r1.patch
  18. "${FILESDIR}"/${PN}-7.0-glibc2.6.90.patch
  19. "${FILESDIR}"/${PN}-7.0-dvddl-r1.patch
  20. "${FILESDIR}"/${PN}-7.0-wexit.patch
  21. "${FILESDIR}"/${PN}-7.0-reload.patch
  22. "${FILESDIR}"/${PN}-7.1-noevent.patch
  23. "${FILESDIR}"/${PN}-7.1-lastshort.patch
  24. "${FILESDIR}"/${PN}-7.1-bluray_srm+pow.patch
  25. "${FILESDIR}"/${PN}-7.1-bluray_pow_freespace.patch
  26. )
  27. src_prepare() {
  28. # Linux compiler flags only include -O2 and are incremental.
  29. sed -i '/FLAGS/s:-O2::' Makefile.m4 || die "failed to sed out FLAGS"
  30. default
  31. }
  32. src_compile() {
  33. emake SHELL="${EPREFIX}"/bin/bash CC="$(tc-getCC)" CXX="$(tc-getCXX)"
  34. }
  35. src_install() {
  36. emake SHELL="${EPREFIX}"/bin/bash prefix="${ED}/usr" install
  37. dodoc index.html
  38. }
  39. pkg_postinst() {
  40. if [[ -z "${REPLACING_VERSIONS}" ]] ; then
  41. elog 'If you receive an error, "unable to anonymously mmap...'
  42. elog 'Resource temporarily unavailable" when running growisofs,'
  43. elog 'then you may need to run "ulimit -l unlimited".'
  44. fi
  45. }