summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAJ Lewis <roadrunner@gentoo.org>2001-04-30 17:38:47 +0000
committerAJ Lewis <roadrunner@gentoo.org>2001-04-30 17:38:47 +0000
commitb708723d7dc6b32f661f7d0160bb61f53f66b162 (patch)
treebf75e4dc66931b8bfacb6590d1a2af7697cb675a /app-misc/twin
parentAdded virtual/glu to dependencies if USE opengl is set (diff)
downloadhistorical-b708723d7dc6b32f661f7d0160bb61f53f66b162.tar.gz
historical-b708723d7dc6b32f661f7d0160bb61f53f66b162.tar.bz2
historical-b708723d7dc6b32f661f7d0160bb61f53f66b162.zip
o Added a 'ggi' USE flag to the twin build
Diffstat (limited to 'app-misc/twin')
-rw-r--r--app-misc/twin/files/digest-twin-0.3.8-r11
-rw-r--r--app-misc/twin/files/twin-0.3.8-r1-gentoo.diff29
-rw-r--r--app-misc/twin/twin-0.3.8-r1.ebuild75
3 files changed, 105 insertions, 0 deletions
diff --git a/app-misc/twin/files/digest-twin-0.3.8-r1 b/app-misc/twin/files/digest-twin-0.3.8-r1
new file mode 100644
index 000000000000..bebf9d3eddd0
--- /dev/null
+++ b/app-misc/twin/files/digest-twin-0.3.8-r1
@@ -0,0 +1 @@
+MD5 e1fd3579eb8647fce80fc80a44210526 twin-0.3.8.tar.gz
diff --git a/app-misc/twin/files/twin-0.3.8-r1-gentoo.diff b/app-misc/twin/files/twin-0.3.8-r1-gentoo.diff
new file mode 100644
index 000000000000..eeb978e1f4a5
--- /dev/null
+++ b/app-misc/twin/files/twin-0.3.8-r1-gentoo.diff
@@ -0,0 +1,29 @@
+diff -Naur twin-0.3.8/MakePaths twin-0.3.8-new/MakePaths
+--- twin-0.3.8/MakePaths Mon Feb 26 04:40:45 2001
++++ twin-0.3.8-new/MakePaths Tue Apr 24 23:03:24 2001
+@@ -2,10 +2,11 @@
+ # set installation directories
+
+ sysconfdir = /etc
+-prefix = /usr/local
++prefix = /usr
+ bindir = $(prefix)/bin
+ libdir = $(prefix)/lib
+ datadir = $(prefix)/share
++docdir = $(datadir)/doc
+ mandir = $(datadir)/man
+ includedir = $(prefix)/include
+
+diff -Naur twin-0.3.8/docs/Makefile twin-0.3.8-new/docs/Makefile
+--- twin-0.3.8/docs/Makefile Fri Feb 23 04:32:14 2001
++++ twin-0.3.8-new/docs/Makefile Tue Apr 24 23:04:21 2001
+@@ -42,6 +42,6 @@
+ install:
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
+ $(INSTALL) twin.1 $(DESTDIR)$(mandir)/man1
+- $(INSTALL) -d $(DESTDIR)$(datadir)/twin/docs
+- $(INSTALL) $(DOCS) $(DESTDIR)$(datadir)/twin/docs
+- cd $(TOPDIR) && $(INSTALL) $(TOPDOCS) $(DESTDIR)$(datadir)/twin
++ $(INSTALL) -d $(DESTDIR)$(docdir)/twin-0.3.8/docs
++ $(INSTALL) $(DOCS) $(DESTDIR)$(docdir)/twin-0.3.8/docs
++ cd $(TOPDIR) && $(INSTALL) $(TOPDOCS) $(DESTDIR)$(docdir)/twin-0.3.8
diff --git a/app-misc/twin/twin-0.3.8-r1.ebuild b/app-misc/twin/twin-0.3.8-r1.ebuild
new file mode 100644
index 000000000000..fb338c09aabd
--- /dev/null
+++ b/app-misc/twin/twin-0.3.8-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author AJ Lewis <aj@gentoo.org>
+
+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? ( >=x11-base/xfree-4.0.1 )
+ ggi? ( >=media-libs/libggi-1.9 )
+ >=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\n\n""\n\ny\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"
+ if [ "`use ggi`" ]
+ then
+ conf=${conf}"y\n"
+ else
+ conf=${conf}"n\n"
+ fi
+ conf=${conf}"\n\n""\n\n\n\nn\n"
+ echo -e "${conf}" > test
+ try cat test | make config
+ rm test
+ try make clean
+ try make
+}
+
+src_install() {
+
+ dodir /usr/lib /usr/bin /usr/lib/ /usr/include /usr/include/Tw \
+ /usr/lib/twin/modules /usr/X11R6/lib/X11/fonts/misc
+
+ DESTDIR=${D} make install
+
+ if [ "`use X`" ]
+ then
+ insinto /usr/X11R6/lib/X11/fonts/misc
+ doins fonts/vga.pcf.gz
+ fi
+
+}
+
+pkg_postinst() {
+ if [ "`use X`" ]
+ then
+ /usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/misc
+ /usr/X11R6/bin/xset fp rehash
+ fi
+}
+
+pkg_postrm() {
+ if [ "`use X`" ]
+ then
+ /usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/misc
+ /usr/X11R6/bin/xset fp rehash
+ fi
+}