udftools-1.0.0b-r10.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  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. epatch "${FILESDIR}"/${P}3-extsize.patch
  26. epatch "${FILESDIR}"/${P}3-man-missing-options.patch
  27. epatch "${FILESDIR}"/${P}3-mkudffs-bigendian.patch
  28. epatch "${FILESDIR}"/${P}3-staticanal.patch
  29. epatch "${FILESDIR}"/${P}3-warningfixes.patch
  30. epatch "${FILESDIR}"/${P}3-warningfixes2.patch
  31. epatch "${FILESDIR}"/${P}3-wrudf_help.patch
  32. # Force older C standard as the code relies on static inline behavior. #548324
  33. append-flags -std=gnu89
  34. }
  35. src_install() {
  36. default
  37. newinitd "${FILESDIR}"/pktcdvd.init pktcdvd
  38. dosym /usr/bin/udffsck /usr/sbin/fsck.udf
  39. }