summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-06-08 12:41:57 +0000
committerMike Frysinger <vapier@gentoo.org>2004-06-08 12:41:57 +0000
commit262e6731d9a94b26ca7c402810b969240d5ad09b (patch)
tree45becd14f6733aa964155ef1a28f3aaba136c190 /sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild
parentAdded to ~ppc (diff)
downloadgentoo-2-262e6731d9a94b26ca7c402810b969240d5ad09b.tar.gz
gentoo-2-262e6731d9a94b26ca7c402810b969240d5ad09b.tar.bz2
gentoo-2-262e6731d9a94b26ca7c402810b969240d5ad09b.zip
move from sys-apps
Diffstat (limited to 'sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild')
-rw-r--r--sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild b/sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild
new file mode 100644
index 000000000000..cfcfb54b4941
--- /dev/null
+++ b/sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/mac-fdisk-0.1-r2.ebuild,v 1.1 2004/06/08 12:39:29 vapier Exp $
+
+inherit eutils
+
+DEBRV=10
+DESCRIPTION="Mac/PowerMac disk partitinoing utility"
+HOMEPAGE="ftp://ftp.mklinux.apple.com/pub/Other_Tools/"
+SRC_URI="http://http.us.debian.org/debian/pool/main/m/mac-fdisk/${PN}_${PV}.orig.tar.gz
+ http://http.us.debian.org/debian/pool/main/m/mac-fdisk/${PN}_${PV}-${DEBRV}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~ppc ~ppc64"
+IUSE=""
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack mac-fdisk_${PV}.orig.tar.gz
+ mv mac-fdisk-${PV}.orig ${P}
+ cd ${S}
+ cat ${DISTDIR}/mac-fdisk_${PV}-${DEBRV}.diff.gz | gzip -dc | patch -p1 || die
+
+ # Hard code 2.4 headers in mac-fdisk itself - if no maintainer is found, macfdisk should
+ # be deprecated in favor or parted
+
+ use ppc && epatch ${FILESDIR}/mac-fdisk-ppc.patch
+ use ppc64 && epatch ${FILESDIR}/mac-fdisk-ppc64.patch
+
+ # this can be applied on ppc32 too:
+ use ppc64 && epatch ${FILESDIR}/mac-fdisk-ppc64-1.patch
+
+ cd ${WORKDIR}
+ chown -R 0:0 *
+ chmod -R a+r-w+X,u+w *
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ mv pdisk.8 pdisk.8.in
+ ln mac-fdisk.8.in mac-fdisk.8 || die
+ ln pmac-fdisk.8.in pmac-fdisk.8 || die
+ ln pdisk mac-fdisk || die
+ ln fdisk pmac-fdisk || die
+
+ into /
+ dosbin mac-fdisk pmac-fdisk || die
+
+ into /usr
+ doman mac-fdisk.8 pmac-fdisk.8
+ dodoc README HISTORY
+}