summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ytalk')
-rw-r--r--net-misc/ytalk/Manifest1
-rw-r--r--net-misc/ytalk/files/ytalk-3.3.0-tinfo.patch47
-rw-r--r--net-misc/ytalk/metadata.xml9
-rw-r--r--net-misc/ytalk/ytalk-3.3.0.ebuild27
4 files changed, 84 insertions, 0 deletions
diff --git a/net-misc/ytalk/Manifest b/net-misc/ytalk/Manifest
new file mode 100644
index 000000000000..21985f52fd3e
--- /dev/null
+++ b/net-misc/ytalk/Manifest
@@ -0,0 +1 @@
+DIST ytalk-3.3.0.tar.gz 137989 SHA256 6ecb34f71f723a7b96f90e411c78dff2735c08dc4228c765f7fdbf8ca48572b4 SHA512 ee4c5b13b70c832899c9f62e1eb71e736b74812e6e47d56a9aad34fc5f8cd344d91c0ee9eb652eb11d9aa9578f51bd87213bc7181dfad9933e0fd73af363b8ef WHIRLPOOL 446a0a11fb1a4b82a38c41d73a67c41d0574e7a52036ce5273a29b2fd7e6ecdd262dcd501cff71685def6328aeb2f44c4a3fca9784de549fd468eccd1e392d63
diff --git a/net-misc/ytalk/files/ytalk-3.3.0-tinfo.patch b/net-misc/ytalk/files/ytalk-3.3.0-tinfo.patch
new file mode 100644
index 000000000000..bdfb2aa8aa48
--- /dev/null
+++ b/net-misc/ytalk/files/ytalk-3.3.0-tinfo.patch
@@ -0,0 +1,47 @@
+--- a/configure.in
++++ b/configure.in
+@@ -22,7 +22,6 @@
+ esac
+ AC_SUBST(SYSTEM_DEFS)
+
+-AC_DEFINE_DIR([sysconfdir], [sysconfdir], [sysconfdir])
+ AC_DEFINE_UNQUOTED(SYSTEM_YTALKRC, ["${sysconfdir}/ytalkrc"], ["Location of default ytalkrc file"])
+
+ dnl Checks for programs.
+@@ -35,30 +34,12 @@
+ AC_CHECK_SIZEOF(long)
+ AC_CHECK_SIZEOF(u_int)
+
+-ytalk_cv_curses=/usr
+-AC_ARG_WITH(curses, AC_HELP_STRING([--with-curses=DIR], [Where curses is installed]),
+- [if test $withval != yes; then
+- ytalk_cv_curses=$withval
+- fi
+- if test x$ytalk_cv_curses != x/usr; then
+- LDFLAGS="-L${ytalk_cv_curses}/lib $LDFLAGS"
+- CPPFLAGS="$CPPFLAGS -I${ytalk_cv_curses}/include"
+- fi])
+-
+-AC_CHECK_LIB(ncurses, initscr,
+- [LIBS="$LIBS -lncurses"
+- if test x$ytalk_cv_curses = x/usr -a -d /usr/include/ncurses; then
+- CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
+- fi
+- AC_CHECK_HEADERS(ncurses.h)],
+- [CF_CURSES_LIBS])
+-
+-dnl Check for keypad()
+-AC_CHECK_LIB(ncurses, keypad,
+- [AC_DEFINE(HAVE_KEYPAD, 1, [Define to 1 if you have keypad()])],
+-[AC_CHECK_LIB(curses, keypad,
+- [AC_DEFINE(HAVE_KEYPAD, 1, [Define to 1 if you have keypad()])],
+-[])])
++PKG_CHECK_MODULES(ncurses, ncurses,
++ LIBS="$LIBS $ncurses_LIBS"
++ CFLAGS="$CFLAGS $ncurses_CFLAGS"
++ AC_DEFINE(HAVE_KEYPAD, 1, [Define to 1 if you have keypad()]),
++ AC_MSG_ERROR([Could not find ncurses])
++)
+
+ dnl Look for termios, and if that fails, try sgtty.
+ AC_CHECK_FUNC(tcgetattr, [\
diff --git a/net-misc/ytalk/metadata.xml b/net-misc/ytalk/metadata.xml
new file mode 100644
index 000000000000..a2cb70369f03
--- /dev/null
+++ b/net-misc/ytalk/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>keso@impul.se</email>
+ <name>Andreas King</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-misc/ytalk/ytalk-3.3.0.ebuild b/net-misc/ytalk/ytalk-3.3.0.ebuild
new file mode 100644
index 000000000000..8ecd5ced7e03
--- /dev/null
+++ b/net-misc/ytalk/ytalk-3.3.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Multi-user replacement for UNIX talk"
+HOMEPAGE="http://www.impul.se/ytalk/"
+SRC_URI="http://www.impul.se/ytalk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ~ia64 ppc ~ppc64 sparc x86"
+
+RDEPEND=">=sys-libs/ncurses-5.2"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( ChangeLog INSTALL README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+ eautoreconf
+}