diskdev_cmds-332.14_p1.ebuild 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils
  4. MY_PV=${PV%_p*}
  5. DESCRIPTION="HFS and HFS+ utils ported from OSX, supplies mkfs and fsck"
  6. HOMEPAGE="http://opendarwin.org"
  7. SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/diskdev_cmds-${MY_PV}.tar.gz
  8. mirror://gentoo/diskdev_cmds-${PV}.patch.bz2"
  9. LICENSE="APSL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~arm ppc ~ppc64 x86"
  12. IUSE=""
  13. DEPEND="dev-libs/openssl"
  14. RDEPEND="${DEPEND}"
  15. S="${WORKDIR}/${PN}-${MY_PV}"
  16. src_unpack() {
  17. unpack ${A}
  18. cd "${S}"
  19. epatch "${WORKDIR}"/diskdev_cmds-${PV}.patch
  20. epatch "${FILESDIR}"/diskdev_cmds-respect-cflags.patch
  21. }
  22. src_compile() {
  23. emake -f Makefile.lnx || die "emake failed"
  24. }
  25. src_install() {
  26. into /
  27. dosbin fsck_hfs.tproj/fsck_hfs || die "dosbin fsck failed"
  28. dosbin newfs_hfs.tproj/newfs_hfs || die "dosbin newfs failed"
  29. dosym /sbin/newfs_hfs /sbin/mkfs.hfs || die "dosym mkfs.hfs failed"
  30. dosym /sbin/newfs_hfs /sbin/mkfs.hfsplus || die "dosym mkfs.hfsplus failed"
  31. dosym /sbin/fsck_hfs /sbin/fsck.hfs || die "dosym fsck.hfs failed"
  32. dosym /sbin/fsck_hfs /sbin/fsck.hfsplus || die "dosym fsck.hfsplus failed"
  33. doman newfs_hfs.tproj/newfs_hfs.8 || die "doman newfs_hfs.8 failed"
  34. newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfs.8 || die "doman mkfs.hfs.8 failed"
  35. newman newfs_hfs.tproj/newfs_hfs.8 mkfs.hfsplus.8 || die "doman mkfs.hfsplus.8 failed"
  36. doman fsck_hfs.tproj/fsck_hfs.8 || die "doman fsck_hfs.8 failed"
  37. newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfs.8 || die "doman fsck.hfs.8 failed"
  38. newman fsck_hfs.tproj/fsck_hfs.8 fsck.hfsplus.8 || die "doman fsck.hfsplus.8 failed"
  39. }