blob: 8b30b354dd9823d6193a461af013f07b889e3517 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_P=${PN}_5.6
inherit autotools toolchain-funcs
DESCRIPTION="Utilities for configuring and debugging the Linux floppy driver"
HOMEPAGE="https://fdutils.linux.lu"
SRC_URI="
mirror://debian/pool/main/f/${PN}/${MY_P}.orig.tar.gz
mirror://debian/pool/main/f/${PN}/${MY_P}-2.debian.tar.xz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc"
RDEPEND=">=sys-fs/mtools-4"
DEPEND="${RDEPEND}
virtual/os-headers
"
BDEPEND="
sys-apps/texinfo
dev-build/autoconf-archive
doc? ( virtual/texi2dvi )
"
S="${WORKDIR}/${PN}-5.6"
src_prepare() {
local debian=($(< "${WORKDIR}"/debian/patches/series)) || die
debian=(${debian[@]/fdmount-compilation_linux_2.6.patch/}) # exclude this patch
PATCHES+=("${debian[@]/#/${WORKDIR}/debian/patches/}")
PATCHES+=(
"${FILESDIR}"/fdutils-5.5.20060227-r1-parallel.patch # bug 315577
"${FILESDIR}"/fdutils-5.6_p2-parallel.patch
"${FILESDIR}"/fdutils-5.6_p2-docs-build.patch
"${FILESDIR}"/fdutils-5.6_p2-variable-ar.patch
)
default
eautoreconf
touch ar-lib || die # bug 834874
}
src_configure() {
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
econf --enable-fdmount-floppy-only
}
src_compile() {
emake
use doc && emake doc
}
src_install() {
dodir /etc
emake DESTDIR="${D}" install
emake -C doc DESTDIR="${D}" install-man
use doc && emake DESTDIR="${D}" install-doc
# The copy in sys-apps/man-pages is more recent
rm -f "${ED}"/usr/share/man/man4/fd.4 || die
# Rename to match binary
mv "${ED}"/usr/share/man/man1/{makefloppies,MAKEFLOPPIES}.1 || die
}
|