summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-04-08 10:18:22 +0000
committerJustin Lecher <jlec@gentoo.org>2010-04-08 10:18:22 +0000
commit50bce7723783b2e9e2092c9efbe1d86649193140 (patch)
tree4cf61a97356577231a9541ecac7c540fb8baddbf /dev-tcltk/blt
parentstable x86, bug 313815 (diff)
downloadhistorical-50bce7723783b2e9e2092c9efbe1d86649193140.tar.gz
historical-50bce7723783b2e9e2092c9efbe1d86649193140.tar.bz2
historical-50bce7723783b2e9e2092c9efbe1d86649193140.zip
fixed underlinking problem
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-tcltk/blt')
-rw-r--r--dev-tcltk/blt/ChangeLog8
-rw-r--r--dev-tcltk/blt/Manifest10
-rw-r--r--dev-tcltk/blt/blt-2.4z-r8.ebuild102
-rw-r--r--dev-tcltk/blt/files/blt-2.4z-linking.patch21
4 files changed, 136 insertions, 5 deletions
diff --git a/dev-tcltk/blt/ChangeLog b/dev-tcltk/blt/ChangeLog
index 4dc86cbe402c..f7c625d88ed5 100644
--- a/dev-tcltk/blt/ChangeLog
+++ b/dev-tcltk/blt/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-tcltk/blt
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/ChangeLog,v 1.34 2010/03/21 20:05:21 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/ChangeLog,v 1.35 2010/04/08 10:18:22 jlec Exp $
+
+*blt-2.4z-r8 (08 Apr 2010)
+
+ 08 Apr 2010; Justin Lecher <jlec@gentoo.org> +blt-2.4z-r8.ebuild,
+ +files/blt-2.4z-linking.patch:
+ fixed underlinking problem
*blt-2.4z-r7 (21 Mar 2010)
diff --git a/dev-tcltk/blt/Manifest b/dev-tcltk/blt/Manifest
index 9252ad370729..b5fb7e7ecd75 100644
--- a/dev-tcltk/blt/Manifest
+++ b/dev-tcltk/blt/Manifest
@@ -2,6 +2,7 @@
Hash: SHA1
AUX blt-2.4z-ldflags.patch 1086 RMD160 dc9bb13405d8c89aa86ed57e994abef8059163db SHA1 813a6f7461364568b35630a1d5e281334efc8d7e SHA256 20245d45dfb0e96afe1127fa40209a7881fbd3f3880ef04af9496809a308f06e
+AUX blt-2.4z-linking.patch 684 RMD160 14fda8108cebdcfa170677976dd1af80b2f489cc SHA1 77d56fbe846bf4990ddbb64b4eacd2350447886e SHA256 cd19df698ca40ce743c81fe2c18dce615a6db385c6a973b9a14201f45e5467a2
AUX blt-2.4z-r4-fix-makefile.patch 817 RMD160 dcd6f91b7be961df99143ebe6f7acebb116e01b6 SHA1 4049c4c4eda24fc2c57def93f09c24176c83a132 SHA256 fd8ada3720c85856770f4770a93f4e668a75de3cf68d35d25597215996e023e8
AUX blt-2.4z-r4-fix-makefile2.patch 728 RMD160 12969f521f1079670b639626061e7db4a74ea352 SHA1 ac130c9472a7bf0d8b76390f22c73d812d7e646b SHA256 aece52e1771d097498cf88bb1fe286ac698a46af0d07163c4b9d184440ab7d39
AUX blt-2.4z-tcl8.5-fixpkgruntime.patch 1976 RMD160 ec7999c78fe95bdfff2785c125d48b0b09776e4e SHA1 e41d9334db9dd1fc4f5fe03777c940dedbcb0c24 SHA256 a44ed43bbb946d8fc11bb8f416680a536ffc7c0d78faf33030ec378d67d3d287
@@ -14,12 +15,13 @@ EBUILD blt-2.4z-r1.ebuild 1546 RMD160 fbe03e761a4805d08b09134fc99fe1841ce4ae4e S
EBUILD blt-2.4z-r5.ebuild 2019 RMD160 3c4621ed1444563a5230d93bbaacf9ce996142a1 SHA1 2125adf5c0a69ecaff278dad225af8d4d2b4de70 SHA256 50c7cbb9a84c13ba123372af8bf7ecdfe2b960a3ed7ff6b89b8679555af1a2d4
EBUILD blt-2.4z-r6.ebuild 2927 RMD160 4891fa495042809d0439ebe7f56939f105990ead SHA1 0ffaa8becfbffeef615a81f5b341391c8e914c3b SHA256 e2050eb7017efc14a0a1c082a789ae9182a4dac2dd32dc7dc678988cb0b44935
EBUILD blt-2.4z-r7.ebuild 3108 RMD160 cf5f64fd794027caac7a39fde7dbc3024ca93595 SHA1 5ef78d2187cc1fe55acc1b8fc4397f1782d34ba5 SHA256 d0cfc0f380eece2a045bd7e41f5164214823aca024180d06e602220192d529e9
-MISC ChangeLog 4810 RMD160 cf10c6c9feaa2379594b7fef83064d4348ed3501 SHA1 ffb6ee9f27c936f6bb32b77f73f3c94820aaa073 SHA256 69d8e10b4ec6d5d7b31a38d53c82e2a804b2f25d68cf35a62f5b8e8c63088c8c
+EBUILD blt-2.4z-r8.ebuild 3150 RMD160 9602921b25167e8d6e76b7ddcad2660458806ed2 SHA1 74ae86c61e04adf95c183b876fdee48cb6a8e667 SHA256 ae91da45aaa3d3046429fe2ed95f37271613f5cf812ba98f14fa89b2391caa8b
+MISC ChangeLog 4969 RMD160 223e74e559e43fae1ee90d7c4f135748827e0d75 SHA1 4de8ae2e8ef99c96b7c0019ac5eae3a0ce9731b9 SHA256 d68ac586b9d65d4e56a8391ecade3838dd0e092f27597f943bb506a82ac51f11
MISC metadata.xml 158 RMD160 f197c34c7dd71f6025e93436e3f999137928554a SHA1 edb8e5ac668440e92e947fc3dff54484b28c7775 SHA256 62fb2b0a899315973de885234e3931a2f652b343b68f90fe0778378fdca6f290
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAkumfAYACgkQgAnW8HDreRZsPQCeJXgDMiGJZvjid/X/yccICCgg
-DdkAn2fpL95ITwc9PL6QhWz5cuYknDT0
-=WGqw
+iEYEARECAAYFAku9rXQACgkQgAnW8HDreRb5rwCfZMeJofkCDcGXKdBrsJNqil+O
+8LsAoK7jwgi955St+nS2fx6vNSrvIbQ7
+=Zd76
-----END PGP SIGNATURE-----
diff --git a/dev-tcltk/blt/blt-2.4z-r8.ebuild b/dev-tcltk/blt/blt-2.4z-r8.ebuild
new file mode 100644
index 000000000000..48fc97b02ee0
--- /dev/null
+++ b/dev-tcltk/blt/blt-2.4z-r8.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/blt-2.4z-r8.ebuild,v 1.1 2010/04/08 10:18:22 jlec Exp $
+
+EAPI="3"
+
+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="jpeg X"
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="
+ >=dev-lang/tk-8.0
+ jpeg? ( media-libs/jpeg:0 )
+ X? ( x11-libs/libX11 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}${PV}${MY_V_SUFFIX}"
+
+src_prepare() {
+ 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
+
+ epatch "${FILESDIR}"/${P}-ldflags.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"
+
+ epatch "${FILESDIR}"/${P}-linking.patch
+}
+
+src_configure() {
+ # bug 167934
+ append-flags -fPIC
+
+ econf \
+ --x-includes="${EPREFIX}"/usr/include \
+ --x-libraries="${EPREFIX}"/usr/$(get_libdir) \
+ --with-blt="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tcl="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tk="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tclincls="${EPREFIX}"/usr/include \
+ --with-tkincls="${EPREFIX}"/usr/include \
+ --with-tcllibs="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tklibs="${EPREFIX}"/usr/$(get_libdir) \
+ --with-cc="$(tc-getCC)" \
+ --with-cflags="${CFLAGS}" \
+ $(use_enable jpeg) \
+ $(use_with X x) \
+ || die "./configure failed"
+
+}
+
+src_compile() {
+ # parallel borks
+ emake -j1 LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ sed \
+ -e "s:../src/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
+ -e "s:../bltwish:${EPREFIX}/usr/bin/bltwish:g" \
+ -e "s:/usr/local/bin/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
+ -e "s:/usr/local/bin/tclsh:${EPREFIX}/usr/bin/tclsh:g" \
+ -i demos/{,scripts/}*.tcl || die
+
+ 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 "${ED}"/usr/share/man/mann` ; do
+ mv "${ED}"/usr/share/man/mann/${f} "${ED}"/usr/share/man/mann/${f/.n/.nblt}
+ done
+
+ # bug 259338 - dev-tcltk/blt-2.4z-r4 provides empty pkgIndex.tcl
+ cp "${FILESDIR}"/pkgIndex.tcl "${ED}"/usr/$(get_libdir)/blt2.4/pkgIndex.tcl
+
+ # fix for linking against shared lib with -lBLT or -lBLTlite
+ dosym libBLT24.so /usr/$(get_libdir)/libBLT.so || die
+ dosym libBLTlite24.so /usr/$(get_libdir)/libBLTlite.so || die
+}
diff --git a/dev-tcltk/blt/files/blt-2.4z-linking.patch b/dev-tcltk/blt/files/blt-2.4z-linking.patch
new file mode 100644
index 000000000000..b5a5359171d3
--- /dev/null
+++ b/dev-tcltk/blt/files/blt-2.4z-linking.patch
@@ -0,0 +1,21 @@
+diff --git a/src/shared/Makefile.in b/src/shared/Makefile.in
+index db14156..a06111f 100644
+--- a/src/shared/Makefile.in
++++ b/src/shared/Makefile.in
+@@ -145,14 +145,14 @@ $(lib_so): $(OBJS)
+ $(srcdir)/bltInit.c
+ $(RM) $@
+ $(SHLIB_LD) $(SHLIB_LD_FLAGS) $(LDFLAGS) -o $@ bltInit.o $(OBJS) \
+- $(SHLIB_LIB_SPECS)
++ $(SHLIB_LIB_SPECS) $(LIBS)
+
+ $(tcl_only_lib_so): $(TCL_ONLY_OBJS)
+ $(CC) -c $(CC_SWITCHES) -DTCL_ONLY -DBLT_LIBRARY=\"$(scriptdir)\" \
+ $(srcdir)/bltInit.c
+ $(RM) $@
+ $(SHLIB_LD) $(SHLIB_LD_FLAGS) $(LDFLAGS) -o $@ bltInit.o $(TCL_ONLY_OBJS) \
+- $(SHLIB_TCL_ONLY_LIB_SPECS)
++ $(SHLIB_TCL_ONLY_LIB_SPECS) $(LIBS)
+
+ install: mkdirs install-lib install-demo
+