diff options
author | Jeffrey Gardner <je_fro@gentoo.org> | 2008-10-27 16:51:52 +0000 |
---|---|---|
committer | Jeffrey Gardner <je_fro@gentoo.org> | 2008-10-27 16:51:52 +0000 |
commit | 38c80825f2ba25e680cc18c9e45839eb99f612c3 (patch) | |
tree | 71240f847f59f31dfca203d183a79b69a4e7bf47 | |
parent | fix for bug #225999 (diff) | |
download | je_fro-38c80825f2ba25e680cc18c9e45839eb99f612c3.tar.gz je_fro-38c80825f2ba25e680cc18c9e45839eb99f612c3.tar.bz2 je_fro-38c80825f2ba25e680cc18c9e45839eb99f612c3.zip |
Latest version, patch applied to fix bug #225999. I emailed mescalinum about including this patch asap.
svn path=/; revision=248
-rw-r--r-- | dev-lang/tk/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/tk/tk-8.4.19.ebuild | 121 |
2 files changed, 123 insertions, 0 deletions
diff --git a/dev-lang/tk/Manifest b/dev-lang/tk/Manifest index 6ec9881..58d0365 100644 --- a/dev-lang/tk/Manifest +++ b/dev-lang/tk/Manifest @@ -7,4 +7,6 @@ AUX tk-8.5_alpha6-tclm4-soname.patch 540 RMD160 7ed0721d8ee1fda0b1109c753f2fa660 AUX tk-CVE-2007-4851.patch 405 RMD160 bfc884fbe1f0f2facb892ff0100f59dae0fe5256 SHA1 31c34d01cc5372395d37d2e878a61a059933e5b8 SHA256 e57158583d127b3d9751becb03ee6e11c0fc602150396ce902d1fdee73cb4a32 AUX tk-configure-LANG.patch 1686 RMD160 4ff8355af81705058fd411910dfae94887bcd884 SHA1 67ae0deff73689cb39cd6e7451262bdda9c25a39 SHA256 dc9386b88eac48c282d63d0be7e7be81d4a0a08035a8b97138a61133e057bcea DIST tk8.4.18-src.tar.gz 3363853 RMD160 9c01ba85575a230231793a9885457c98046e41bb SHA1 c1032f3cacd40406065fc1f46ecd217f50329273 SHA256 1757b0daff8a8bb962e612691236ae838e353521e7184464a5d32225905eac18 +DIST tk8.4.19-src.tar.gz 3362694 RMD160 c963297655740ad4b29a99c489c35a64e5e817ce SHA1 56d09be8a7670b2686d76b7526ff24b0240ca120 SHA256 d056fe6c204ac31539616e1069522dd5864a580b64e521fe1a49bc895ca8699f EBUILD tk-8.4.18.ebuild 3291 RMD160 d89ee4497979a089cb7906957e6087bb901853ec SHA1 7d949b47b7e94602a1164cf80691717094d4d2ab SHA256 1a3deae2af5cda95afc62f34a554b4951b894da960ef246b053ac182ef27efad +EBUILD tk-8.4.19.ebuild 3208 RMD160 9929b71f7ad4d5113990fd2e9399f9a9a41b1e3a SHA1 38f21ef7a91a5ab4ff55f3db31a6368cc1101b1e SHA256 d0e50dc6c96c2d515a76324876d7a14350275e1da2fef313e3e9f2986500fa56 diff --git a/dev-lang/tk/tk-8.4.19.ebuild b/dev-lang/tk/tk-8.4.19.ebuild new file mode 100644 index 0000000..d0c1ef6 --- /dev/null +++ b/dev-lang/tk/tk-8.4.19.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +WANT_AUTOCONF=latest +WANT_AUTOMAKE=latest + +inherit autotools eutils multilib toolchain-funcs + +DESCRIPTION="Tk Widget Set" +HOMEPAGE="http://dev.scriptics.com/software/tcltk/" +SRC_URI="mirror://sourceforge/tcl/${PN}${PV}-src.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="debug threads" + +RDEPEND="x11-libs/libX11 + ~dev-lang/tcl-${PV}" +DEPEND="${RDEPEND} + x11-libs/libXt + x11-proto/xproto" + +S=${WORKDIR}/${PN}${PV} + +pkg_setup() { + if use threads ; then + ewarn "" + ewarn "PLEASE NOTE: You are compiling ${P} with" + ewarn "threading enabled." + ewarn "Threading is not supported by all applications" + ewarn "that compile against tcl. You use threading at" + ewarn "your own discretion." + ewarn "" + epause 5 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/remove-control-v-8.4.9.diff + epatch "${FILESDIR}"/${PN}-8.4.9-man.patch + epatch "${FILESDIR}"/${PN}-8.4.11-multilib.patch + + # Bug 225999 + epatch "${FILESDIR}"/${PN}-8.4-lastevent.patch + + + # Bug 125971 + epatch "${FILESDIR}"/${PN}-8.4.15-tclm4-soname.patch + + local d + for d in */configure ; do + cd "${S}"/${d%%/*} + EPATCH_SINGLE_MSG="Patching nls cruft in ${d}" \ + epatch "${FILESDIR}"/tk-configure-LANG.patch + done + + cd "${S}"/unix + eautoreconf +} + +src_compile() { + tc-export CC + cd "${S}"/unix + + local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/} + + econf \ + --with-tcl=/usr/${mylibdir} \ + $(use_enable threads) \ + $(use_enable debug symbols) || die + + emake || die +} + +src_install() { + #short version number + local v1 + v1=${PV%.*} + + cd "${S}"/unix + make DESTDIR="${D}" install || die + + # fix the tkConfig.sh to eliminate refs to the build directory + local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/} + sed -i \ + -e "s,^\(TK_BUILD_LIB_SPEC='-L\)${S}/unix,\1/usr/${mylibdir}," \ + -e "s,^\(TK_SRC_DIR='\)${S}',\1/usr/${mylibdir}/tk${v1}/include'," \ + -e "s,^\(TK_BUILD_STUB_LIB_SPEC='-L\)${S}/unix,\1/usr/${mylibdir}," \ + -e "s,^\(TK_BUILD_STUB_LIB_PATH='\)${S}/unix,\1/usr/${mylibdir}," \ + -e "s,^\(TK_CC_SEARCH_FLAGS='.*\)',\1:/usr/${mylibdir}'," \ + -e "s,^\(TK_LD_SEARCH_FLAGS='.*\)',\1:/usr/${mylibdir}'," \ + "${D}"/usr/${mylibdir}/tkConfig.sh || die + + # install private headers + insinto /usr/${mylibdir}/tk${v1}/include/unix + doins "${S}"/unix/*.h || die + insinto /usr/${mylibdir}/tk${v1}/include/generic + doins "${S}"/generic/*.h || die + rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tk.h + rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tkDecls.h + rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tkPlatDecls.h + + # install symlink for libraries + #dosym libtk${v1}.a /usr/${mylibdir}/libtk.a + if use debug ; then + dosym libtk${v1}g.so /usr/${mylibdir}/libtk${v1}.so + dosym libtkstub${v1}g.a /usr/${mylibdir}/libtkstub${v1}.a + dosym ../tk${v1}g/pkgIndex.tcl /usr/${mylibdir}/tk${v1}/pkgIndex.tcl + fi + dosym libtk${v1}.so /usr/${mylibdir}/libtk.so + dosym libtkstub${v1}.a /usr/${mylibdir}/libtkstub.a + + dosym wish${v1} /usr/bin/wish + + cd "${S}" + dodoc ChangeLog README changes license.terms +} |