summaryrefslogtreecommitdiff
path: root/sys-fs/mac-fdisk/mac-fdisk-0.1_p16.ebuild
blob: 210dfe5fa929041531b43d0f0ba504472ba647ce (plain) (blame)
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
# Copyright 2015-2016 Adélie Linux Team
# Distributed under the terms of the NCSA License

EAPI=5
inherit eutils

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

EPATCH_SOURCE="(
    "${WORKDIR}"/${PN}_${PV/_p*}-${PV/*_p}.diff
	"${FILESDIR}"/${PN}-largerthan2gb.patch
	"${FILESDIR}"/${PN}-0.1-headers.patch
	"${FILESDIR}"/${PN}-0.1_p16-ppc64.patch
	"${FILESDIR}"/${PN}-amd64.patch
	"${FILESDIR}"/${PN}-large-disk-support.patch
	"${FILESDIR}"/${PN}-non-glibc-support.patch
	)"

src_prepare() {
	epatch
	epatch_user
}

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
}