blob: 1666352eaf079d10246f5848af9f9577b1a7d541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Mac/PowerMac disk partitioning utility"
HOMEPAGE="ftp://ftp.mklinux.apple.com/pub/Other_Tools/"
SRC_URI="
mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV/_p*}.orig.tar.gz
mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV/_p*}-${PV/*_p}.diff.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
S=${WORKDIR}/${P/_p*}.orig
src_prepare() {
epatch "${WORKDIR}"/${PN}_${PV/_p*}-${PV/*_p}.diff
epatch "${FILESDIR}"/largerthan2gb.patch
epatch "${FILESDIR}"/${PN}-0.1-headers.patch
### Patch for bug #142737
epatch "${FILESDIR}"/${PN}-0.1_p16-ppc64.patch
### Patch for building on amd64
epatch "${FILESDIR}"/${PN}-amd64.patch
### Patch for large (>550GB disks)
### Note that >=2TB disks may not work due to limitations of the Mac
### Partition Table structure, this needs to be investigated
epatch "${FILESDIR}"/big_pt.patch
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
into /
newsbin pdisk mac-fdisk
newsbin fdisk pmac-fdisk
into /usr
newman mac-fdisk.8.in mac-fdisk.8
newman pmac-fdisk.8.in pmac-fdisk.8
dodoc README HISTORY
}
|