annotate nt/installer/Wise/packages.py @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
1 #configuration variables
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
3 #package categories
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
4 category_names = ["libs", "comm", "oa", "os", "prog", "wp", "games"]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
6 category_descriptions = {"libs":"Libraries",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
7 "comm":"Communication",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
8 "oa": "Productivity", #???
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
9 "os": "Operating System",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
10 "prog": "Programming",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
11 "wp": "Word Processing",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
12 "games": "Games and Amusements"}
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
13
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
14
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
15 #packages to install by default
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
16 default=["xemacs-base","edit-utils","efs",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
17 "text-modes","prog-modes",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
18 "dired","apel",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
19 "c-support","cc-mode",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
20 "mail-lib","pc","sounds-wav"]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
21
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
22 def category_of_letter(x):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
23 return category_names[ord(x)-ord('A')]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
24
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
25 def letter_of_category(cat):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
26 return chr(ord('A')+category_names.index(cat))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
27
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
28 def letter_of_package(x):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
29 return chr(ord('A')+packages_of_category(category_of_package(x)).index(x))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
30
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
31 import dirs, os
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
32 catpkg = {}
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
33 pkgcat = {}
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
34
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
35 for cat in category_names:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
36 pkgcat[cat]=[]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
37 dd = os.path.join(dirs.pkg_src,cat)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
38 for d in os.listdir(dd):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
39 if d == "CVS":
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
40 continue
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
41 manifest = dirs.packages + "\\pkginfo\\MANIFEST." + d
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
42 if not os.path.exists(manifest): #it's not installed, skip it
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
43 continue
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
44 if os.path.isdir(os.path.join(dd,d)):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
45 catpkg[d] = cat
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
46 pkgcat[cat].append(d)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
47
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
48 def category_of_package(p):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
49 return catpkg[p]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
50
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
51 def packages_of_category(c):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
52 return pkgcat[c]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
53
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
54 #Brief descriptions of the packages.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
55 #This data is up-to-date as of 13 January 1998.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
56 package_descriptions={
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
57 "Sun":"Support for Sparcworks.",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
58 "apel":"A Portable Emacs Library",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
59 "edebug":"A Lisp debugger",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
60 "dired":"The DIRectory EDitor",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
61 "efs":"Access remote filesystems",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
62 "mail-lib":"Fundamental email support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
63 "tooltalk":"Tooltalk",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
64 "xemacs-base":"Fundamental XEmacs support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
65 "xemacs-devel":"Lisp developer support.",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
66 "footnote":"Footnoting in mail messages",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
67 "gnats":"XEmacs bug reports",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
68 "gnus":"Newsreader and Mailreader",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
69 "mailcrypt":"Message encryption with PGP.",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
70 "mh-e":"Support for MH mailreader",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
71 "net-utils":"Networking Utilities",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
72 "ph":"CCSO/qi directory client",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
73 "rmail":"An obsolete Emacs mailer",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
74 "supercite":"Mail/News Citation tool",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
75 "tm":"Emacs MIME support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
76 "vm":"An Emacs mailer",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
77 "w3":"A Web browser",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
78 "cookie":"Spook and Yow (Zippy quotes)",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
79 "games":"Tetris, Sokoban, and Snake",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
80 "mine":"Minehunt",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
81 "misc-games":"Other amusements and diversions",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
82 "egg-its":"Wnn(4.2 and 6)/SJ3 support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
83 "leim":"Quail",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
84 "locale":"Localized menubars",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
85 "mule-base":"Basic Mule support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
86 "skk":"Another Japanese Language Input Method",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
87 "calendar":"Calendar and diary",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
88 "edit-utils":"Various XEmacs goodies",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
89 "forms":"Obsolete forms editing support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
90 "frame-icon":"Change icon based on mode",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
91 "hm--html-menus":"HTML editing",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
92 "ispell":"Spell-checking with ispell",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
93 "pc":"PC style interface emulation",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
94 "psgml":"Validated HTML/SGML editing",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
95 "sgml":"SGML/Linuxdoc-SGML editing",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
96 "slider":"User interface tool",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
97 "speedbar":"??? Document me.",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
98 "strokes":"Mouse enhancement utility",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
99 "text-modes":"Packages for editing text files",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
100 "time":"Display time and date",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
101 "eterm":"Terminal emulator",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
102 "igrep":"Enhanced Grep",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
103 "ilisp":"Front-end for Inferior Lisp",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
104 "os-utils":"Misc. OS utilities",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
105 "view-process":"Unix process viewer",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
106 "ada":"Ada language support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
107 "c-support":"Add-ons for editing C code",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
108 "cc-mode":"C, C++ and Java language editing",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
109 "debug": "GUD, gdb, dbx debugging support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
110 "ediff": "Compare files",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
111 "emerge": "Merge files",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
112 "pcl-cvs":"CVS frontend.",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
113 "prog-modes":"Various programming languages",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
114 "scheme":"Front-end for Inferior Scheme",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
115 "sh-script":"Support for editing shell scripts",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
116 "vc":"Version Control",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
117 "vc-cc":"Broken",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
118 "vhdl":"Support for VHDL",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
119 "auctex":"Basic TeX/LaTeX support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
120 "crisp":"Crisp/Brief emulation",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
121 "edt":"DEC EDIT/EDT emulation",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
122 "texinfo":"XEmacs TeXinfo support.",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
123 "textools":"TeX support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
124 "tpu":"DEC EDIT/TPU support",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
125 "viper":"VI emulation",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
126 "elib":"Portable elisp utility library",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
127 "fsf-compat": "FSF Emacs compatibility files",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
128 "sounds-wav": "XEmacs Microsoft sound files",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
129 "bbdb": "The Big Brother Data Base",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
130 "eudc": "Emacs Unified Directory Client",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
131 "mew": "Messaging in an Emacs World",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
132 "zenirc": "IRC client",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
133 "calc": "Emacs calculator",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
134 "jde": "Java development environment",
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
135 "reftex": "LaTeX cross-referencing and citations"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
136 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
137
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
138
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
139
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
140