summaryrefslogtreecommitdiff
blob: 3cc1300e3475dea3c6a7b30f4996e6c16b5306a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-misc/twin/twin-0.2.8.ebuild,v 1.5 2002/07/11 06:30:16 drobbins Exp $


A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="A text-mode window environment"
SRC_URI="http://ftp1.sourceforge.net/twin/${A}
	 http://linuz.sns.it/~max/twin/${A}"
HOMEPAGE="http://linuz.sns.it/~max/twin/" 
DEPEND="virtual/glibc
	X? ( virtual/x11 )
        >=sys-libs/ncurses-5.2"

src_unpack() {
   unpack ${A}
   cd ${S}
   try patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
}

src_compile() {
   local conf
   
   conf="\n\n\n\n\n\n\n\n"
   if [ "`use X`" ]
   then
      conf=${conf}"y\n"
   else
      conf=${conf}"n\n"
   fi
   conf=${conf}"\n\n\n\n\n"
   echo -e ${conf} > .temp
   cat .temp | make config
   rm .temp
   try make clean
   try make 
}

src_install() {
   
   dodir /usr/lib /usr/bin /usr/lib/ /usr/include

   dobin server/twin_real server/twin_wrapper
   dobin clients/twsetroot clients/twevent clients/twmapscrn \
         clients/twedit clients/twterm clients/twattach clients/twsysmon

   dolib lib/libTw.so.1.0.0 

   insinto /usr/include
     doins include/libTwkeys.h include/libTw.h include/libTwerrno.h

   dosym /usr/bin/twin_wrapper /usr/bin/twin
   dosym /usr/bin/twattach /usr/bin/twdetach
   dosym /usr/lib/libTw.so.1.0.0 /usr/lib/libTw.so.1
   dosym /usr/lib/libTw.so.1 /usr/lib/libTw.so

   dodoc BUGS COPYING COPYING.LIB INSTALL README TODO Changelog.txt ${P}.lsm
   docinto clients
     dodoc clients/README.twsetroot clients/twsetroot.sample
}