diff options
author | Thomas Bracht Laumann Jespersen <t@laumann.xyz> | 2022-03-02 22:46:44 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-09 14:47:45 +0000 |
commit | d8c28af972c4fa3cb6a6df5a69e6a21d0ae92c88 (patch) | |
tree | f7b345217da2b455f97c3ab946cff4d89b125fed /app-misc/fdutils/fdutils-5.6_p2.ebuild | |
parent | dev-cpp/libgnomecanvasmm: update EAPI 5 -> 8 (diff) | |
download | gentoo-d8c28af972c4fa3cb6a6df5a69e6a21d0ae92c88.tar.gz gentoo-d8c28af972c4fa3cb6a6df5a69e6a21d0ae92c88.tar.bz2 gentoo-d8c28af972c4fa3cb6a6df5a69e6a21d0ae92c88.zip |
app-misc/fdutils: New version (5.6_p2)
* Bumps to EAPI=8
* Most patching from previous version is no longer necessary (except
for one)
* Keeps all the Debian patches minus one
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Closes: https://bugs.gentoo.org/826430
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Closes: https://github.com/gentoo/gentoo/pull/24393
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/fdutils/fdutils-5.6_p2.ebuild')
-rw-r--r-- | app-misc/fdutils/fdutils-5.6_p2.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-misc/fdutils/fdutils-5.6_p2.ebuild b/app-misc/fdutils/fdutils-5.6_p2.ebuild new file mode 100644 index 000000000000..4f40a982f956 --- /dev/null +++ b/app-misc/fdutils/fdutils-5.6_p2.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P=${PN}_5.6 + +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" +IUSE="doc" + +RDEPEND=">=sys-fs/mtools-4" +DEPEND="${RDEPEND} + virtual/os-headers +" +BDEPEND=" + sys-apps/texinfo + 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 + ) + default +} + +src_configure() { + 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 +} |