summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tcltk')
-rw-r--r--dev-tcltk/blt/ChangeLog9
-rw-r--r--dev-tcltk/blt/blt-2.4z-r4.ebuild64
-rw-r--r--dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile.patch20
-rw-r--r--dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile2.patch15
4 files changed, 107 insertions, 1 deletions
diff --git a/dev-tcltk/blt/ChangeLog b/dev-tcltk/blt/ChangeLog
index e3359c4bba42..71c0ffdbd9c2 100644
--- a/dev-tcltk/blt/ChangeLog
+++ b/dev-tcltk/blt/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-tcltk/blt
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/ChangeLog,v 1.23 2008/02/17 04:19:39 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/ChangeLog,v 1.24 2008/10/26 13:51:06 mescalinum Exp $
+
+*blt-2.4z-r4 (26 Oct 2008)
+
+ 26 Oct 2008; Federico Ferri <mescalinum@gentoo.org>
+ +files/blt-2.4z-r4-fix-makefile.patch,
+ +files/blt-2.4z-r4-fix-makefile2.patch, +blt-2.4z-r4.ebuild:
+ revision bump, now using fork from jdc - fixes #212711
16 Feb 2008; Tom Gall <tgall@gentoo.org> blt-2.4z-r1.ebuild:
stable on ppc64
diff --git a/dev-tcltk/blt/blt-2.4z-r4.ebuild b/dev-tcltk/blt/blt-2.4z-r4.ebuild
new file mode 100644
index 000000000000..0bf778fffab2
--- /dev/null
+++ b/dev-tcltk/blt/blt-2.4z-r4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/blt-2.4z-r4.ebuild,v 1.1 2008/10/26 13:51:06 mescalinum Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_V_SUFFIX="-8.5.2"
+HOMEPAGE="http://blt.sourceforge.net/
+http://jos.decoster.googlepages.com/bltfortk8.5.2"
+SRC_URI="http://jos.decoster.googlepages.com/${PN}${PV}${MY_V_SUFFIX}.tar.gz"
+DESCRIPTION="BLT is an extension to the Tk toolkit adding new widgets, geometry managers, and misc commands."
+
+IUSE=""
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/tk-8.0
+ x11-libs/libX11"
+
+S="${WORKDIR}/${PN}${PV}${MY_V_SUFFIX}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile.patch"
+ epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile2.patch"
+ # From blt-2.4z-6mdk.src.rpm
+ epatch "${FILESDIR}"/blt2.4z-64bit.patch
+
+ #epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fix.patch
+ epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fixpkgruntime.patch
+
+ # Set the correct libdir
+ sed -i -e "s:\(^libdir=\${exec_prefix}/\)lib:\1$(get_libdir):" \
+ configure* || die "sed configure* failed"
+ sed -i -e "/^scriptdir =/s:lib:$(get_libdir):" \
+ Makefile.in demos/Makefile.in || die "sed Makefile.in failed"
+}
+
+src_compile() {
+ # bug 167934
+ append-flags -fPIC
+
+ econf --with-blt=/usr/$(get_libdir) || die "./configure failed"
+ # parallel borks
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/bin \
+ /usr/$(get_libdir)/blt2.4/demos/bitmaps \
+ /usr/share/man/mann \
+ /usr/include \
+ || die "dodir failed"
+ emake -j1 INSTALL_ROOT="${D}" install || die "make install failed"
+
+ dodoc NEWS PROBLEMS README
+ dohtml html/*.html
+ for f in `ls "${D}"/usr/share/man/mann` ; do
+ mv "${D}"/usr/share/man/mann/${f} "${D}"/usr/share/man/mann/${f/.n/.nblt}
+ done
+}
diff --git a/dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile.patch b/dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile.patch
new file mode 100644
index 000000000000..0b5b852df70c
--- /dev/null
+++ b/dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile.patch
@@ -0,0 +1,20 @@
+--- library/Makefile.in.orig 2008-10-26 14:30:28.000000000 +0100
++++ library/Makefile.in 2008-10-26 14:31:40.000000000 +0100
+@@ -45,7 +45,7 @@ all: pkgIndex
+
+ pkgIndex:
+ rm -f pkgIndex.tcl
+- sed -e 's/%VERSION%/$(version)/' $(srcdir)/pkgIndex.tcl.in | \
++ sed -e 's/%VERSION%/$(version)/' $(INSTALL_ROOT)$(srcdir)/pkgIndex.tcl.in | \
+ sed -e 's/%LIB_PREFIX%/$(lib_prefix)/' | \
+ sed -e 's;%LIB_DIR%;$(libdir);' > pkgIndex.tcl
+
+@@ -58,7 +58,7 @@ install: mkdirs pkgIndex
+ for i in $(miscFiles) ; do \
+ $(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(scriptdir) ; \
+ done
+- $(INSTALL_DATA) pkgIndex.tcl $(scriptdir)
++ $(INSTALL_DATA) pkgIndex.tcl $(INSTALL_ROOT)$(scriptdir)
+
+ mkdirs:
+ @for i in $(instdirs) ; do \
diff --git a/dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile2.patch b/dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile2.patch
new file mode 100644
index 000000000000..42b919d7c21f
--- /dev/null
+++ b/dev-tcltk/blt/files/blt-2.4z-r4-fix-makefile2.patch
@@ -0,0 +1,15 @@
+--- Makefile.in.orig 2008-10-26 14:36:22.000000000 +0100
++++ Makefile.in 2008-10-26 14:37:04.000000000 +0100
+@@ -47,9 +47,9 @@ install-all:
+ (cd library; $(MAKE) install)
+ (cd man; $(MAKE) install)
+ (cd demos; $(MAKE) install)
+- $(INSTALL_DATA) $(srcdir)/README $(INSTALL_DIR)$(scriptdir)
+- $(INSTALL_DATA) $(srcdir)/PROBLEMS $(INSTALL_DIR)$(scriptdir)
+- $(INSTALL_DATA) $(srcdir)/NEWS $(INSTALL_DIR)$(scriptdir)
++ $(INSTALL_DATA) $(srcdir)/README $(INSTALL_ROOT)$(scriptdir)
++ $(INSTALL_DATA) $(srcdir)/PROBLEMS $(INSTALL_ROOT)$(scriptdir)
++ $(INSTALL_DATA) $(srcdir)/NEWS $(INSTALL_ROOT)$(scriptdir)
+
+ mkdirs:
+ @for i in $(instdirs) ; do \