1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit versionator toolchain-funcs eutils
8 MY_PV=$(get_version_component_range 1-3)
9 DEB_PV=$(get_version_component_range 4-5)
10 DESCRIPTION="create and edit the partition table of a disk partitioned in Atari format"
11 HOMEPAGE="https://packages.qa.debian.org/a/atari-fdisk.html"
12 SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${MY_PV}-${DEB_PV}.tar.gz"
16 # Note: The code assumes sizeof(long) == 4 everywhere. If you try to
17 # use this on 64bit systems (where sizeof(long) == 8), then misbehavior
18 # and memory corruption will ensue.
19 KEYWORDS="-* m68k x86"
22 S=${WORKDIR}/${PN}-${MY_PV}
25 epatch "${FILESDIR}"/${PN}-0.7.1.5.4-prompt-logic.patch
26 epatch "${FILESDIR}"/${PN}-0.7.1.5.4-gcc-5-inline.patch
32 LDFLAGS="${LDFLAGS}" \
38 dodoc NEWS README TODO debian/changelog
39 doman debian/atari-fdisk.8
42 if [[ $(tc-arch) == "m68k" ]] ; then
44 dosym fdisk /sbin/atari-fdisk
45 dosym atari-fdisk.8 /usr/share/man/man8/fdisk.8