diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2021-07-22 23:26:00 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2021-07-22 23:26:09 -0700 |
commit | 628e8f509ccb3939bb76d95e64d85054cc585d0d (patch) | |
tree | ccbcd38c17c585a5e67db0e767e8a23de0a4d8ac /sys-block | |
parent | x11-misc/xscreensaver: fix compile & automagic build issues (diff) | |
download | gentoo-628e8f509ccb3939bb76d95e64d85054cc585d0d.tar.gz gentoo-628e8f509ccb3939bb76d95e64d85054cc585d0d.tar.bz2 gentoo-628e8f509ccb3939bb76d95e64d85054cc585d0d.zip |
sys-block/buffer: use debian orig and patches to cleanup issues
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/buffer/Manifest | 2 | ||||
-rw-r--r-- | sys-block/buffer/buffer-1.19-r4.ebuild | 48 |
2 files changed, 50 insertions, 0 deletions
diff --git a/sys-block/buffer/Manifest b/sys-block/buffer/Manifest index 0813846fea14..3cc607f3713e 100644 --- a/sys-block/buffer/Manifest +++ b/sys-block/buffer/Manifest @@ -1 +1,3 @@ DIST buffer-1.19.tgz 34960 BLAKE2B ce572e860e1315cf4d5b5f6de43906fbddada2d96c7d99e5930244ff2bc757327a867d7e67973f13616153c46d12bbdb093ed666b5e3fd73b8a0d4f8385b59b3 SHA512 9321f6e399cb3e58f3ffebb031b4d2b2fdda26149fb142515961a09b81b47c1bce01dd770da579bf49c3e71f8cee29c5dc2cc4063e67494e98a599f29076cc5c +DIST buffer_1.19-12.debian.tar.xz 9924 BLAKE2B 9f6591e00d596257956e3230cbdf8e58392aa3666d7900c30ea26d103f03d25071ff1033fa72e7be799021ed4c32d43e0e5ad69d1457a5ee22c33e3ae6f8c058 SHA512 3bc9d8c281268d38c1cc3ac40727d747c91b605fc3128e285d24663f97396292a0ec40ede9205702793b5d090c4e172b0df28321921b000aa0fdcb2660319367 +DIST buffer_1.19.orig.tar.gz 17753 BLAKE2B 68e2026f29cb00c48c8f3638d97adeeee0d194d7a6db96cbded251b3f97d36ba2ac32a60660df8aa1d2c7b79dd774b543d3a460a5d76ab6ca408606a013b5648 SHA512 b724d8c3e21f29890659c95a61db8667846e49614455411995160bc8d5af8a37af91465ad5d882e6bd7883dbd7886215a8c1d530f7392c98cdcead4f4377aa7f diff --git a/sys-block/buffer/buffer-1.19-r4.ebuild b/sys-block/buffer/buffer-1.19-r4.ebuild new file mode 100644 index 000000000000..b933ee375e56 --- /dev/null +++ b/sys-block/buffer/buffer-1.19-r4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="a tapedrive tool for speeding up reading from and writing to tape" +HOMEPAGE="http://www.microwerks.net/~hugo/" + +DEBIAN_PR=12 +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 ~ppc ~sparc ~x86" +IUSE="" + +src_prepare() { + 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 + cd "${S}" + 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 +} |