diff options
Diffstat (limited to 'app-misc/splitvt')
-rw-r--r-- | app-misc/splitvt/Manifest | 5 | ||||
-rw-r--r-- | app-misc/splitvt/files/1.6.6-ldflags.patch | 23 | ||||
-rw-r--r-- | app-misc/splitvt/metadata.xml | 8 | ||||
-rw-r--r-- | app-misc/splitvt/splitvt-1.6.6-r3.ebuild | 51 |
4 files changed, 87 insertions, 0 deletions
diff --git a/app-misc/splitvt/Manifest b/app-misc/splitvt/Manifest new file mode 100644 index 000000000000..a237bc90a1ef --- /dev/null +++ b/app-misc/splitvt/Manifest @@ -0,0 +1,5 @@ +AUX 1.6.6-ldflags.patch 1048 BLAKE2B 0e67a86bf33ffb3513263f58ec8ad9d7764af054eef60c5c5d1169cbf0d6e142db79b81c9e1faf4f374866ddc0f7201846c3eba4a99ef316eac5c5371f86d106 SHA512 032092bdd9c99917a7a446f4dc66f3fd4d91329eee9992d3026525c969d6a01420eb9131bf51bb92afe79bf2e194ad9ac039e16ac168686b7e534591cfe90307 +DIST splitvt-1.6.6.tar.gz 64797 BLAKE2B cc867fe7cf57b541f5d124bb3bbac111e0cd4a4ef835df7c8abfc7e73c1d172f0a75512e54245b395d815308b6bf94d79c8b896099a4af51e8947ddf177e88bc SHA512 a0a0ea2251489f14e2ba7af9bb1b9d309d6fa310f434090d97af2a0805c398731dec45a5cc15c2074af4d3f33b02c5bab019743530619755382af80ff86fa670 +DIST splitvt_1.6.6-7.diff.gz 11073 BLAKE2B 595381265ecd1d7a654fbce4afde5f872e7ce35d3cd44936f78a3c714b7964586d7ec0ec17d986a0f2e6ff9c3e01cf3563b54185f2fa10bebc9ababd174d4879 SHA512 620f3f6e7f22284ef8054e371a87421beeb2ef355b7084748cbd1f7a3a128c9da11f291fdaf1d393010c0f7affce8d6e56a7ae0977d9831b9d3b98963c55c71f +EBUILD splitvt-1.6.6-r3.ebuild 1112 BLAKE2B 085ed6bf9488adf9350d7f0c39eee39104c97380d88fc334c543aed1687d70e1d2a6689f8c518b375a0b77cf7db833fe897e80b70650e177cdcbe623ce46e555 SHA512 8ba3c0d8b963977b0aa70d37540223f2a85bdada5181b438970f87cc422bdb1c7357611c07768cb0e815e0db40115de05b7d5b0ace6e9cb73a89cae4802c1e8d +MISC metadata.xml 271 BLAKE2B 46146f4bf13e9f4d33435225ec1012dd9bb89b20812963dc50368cab2a60a3c542052cb72f8963cc72074b2c13a5b054c77152de1d108027752601a349bc4ef8 SHA512 3e98f5382cf789992bdfc0f32e6e36eba31944be654c03f2ed9bd00baf56c8b768c256c4f8778d5775d6df38da4afcf8e32b6e6495a1ecfc8e7982c7c8943b1b diff --git a/app-misc/splitvt/files/1.6.6-ldflags.patch b/app-misc/splitvt/files/1.6.6-ldflags.patch new file mode 100644 index 000000000000..5a545ad98ee8 --- /dev/null +++ b/app-misc/splitvt/files/1.6.6-ldflags.patch @@ -0,0 +1,23 @@ +diff --git a/config.c b/config.c +index 6e8b090..2f3c8dc 100644 +--- a/config.c ++++ b/config.c +@@ -229,15 +229,15 @@ char *argv[]; + } + fprintf(makefile, + "PTYOPTS = -DPTYCHAR=$(PTYCHAR) -DHEXDIGIT=$(HEXDIGIT)\n"); +- sprintf(line, "\nCFLAGS = -Wall %s $(PTYOPTS)\nLIBS = %s\n", cflags, ldflags); ++ sprintf(line, "\nCFLAGS = %s $(PTYOPTS)\nLIBS = %s\n", cflags, ldflags); + fprintf(makefile, "%s", line); + fprintf(makefile, "OBJS = splitvt.o misc.o utmp.o vt100.o videomem.o terminal.o vttest.o vtmouse.o \\\n"); + fprintf(makefile, " parserc.o lock.o cut-paste.o\n\n"); + fprintf(makefile, "splitvt: $(OBJS)\n"); + #if defined(linux) && !defined(DEBUG) +- fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n"); ++ fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n"); + #else +- fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n"); ++ fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n"); + #endif + fprintf(makefile, "\nclean: \n\trm -f *.o core \n"); + fprintf(makefile, "\ndistclean: clean\n\trm -f splitvt Makefile\n"); diff --git a/app-misc/splitvt/metadata.xml b/app-misc/splitvt/metadata.xml new file mode 100644 index 000000000000..3e927f8d7480 --- /dev/null +++ b/app-misc/splitvt/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> +</pkgmetadata> diff --git a/app-misc/splitvt/splitvt-1.6.6-r3.ebuild b/app-misc/splitvt/splitvt-1.6.6-r3.ebuild new file mode 100644 index 000000000000..989507ca2951 --- /dev/null +++ b/app-misc/splitvt/splitvt-1.6.6-r3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +MY_P="${P/-/_}" +DEB_PL="7" + +DESCRIPTION="Splitting terminals into two shells" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI=" + https://slouken.libsdl.org/projects/splitvt/${P}.tar.gz + mirror://debian/pool/main/s/splitvt/${MY_P}-${DEB_PL}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ia64 ppc sparc x86" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +PATCHES=( + "${WORKDIR}"/${MY_P}-${DEB_PL}.diff + "${FILESDIR}"/${PV}-ldflags.patch +) + +DOCS=( ANNOUNCE BLURB CHANGES NOTES README TODO ) + +src_prepare() { + default + sed -i \ + -e "s:/usr/local/bin:${D}/usr/bin:g" \ + -e "s:/usr/local/man/:${D}/usr/share/man/:g" config.c || die +} + +src_configure() { + # upstream has their own weirdo 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 +} |