summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/splitvt
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/splitvt')
-rw-r--r--app-misc/splitvt/Manifest2
-rw-r--r--app-misc/splitvt/files/1.6.6-ldflags.patch23
-rw-r--r--app-misc/splitvt/metadata.xml5
-rw-r--r--app-misc/splitvt/splitvt-1.6.6-r2.ebuild47
4 files changed, 77 insertions, 0 deletions
diff --git a/app-misc/splitvt/Manifest b/app-misc/splitvt/Manifest
new file mode 100644
index 000000000000..bda046d5cce6
--- /dev/null
+++ b/app-misc/splitvt/Manifest
@@ -0,0 +1,2 @@
+DIST splitvt-1.6.6.tar.gz 64797 SHA256 70a03afe3a43c7458c5fe0152c386f62669107e045b973aecc667259b1820937 SHA512 a0a0ea2251489f14e2ba7af9bb1b9d309d6fa310f434090d97af2a0805c398731dec45a5cc15c2074af4d3f33b02c5bab019743530619755382af80ff86fa670 WHIRLPOOL 89b5df9427d5bef4a3d7ecbf4bdf6bc8a18eefb65a89cfb3c807ee1063038d1c15d788b2404daaf1595da7a390bfa5106b4d26d2cc34961082e5d21ad73f26fd
+DIST splitvt_1.6.6-7.diff.gz 11073 SHA256 083f6f3e0f35a10859270f29ca02605e04918bcd5bf2ad94d71f2b13283310e4 SHA512 620f3f6e7f22284ef8054e371a87421beeb2ef355b7084748cbd1f7a3a128c9da11f291fdaf1d393010c0f7affce8d6e56a7ae0977d9831b9d3b98963c55c71f WHIRLPOOL e721fd06ac3276b503b1867fe522b8cdf2ed549c50d36247e3c4204400986b33ed63fb3cab0dac7e2f75981846e358bba628158e02dbeb8a2c53e1b4543e6a82
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..f23b9cae1593
--- /dev/null
+++ b/app-misc/splitvt/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/splitvt/splitvt-1.6.6-r2.ebuild b/app-misc/splitvt/splitvt-1.6.6-r2.ebuild
new file mode 100644
index 000000000000..280ebf0e0b3b
--- /dev/null
+++ b/app-misc/splitvt/splitvt-1.6.6-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+MY_P="${P/-/_}"
+DEB_PL="7"
+
+DESCRIPTION="Splitting terminals into two shells"
+HOMEPAGE="http://www.devolution.com/~slouken/projects/splitvt"
+SRC_URI="
+ http://www.devolution.com/~slouken/projects/${PN}/${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"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${MY_P}-${DEB_PL}.diff \
+ "${FILESDIR}"/${PV}-ldflags.patch
+ 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/ || die
+ make install || die "make install failed"
+ fperms 755 /usr/bin/xsplitvt || die
+ dodoc ANNOUNCE BLURB CHANGES NOTES README TODO || die
+ doman splitvt.1 || die
+}