summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Jäger <pascal.jaeger@leimstift.de>2022-11-02 15:30:31 +0100
committerSam James <sam@gentoo.org>2022-11-22 06:57:39 +0000
commitb821f8830d649f1f9fda4968551a676449d598e3 (patch)
treee5a2fbe65483bb3ffd210f199bae9ecf628d531c /app-misc/splitvt
parentapp-text/recode: drop 3.7.9, 3.7.11 (diff)
downloadgentoo-b821f8830d649f1f9fda4968551a676449d598e3.tar.gz
gentoo-b821f8830d649f1f9fda4968551a676449d598e3.tar.bz2
gentoo-b821f8830d649f1f9fda4968551a676449d598e3.zip
app-misc/splitvt: revbump, fix build with clang16, fix open bugs
- Wrote a patch with modern C function definitions to make this work with clang16 - sed in ebuild now uses | instead of : as delimiter - use ${ED} instead of ${D} now Closes: https://bugs.gentoo.org/871072 Closes: https://bugs.gentoo.org/879639 Closes: https://bugs.gentoo.org/710456 Closes: https://bugs.gentoo.org/836040 Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28105 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/splitvt')
-rw-r--r--app-misc/splitvt/Manifest1
-rw-r--r--app-misc/splitvt/splitvt-1.6.6_p7.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/splitvt/Manifest b/app-misc/splitvt/Manifest
index cef8a0a9afaf..194b54a88cc1 100644
--- a/app-misc/splitvt/Manifest
+++ b/app-misc/splitvt/Manifest
@@ -1,2 +1,3 @@
DIST splitvt-1.6.6.tar.gz 64797 BLAKE2B cc867fe7cf57b541f5d124bb3bbac111e0cd4a4ef835df7c8abfc7e73c1d172f0a75512e54245b395d815308b6bf94d79c8b896099a4af51e8947ddf177e88bc SHA512 a0a0ea2251489f14e2ba7af9bb1b9d309d6fa310f434090d97af2a0805c398731dec45a5cc15c2074af4d3f33b02c5bab019743530619755382af80ff86fa670
+DIST splitvt-1.6.6_p7-fix-build-for-clang16.patch.xz 10816 BLAKE2B 3223e9368361b380b756c2fc86e8454695f052dcfc4ab8a1459031ff4b6972e9ab42d4ab2bff64be0bfa6074b4301c80d23c0118269d41821b9c54ab4b27eacb SHA512 95325c1c16f3ab71efa531804b0a48676b22eb6b66af93c1b21d0109a1059fcc72b2bcf6ac5d1ce39c2d0473a6fa6a51cddb45d463337eb56a907528547c98f7
DIST splitvt_1.6.6-7.diff.gz 11073 BLAKE2B 595381265ecd1d7a654fbce4afde5f872e7ce35d3cd44936f78a3c714b7964586d7ec0ec17d986a0f2e6ff9c3e01cf3563b54185f2fa10bebc9ababd174d4879 SHA512 620f3f6e7f22284ef8054e371a87421beeb2ef355b7084748cbd1f7a3a128c9da11f291fdaf1d393010c0f7affce8d6e56a7ae0977d9831b9d3b98963c55c71f
diff --git a/app-misc/splitvt/splitvt-1.6.6_p7.ebuild b/app-misc/splitvt/splitvt-1.6.6_p7.ebuild
new file mode 100644
index 000000000000..5ee0835a6bd4
--- /dev/null
+++ b/app-misc/splitvt/splitvt-1.6.6_p7.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P="${PN}-$(ver_cut 1-3)"
+MY_DEB_P="${PN}_$(ver_cut 1-3)-$(ver_cut 5)"
+
+DESCRIPTION="Splitting terminals into two shells"
+HOMEPAGE="https://slouken.libsdl.org/projects/splitvt/"
+SRC_URI="
+ https://slouken.libsdl.org/projects/splitvt/${MY_P}.tar.gz
+ mirror://debian/pool/main/s/splitvt/${MY_DEB_P}.diff.gz
+ https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-fix-build-for-clang16.patch.xz
+"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+
+DEPEND="sys-libs/ncurses:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${WORKDIR}"/${MY_DEB_P}.diff
+ "${FILESDIR}"/1.6.6-ldflags.patch
+ "${WORKDIR}"/${P}-fix-build-for-clang16.patch
+)
+
+DOCS=( ANNOUNCE BLURB CHANGES NOTES README TODO )
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s|/usr/local/bin|${ED}/usr/bin|g" \
+ -e "s|/usr/local/man/|${ED}/usr/share/man/|g" config.c || die
+}
+
+src_configure() {
+ # upstream has their own homebrew configure script
+ ./configure || die "configure failed"
+ sed -i \
+ -e "s|-O2|${CFLAGS}|" \
+ -e "s|^CC = gcc|CC = $(tc-getCC)|" Makefile || die
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man1
+
+ default
+
+ fperms 755 /usr/bin/xsplitvt
+ doman splitvt.1
+}