Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60263

Summary: Support to the "tcltk" use flag in the wordnet ebuild
Product: Gentoo Linux Reporter: Gustavo M. Gama <gama>
Component: New packagesAssignee: Spell checking utilities and dictionaries -- related bugs (OBSOLETE) <app-dicts+disabled>
Status: RESOLVED INVALID    
Severity: enhancement CC: hattya, kazennikov
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: wordnet-2.0.ebuild.diff

Description Gustavo M. Gama 2004-08-13 13:06:49 UTC
The current wordnet ebuild depends on TCL/TK packages. However, I believe it should be optionally compiled with such support by means of the "tcltk" use flag, since WordNet is perfectly usable through its command line interface and API.

Reproducible: Always
Steps to Reproduce:
1. emerge app-dicts/wordnet

Actual Results:  
The TCL/TK were installed, inspite of my "-tcltk" USE flag.

Expected Results:  
Not installed TCL/TK if the USE flags specified not to.

I've modified the current ebuild using the patch below. It worked for me, though
I'm not sure it follows Gentoo guidelines.
------------- 8< --------------
--- wordnet-2.0-r1.patched.ebuild  2004-08-13 17:03:07.000000000 -0300
+++ wordnet-2.0-r1.ebuild       2004-08-13 17:03:41.000000000 -0300
@@ -7,14 +7,10 @@
 DESCRIPTION="WordNet : a lexical database for the English language"
 HOMEPAGE="http://www.cogsci.princeton.edu/~wn/"
 SRC_URI="ftp://ftp.cogsci.princeton.edu/pub/wordnet/${PV}/WordNet-${PV}.tar.gz"
-IUSE="tcltk"
-DEPEND="tcltk?
-           (
-              dev-lang/tcl
-              dev-lang/tk
-           )"
+DEPEND="tcl tk"
 LICENSE="Princeton"
 SLOT="0"
+IUSE=""
 KEYWORDS="~x86 ~ppc"
 S=${WORKDIR}/WordNet-${PV}
Comment 1 Akinori Hattori gentoo-dev 2004-10-05 06:21:39 UTC
Created attachment 41142 [details, diff]
wordnet-2.0.ebuild.diff

This is more simple one. (dev-lang/tk depends on dev-lang/tcl)
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-05 11:05:06 UTC
INSTALL snip:

4. Compiling the WordNet Source Code

This version of the WordNet window-based browser is written in Tcl/Tk.
If you want to compile the browser on your system, you must have the
Tcl/TK 8 libraries installed on your system.  Read the file
README.tcltk for information about Tcl/Tk.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-15 03:58:09 UTC
*** Bug 130022 has been marked as a duplicate of this bug. ***