udftools-1.0.0b-r9.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. inherit eutils flag-o-matic
  5. MY_P=${P}3
  6. DESCRIPTION="Ben Fennema's tools for packet writing and the UDF filesystem"
  7. HOMEPAGE="https://sourceforge.net/projects/linux-udf/"
  8. SRC_URI="mirror://sourceforge/linux-udf/${MY_P}.tar.gz
  9. http://w1.894.telia.com/~u89404340/patches/packet/${MY_P}.patch.bz2"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="amd64 ~ppc sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
  13. IUSE=""
  14. RDEPEND="sys-libs/readline"
  15. DEPEND="${RDEPEND}"
  16. S=${WORKDIR}/${MY_P}
  17. src_prepare() {
  18. # For new kernel packet writing driver
  19. epatch "${WORKDIR}"/${MY_P}.patch
  20. epatch "${FILESDIR}"/cdrwtool-linux2.6-fix-v2.patch
  21. epatch "${FILESDIR}"/${P}-gcc4.patch #112122
  22. epatch "${FILESDIR}"/${P}-bigendian.patch #120245
  23. epatch "${FILESDIR}"/${P}-openflags.patch #232100
  24. epatch "${FILESDIR}"/${P}-limits_h.patch
  25. # Force older C standard as the code relies on static inline behavior. #548324
  26. append-flags -std=gnu89
  27. }
  28. src_install() {
  29. emake DESTDIR="${D}" install || die
  30. dodoc ChangeLog
  31. newinitd "${FILESDIR}"/pktcdvd.init pktcdvd
  32. dosym /usr/bin/udffsck /usr/sbin/fsck.udf
  33. }