Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tk/tcl 8.3 ebuilds needed[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dtoo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 86

PostPosted: Fri May 30, 2008 6:52 am    Post subject: tk/tcl 8.3 ebuilds needed[SOLVED] Reply with quote

My users need version 8.3 of tk/tcl for their development but there are no ebuilds available in portage tree. Where to get those old ebuilds?

Last edited by dtoo on Sun Jun 01, 2008 8:36 am; edited 3 times in total
Back to top
View user's profile Send private message
button
n00b
n00b


Joined: 24 Dec 2007
Posts: 65
Location: Croatia

PostPosted: Fri May 30, 2008 7:47 am    Post subject: Reply with quote

tcl
tk
tcl-tk
Back to top
View user's profile Send private message
dtoo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 86

PostPosted: Fri May 30, 2008 7:47 am    Post subject: Reply with quote

OK. I found those ebuilds

http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/?hideattic=0

Thanks @button
Back to top
View user's profile Send private message
dtoo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 86

PostPosted: Fri May 30, 2008 8:42 am    Post subject: Reply with quote

I removed [solved] tag since I sill need ebuilds for overlay ebuilds of tk/tcl 8.3.5.

http://www.tcl.tk/software/tcltk/downloadnow83.tml
ftp://ftp.tcl.tk/pub/tcl/tcl8_3/

Any suggestions are welcome :)
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9221

PostPosted: Sat May 31, 2008 7:42 am    Post subject: Reply with quote

You could try modifying the ebuilds button linked to.
Back to top
View user's profile Send private message
dtoo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 86

PostPosted: Sun Jun 01, 2008 8:35 am    Post subject: Reply with quote

modified ebuilds for tcl/tk-8.3.5 emerges, thanks

tcl-8.3.5.ebuild
Code:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

IUSE="threads"
RESTRICT="nomirror"
S=${WORKDIR}/${PN}${PV}
SRC_URI="ftp://tcl.activestate.com/pub/tcl/tcl8_3/${PN}${PV}-src.tar.gz"
HOMEPAGE="http://www.tcl.tk/"

DESCRIPTION="Tool Command Language"

DEPEND="virtual/libc"

SLOT="0"
LICENSE="BSD"
KEYWORDS="~x86"

# hyper-optimizations untested...
#

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_compile() {

   local local_config_use=""

   if use threads
   then
      local_config_use="--enable-threads"
   fi

   cd ${S}/unix
   ./configure --host=${CHOST} \
            --prefix=/usr \
            --mandir=/usr/share/man \
            ${local_config_use} \
            || die

   emake CFLAGS="${CFLAGS}" || die

}

src_install() {

   #short version number
   local v1
   v1=${PV%.*}

   cd ${S}/unix
   make INSTALL_ROOT=${D} MAN_INSTALL_DIR=${D}/usr/share/man install || die

   # fix the tclConfig.sh to eliminate refs to the build directory
   sed -e "s,^TCL_BUILD_LIB_SPEC='-L${S}/unix,TCL_BUILD_LIB_SPEC='-L/usr/lib," \
      -e "s,^TCL_SRC_DIR='${S}',TCL_SRC_DIR='/usr/lib/tcl${v1}/include'," \
      -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L${S}/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
      -e "s,^TCL_BUILD_STUB_LIB_PATH='${S}/unix,TCL_BUILD_STUB_LIB_PATH='/usr/lib," \
      -e "s,^TCL_LIB_FILE='libtcl8.3..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl8.3\$\{TCL_DBGX\}.so\"," \
      ${D}/usr/lib/tclConfig.sh > ${D}/usr/lib/tclConfig.sh.new
   mv ${D}/usr/lib/tclConfig.sh.new ${D}/usr/lib/tclConfig.sh

   # install private headers
   dodir /usr/lib/tcl${v1}/include/unix
   install -c -m0644 ${S}/unix/*.h ${D}/usr/lib/tcl${v1}/include/unix
   dodir /usr/lib/tcl${v1}/include/generic
   install -c -m0644 ${S}/generic/*.h ${D}/usr/lib/tcl${v1}/include/generic
   rm -f ${D}/usr/lib/tcl${v1}/include/generic/tcl.h
   rm -f ${D}/usr/lib/tcl${v1}/include/generic/tclDecls.h
   rm -f ${D}/usr/lib/tcl${v1}/include/generic/tclPlatDecls.h

   # install symlink for libraries
   dosym /usr/lib/libtcl${v1}.so /usr/lib/libtcl.so
   dosym /usr/lib/libtclstub${v1}.a /usr/lib/libtclstub.a

   ln -sf tclsh${v1} ${D}/usr/bin/tclsh

   cd ${S}
   dodoc README changes license.terms

}


tk-8.3.5-r1.ebuild
Code:

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils
RESTRICT="nomirror"
IUSE="threads"

DESCRIPTION="Tk Widget Set"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="ftp://tcl.activestate.com/pub/tcl/tcl8_3/${PN}${PV}-src.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"

DEPEND=">=sys-apps/sed-4.0.5
   >=sys-apps/portage-2.0.47-r10
   =dev-lang/tcl-${PV}*
   || (
      ( x11-libs/libXt x11-proto/xproto )
      virtual/x11
   )"

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}/library
   epatch ${FILESDIR}/remove-control-v.diff
}

# hyper-optimizations untested...
#
src_compile() {
   cd ${S}/unix

   local local_config_use=""

   if use threads
   then
      local_config_use="--enable-threads"
   fi

   econf \
      --with-tcl=/usr/lib \
      ${local_config_use} || die

   emake CFLAGS="${CFLAGS}" || die
}

src_install() {
   #short version number
   local v1
   v1=${PV%.*}

   cd ${S}/unix
   make INSTALL_ROOT=${D} MAN_INSTALL_DIR=${D}/usr/share/man install || die

   # fix the tkConfig.sh to eliminate refs to the build directory
   sed -i \
      -e "s,^\(TK_BUILD_LIB_SPEC='-L\)${S}/unix,\1/usr/lib," \
      -e "s,^\(TK_SRC_DIR='\)${S}',\1/usr/lib/tk${v1}/include'," \
      -e "s,^\(TK_BUILD_STUB_LIB_SPEC='-L\)${S}/unix,\1/usr/lib," \
      -e "s,^\(TK_BUILD_STUB_LIB_PATH='\)${S}/unix,\1/usr/lib," \
      ${D}/usr/lib/tkConfig.sh

   # install private headers
   dodir /usr/lib/tk${v1}/include/unix
   install -c -m0644 ${S}/unix/*.h ${D}/usr/lib/tk${v1}/include/unix
   dodir /usr/lib/tk${v1}/include/generic
   install -c -m0644 ${S}/generic/*.h ${D}/usr/lib/tk${v1}/include/generic
   rm -f ${D}/usr/lib/tk${v1}/include/generic/tk.h
   rm -f ${D}/usr/lib/tk${v1}/include/generic/tkDecls.h
   rm -f ${D}/usr/lib/tk${v1}/include/generic/tkPlatDecls.h

   # install symlink for libraries
   #dosym /usr/lib/libtk${v1}.a /usr/lib/libtk.a
   dosym /usr/lib/libtk${v1}.so /usr/lib/libtk.so
   dosym /usr/lib/libtkstub${v1}.a /usr/lib/libtkstub.a

   ln -sf wish${v1} ${D}/usr/bin/wish

   cd ${S}
   dodoc README changes license.terms
}

Here is the system info
Code:

Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.6.1-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm) Processor
Timestamp of tree: Sun, 01 Jun 2008 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -pipe -Os"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon -pipe -Os"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.64hosting.com/pub/mirrors/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X bash-completion berkdb bzip2 cli cracklib crypt cups dri emacs fontconfig fortran gdbm gif gpm iconv imlib isdnlog jpeg midi mudflap ncurses nls nptl nptlonly openmp pam pcre pdf perl png ppds pppd python readline reflection session spell spl sqlite ssl svg tcl tcpd tk truetype unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="sis"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
ubiquitous1980
n00b
n00b


Joined: 05 Jun 2008
Posts: 2

PostPosted: Thu Jun 05, 2008 2:08 pm    Post subject: tcl/tk 8.5.2 is out but no ebuild. Reply with quote

Hey guys im a regular user of aMSN and the fonts are only really correctly rendered under tk 8.5 and above. However 8.5.1 has been masked due to a bug. Wondering if we are gonna move onto 8.5.2???
_________________
Support GNU/Linux by using open source/free software
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9221

PostPosted: Fri Jun 06, 2008 1:04 am    Post subject: Reply with quote

There is a bug open for adding version 8.5.2 to the tree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum