summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin von Gagern (MvG) <Martin.vGagern@gmx.net>2008-12-30 22:41:48 +0000
committerMartin von Gagern (MvG) <Martin.vGagern@gmx.net>2008-12-30 22:41:48 +0000
commit4e910d55968df66eadf342f0ae392c666b6d6757 (patch)
tree7235011f7d351666e7f65f88efcac65887ffe4c0 /dev-lang
parentapp-office/ganttproject-bin: Version bump as requested and tested in bug 252672 (diff)
downloadsunrise-4e910d55968df66eadf342f0ae392c666b6d6757.tar.gz
sunrise-4e910d55968df66eadf342f0ae392c666b6d6757.tar.bz2
sunrise-4e910d55968df66eadf342f0ae392c666b6d6757.zip
dev-lang/tkgofer: Ebuild from bug 68373
svn path=/sunrise/; revision=7561
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/tkgofer/ChangeLog9
-rw-r--r--dev-lang/tkgofer/Manifest6
-rw-r--r--dev-lang/tkgofer/files/2.1-gentoo-config.patch75
-rw-r--r--dev-lang/tkgofer/files/2.1-include-string.patch22
-rw-r--r--dev-lang/tkgofer/metadata.xml5
-rw-r--r--dev-lang/tkgofer/tkgofer-2.1.ebuild50
6 files changed, 167 insertions, 0 deletions
diff --git a/dev-lang/tkgofer/ChangeLog b/dev-lang/tkgofer/ChangeLog
new file mode 100644
index 000000000..7fe051b31
--- /dev/null
+++ b/dev-lang/tkgofer/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-lang/tkgofer
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 30 Dec 2008; Martin von Gagern (MvG) <Martin.vGagern@gmx.net>
+ +files/2.1-gentoo-config.patch, +files/2.1-include-string.patch,
+ +tkgofer-2.1.ebuild, +metadata.xml:
+ Ebuild from bug 68373
+
diff --git a/dev-lang/tkgofer/Manifest b/dev-lang/tkgofer/Manifest
new file mode 100644
index 000000000..4b926b710
--- /dev/null
+++ b/dev-lang/tkgofer/Manifest
@@ -0,0 +1,6 @@
+AUX 2.1-gentoo-config.patch 2055 RMD160 15dff7bc437e4d1fdeac979a2d8bbdfe1d0568eb SHA1 f8b7152c4276f939e92c82d8c501f2b0eca06744 SHA256 c2424f817acbc43b0c7cc936c9474e73261978b19aa2e2c5c2f1b7600a8d0da1
+AUX 2.1-include-string.patch 814 RMD160 d39e1aed704444e3bc6c4a99c92dff58f9953c92 SHA1 eb710e3cded839a6def06b57d1f69181bc21c380 SHA256 18178796a81ff697c99125ef0a19919df63d512258ba86a6078f5942f13370ac
+DIST tkg2.1.tar.gz 1127597 RMD160 efb623710d11db01d4a9392afb052474c979595d SHA1 cebad772a6e1471ea88e02231189b3a743c24984 SHA256 606e58e10843ef10bbf0b515d91d992a090cd15bb5e4b48298c293407e0582a5
+EBUILD tkgofer-2.1.ebuild 1392 RMD160 2fe3cb7c580fa450e7d65d578de6576fe973d297 SHA1 b5d3a8bfbc89a37f9e48879f36b2429f592e55c3 SHA256 bc2c4320d0cc088d9db0cf32734c8d20e4f83f892d62e9332111552b11a0f7aa
+MISC ChangeLog 311 RMD160 d48e851f0f0f25eb560a60ad786b13e4dfd0b1bd SHA1 87157399feff7a91da0925ca877fbb33860df7db SHA256 c927f2abb9d227c2cb31b40a0b1af5392f5416fdecace1c2ff29383d2c75d503
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/dev-lang/tkgofer/files/2.1-gentoo-config.patch b/dev-lang/tkgofer/files/2.1-gentoo-config.patch
new file mode 100644
index 000000000..f7d897598
--- /dev/null
+++ b/dev-lang/tkgofer/files/2.1-gentoo-config.patch
@@ -0,0 +1,75 @@
+--- tkgofer2.1.orig/tkgofer.install 2008-12-30 19:22:18.000000000 +0100
++++ tkgofer2.1/tkgofer.install 2008-12-30 19:23:26.000000000 +0100
+@@ -16,20 +16,20 @@
+ LibStd="/usr/lib"
+
+ #- Location of `libtcl.a' and Tcl include files
+-LibTcl="/usr/local/lib"
+-IncTcl="/usr/local/include"
++LibTcl="/usr/lib"
++IncTcl="/usr/include"
+
+ #- Location of `libtk.a' and Tk include files
+ LibTk="$LibTcl"
+ IncTk="$IncTcl"
+
+ #- Location of `libX11.so.?' and X11 include files
+-LibX11="/usr/lib"
++LibX11="/usr/X11R6/lib"
+ IncX11="/usr/openwin/include"
+
+ #- Architecture Settings
+
+-Architecture="SOLARIS"
++Architecture="LINUX"
+ # Choose from: TURBOC, BCC, WATCOM, ZTC, DJGPP, OS2,
+ # SUNOS, MIPS, NEXTSTEP, NEXTGCC, MINIX68K,
+ # AMIGA, HPUX, LINUX, RISCOS, ALPHA, SVR4, ULTRIX,
+@@ -47,12 +47,12 @@
+
+ LibFlags="-L$LibStd -L$LibTcl -L$LibTk -L$LibX11"
+ IncFlags="-I$IncTcl -I$IncTk -I$IncX11"
+-LinkFlags="-ltk4.2 -ltcl7.6 -lX11 -lm -ldl -lsocket -lnsl"
++LinkFlags="${LDFLAGS} -ltk -ltcl -lX11 -lm -ldl -lncurses -lreadline -lnsl"
+
+ #- Compiler
+
+ Compiler="gcc"
+-CompilerFlags=""
++CompilerFlags="${CFLAGS} -DUSE_READLINE=1"
+
+ #---------------------------------------------------------------------
+ #- Derived variables -- Don't change
+--- tkgofer2.1.orig/Skeletons/Makefile.skel 2008-12-30 19:22:18.000000000 +0100
++++ tkgofer2.1/Skeletons/Makefile.skel 2008-12-30 19:20:58.000000000 +0100
+@@ -24,7 +24,7 @@
+ CC = @Compiler@ $(INCDIRS)
+ CFLAGS = @CompilerFlags@
+
+-OPTFLAGS = -O
++OPTFLAGS =
+ OPT1 =
+
+ # ----------------------------------------------------------------------
+@@ -36,7 +36,6 @@
+ tkgofer : $(IOBJECTS)
+ $(CC) $(CFLAGS) $(OPTFLAGS) $(IOBJECTS) \
+ $(LIBDIRS) -o tkgofer.exe $(LDFLAGS)
+- strip tkgofer.exe
+
+ .c.o :
+ $(CC) -c $(CFLAGS) $(OPTFLAGS) $<
+@@ -48,13 +47,11 @@
+ ./gofc $*.gs
+ $(CC) $(OPTFLAGS) $*.c runtime.o -o $* $(LDFLAGS)
+ rm $*.c
+- strip $*
+
+ .gp :
+ ./gofc + $*.gp
+ $(CC) $(OPTFLAGS) $*.c runtime.o -o $* $(LDFLAGS)
+ rm $*.c
+- strip $*
+
+ parser.c : parser.y
+ yacc parser.y
diff --git a/dev-lang/tkgofer/files/2.1-include-string.patch b/dev-lang/tkgofer/files/2.1-include-string.patch
new file mode 100644
index 000000000..f07686551
--- /dev/null
+++ b/dev-lang/tkgofer/files/2.1-include-string.patch
@@ -0,0 +1,22 @@
+diff -ur --exclude='*~' tkgofer2.1.orig/Skeletons/prelude.h.skel tkgofer2.1/Skeletons/prelude.h.skel
+--- tkgofer2.1.orig/Skeletons/prelude.h.skel 2008-12-30 18:52:00.000000000 +0100
++++ tkgofer2.1/Skeletons/prelude.h.skel 2008-12-30 18:55:37.000000000 +0100
+@@ -227,6 +227,7 @@
+
+ #if (HPUX | DJGPP | ZTC | LINUX | ALPHA | OS2 | SVR4 | AIX | \
+ SGI4 | NETBSD | GNUWIN32)
++#include <string.h>
+ #include <stdlib.h>
+ #define far
+ #endif
+diff -ur --exclude='*~' tkgofer2.1.orig/Sources/machdep.c tkgofer2.1/Sources/machdep.c
+--- tkgofer2.1.orig/Sources/machdep.c 2008-12-30 18:52:00.000000000 +0100
++++ tkgofer2.1/Sources/machdep.c 2008-12-30 18:52:36.000000000 +0100
+@@ -13,6 +13,7 @@
+ #include <fcntl.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <string.h>
+ #endif
+
+ #if (TURBOC | BCC)
diff --git a/dev-lang/tkgofer/metadata.xml b/dev-lang/tkgofer/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/dev-lang/tkgofer/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>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/dev-lang/tkgofer/tkgofer-2.1.ebuild b/dev-lang/tkgofer/tkgofer-2.1.ebuild
new file mode 100644
index 000000000..37b23742f
--- /dev/null
+++ b/dev-lang/tkgofer/tkgofer-2.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Gofer interpreter including Tcl/Tk interface"
+HOMEPAGE="http://www.informatik.uni-ulm.de/pm/projekte/TkGofer/"
+SRC_URI="http://www.informatik.uni-ulm.de/pm/projekte/TkGofer/tkg${PV}.tar.gz"
+
+LICENSE="as-is" # see ${S}/Sources/goferite.h for exact wording
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/tcl-7.6
+ >=dev-lang/tk-4.2
+ sys-libs/readline"
+
+S=${WORKDIR}/${PN}${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/2.1-include-string.patch"
+ epatch "${FILESDIR}/2.1-gentoo-config.patch"
+}
+
+src_compile() {
+ rm Sources/prelude.h Sources/Makefile # ensure regeneration
+ ./tkgofer.install || die "tkgofer.install failed"
+ sed -i -e"s:${S}:/usr:" \
+ -e"s:\\(PreludeDir=\"\\).*\":\\1/usr/lib/${PN}/Preludes\":" \
+ -e"s:\\(BinDir=\"\\).*\":\\1/usr/lib/${PN}/Bin\":" \
+ -e"s:\\(TclDir=\"\\).*\":\\1/usr/lib/${PN}/Tcl\":" \
+ -e"s:\\(HelpDir=\"\\).*\":\\1/usr/share/doc/${PF}\":" \
+ Bin/tkgofer || die "sed for tkgofer failed"
+}
+
+src_install() {
+ insinto /usr/lib/${PN}/Preludes || die
+ doins Preludes/* || die
+ insinto /usr/lib/${PN}/Tcl || die
+ doins Tcl/* || die
+ exeinto /usr/lib/${PN}/Bin || die
+ doexe Bin/site.specific || die
+ doexe Bin/tkgofer.exe || die
+ dobin Bin/tkgofer # || die
+ dodoc readme Doc/* || die
+}