# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="HFS and HFS+ utils ported from OSX, supplies mkfs and fsck" HOMEPAGE="http://opendarwin.org" SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/diskdev_cmds-${PV}.tar.gz http://dev.gentoo.org/~josejx/${P}.patch.gz" LICENSE="APSL-2" SLOT="0" KEYWORDS="~ppc" IUSE="" DEPEND="" S=${WORKDIR}/diskdev_cmds-${PV} src_unpack() { unpack ${A} || die "Unpack failed!" cd ${S} epatch ${WORKDIR}/${P}.patch } src_compile() { emake -f Makefile.lnx || die "emake failed" } src_install() { cd ${S} exeinto /sbin doexe fsck_hfs.tproj/fsck_hfs doexe newfs_hfs.tproj/newfs_hfs dosym /sbin/newfs_hfs /sbin/mkfs.hfs dosym /sbin/newfs_hfs /sbin/mkfs.hfsplus dosym /sbin/fsck_hfs /sbin/fsck.hfs dosym /sbin/fsck_hfs /sbin/fsck.hfsplus }