mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 08:29:37 +00:00
Closes: https://bugs.gentoo.org/607752 Closes: https://bugs.gentoo.org/829708 Closes: https://bugs.gentoo.org/898558 Closes: https://bugs.gentoo.org/944421 Signed-off-by: David Seifert <soap@gentoo.org>
51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit flag-o-matic toolchain-funcs
|
|
|
|
DESCRIPTION="A tapedrive tool for speeding up reading from and writing to tape"
|
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
|
|
|
DEBIAN_PR=12.1
|
|
DEBIAN_P="${PN}_${PV}"
|
|
DEBIAN_PATCH="${PN}_${PV}-${DEBIAN_PR}.debian.tar.xz"
|
|
|
|
# We do NOT rename the Debian .orig.tar.gz file at this point
|
|
# Because Gentoo shipped a very slightly DIFFERENT buffer-1.19.tgz than Debian!
|
|
# Enough to make the debian patchset not apply directly. Debian patchset
|
|
# contains the same changes plus more fixes.
|
|
SRC_URI="
|
|
mirror://debian/pool/main/b/${PN}/${DEBIAN_P}.orig.tar.gz
|
|
mirror://debian/pool/main/b/${PN}/${DEBIAN_PATCH}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 arm ~arm64 ppc ~sparc x86"
|
|
|
|
src_prepare() {
|
|
local f
|
|
for f in $(<"${WORKDIR}"/debian/patches/series) ; do
|
|
p="${WORKDIR}"/debian/patches/${f}.patch
|
|
ln -sf "${f}" "${p}" || die
|
|
einfo ${p}
|
|
eapply -p1 "${p}" || die
|
|
done
|
|
eapply "${FILESDIR}"/${P}-posix-semun.patch
|
|
|
|
cd "${S}" || die
|
|
emake clean
|
|
eapply_user
|
|
}
|
|
|
|
src_compile() {
|
|
append-lfs-flags
|
|
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin buffer
|
|
dodoc README
|
|
newman buffer.man buffer.1
|
|
}
|