Gentoo Archives: gentoo-perl

From: antoine.raillon@××××××.net
To: gentoo-perl@l.g.o
Subject: [gentoo-perl] r20 - / trunk
Date: Thu, 12 May 2005 21:57:44
Message-Id: 20050512215644.09EDA8280F2@gredin.dragou.net
1 Author: cab
2 Date: 2005-05-12 19:23:58 +0200 (Thu, 12 May 2005)
3 New Revision: 20
4
5 Added:
6 trunk/
7 trunk/Changes
8 trunk/TODO
9 trunk/code/
10 trunk/docs/
11 Removed:
12 Changes
13 TODO
14 code/
15 docs/
16 Log:
17 Reorg - part 1
18
19
20 Deleted: Changes
21 ===================================================================
22 --- Changes 2005-05-11 23:24:06 UTC (rev 19)
23 +++ Changes 2005-05-12 17:23:58 UTC (rev 20)
24 @@ -1,122 +0,0 @@
25 -11/05/2005 - mcummings makes weird changes
26 -
27 -- cleaned up calls to merge, added -p,-a,-n,-u flags to respective portions
28 -- Removed the "for (@ARGV) to the call for emerge*module subs - all this was doing was forcing us to call emerge multiple times; the actual subs weren't using @ARGV, but using @ebuild_list, which was already populated elsewhere with all of the modules we wanted plus their generated deps.
29 -- moved list function so that it was called *after* we define the list of dirs to check
30 -- added basename so program name was pretty (beu)
31 -- To explain my changes for that dir read -noticed when traversing for multiple files that the directory list checked was decreasing in size each pass until it was only checking one directory chain in the end. Pushing it all into a single array that's built temporarily, while ugly, seems to work. This was all due to a bug in modules like Bundle-W3C-Validator (go ahead and try with the old code). Sorry for the kludges, thanks snip for the regex help
32 -
33 -10/05/2005 - cab strikes g-cpan again.. :)
34 -
35 -- added comments here and there..
36 -- modified the cpan-config-needed if() test
37 -- modified switches interpretations
38 -- added -l,--list switch (nothing behind for now)
39 -- added a new sub : clean_the_mess, that should take care of system's sanity
40 -- changed my $arches
41 -- subbed the MD5 sum calculation
42 -- updated exit_usage()
43 -
44 -07/05/2005 - cab first strike !
45 -
46 -- Added search capabilities (same as m // command in CPAN Shell
47 - Use -s or --search switch to get it.
48 -
49 -- Now Using Getopt::Long to handle switches, options, and so on..
50 -
51 -- get_globals totally rewritten : now uses open/parse/close on make.conf,
52 - instead of 3 times qx() : performance boost guaranteed. Sets up default before
53 - overwriting them if needed and can replace variables like ${PORTDIR} if ever
54 - they are used in make.conf : quality improvement guaranteed. :p
55 - thx to Sniper (sniper@×××××××××.net) for the s// regexp !
56 -
57 -- Added a bit more explicative Usage message.. in fact a whole sub.
58 - Available with -h or --help switch but will also appear if user
59 - requires impossible or wrong things (plus a detailed error message
60 - on what when wrong).
61 -
62 -- Installing a module now requires the -i or --install switch, to differentiate
63 - from searching. Can be modified to become default 'no option' behaviour,
64 - but i'm not fan : searching as default would be far less dangerous. :)
65 -
66 -- Reorganised code, adding some comments, removing some useless others.
67 -
68 -- Had fun !
69 -#Copyright 1999-2004 Gentoo Foundation
70 -#Distributed under the terms of the GNU General Public License v2
71 -#$Header: /var/cvsroot/gentoo/users/mcummings/g-cpan/g-cpan-0.12/Changes,v 1.1 2005/04/30 21:44:15 mcummings Exp $
72 -
73 -History:
74 -
75 -04/30/05: mcummings@g.o
76 - Moving g-cpan into its own package space withing app-portage for better managability.
77 - Also, this breaks the tie to g-cpan fixes being reliant on the next release of portage.
78 -
79 -01/29/05: andrew-g@××××××××.uk:
80 - Improved filename/version matching to close bugs 64403 74149 69464 23951.
81 - Improved default help message. Added -v verbose flag.
82 -
83 -11/16/04: pete@×××××××××××.com:
84 - Fixed handling of CPAN modules that end in '.pm' (e.g. CGI.pm)
85 - Closes bug 64403.
86 -
87 -10/29/04: rac@g.o:
88 - attempt to recognize lowercased packages in dev-perl in portage_dir
89 -
90 -05/23/03: jrray@g.o:
91 - Skip modules the CPAN thinks are included with perl (closes bug 14679).
92 -
93 - Used the CPAN module to discover the real location of Makefile.PL to set
94 - the ${S} variable in the ebuild, sometimes the location isn't the same as
95 - ${P}.
96 -
97 - Don't assume the filename of the tarball will be ${P}.tar.gz, use the
98 - real filename out of CPAN.
99 -
100 - Some modules' filenames have underscores in unfortunate places. Change
101 - all of them to hyphens to avoid that mess.
102 -
103 -02/23/03: alain@g.o:
104 - removed portage direct-access code, and switched to using the
105 - portageq utility which hides the portage APIs.
106 -
107 -01/08/03: jrray@g.o:
108 - remove dependency on Digest::MD5
109 -
110 -01/07/03: jrray@g.o: getting the way subroutines are fed variables
111 - sorted out (they're in @_)
112 - Clean out module_check, unnecessary temp variables are evil.
113 - It isn't okay to skip a module if module_check succeeds when
114 - that module is listed as a dependency for a module we're trying
115 - to install, the subsequent emerge can fail if the ebuild doesn't
116 - exist. So only skip a module if it is a first order module from
117 - the command line but not if it is being considered to meet a
118 - dependency.
119 - Use the portage python module to learn some configuration values
120 - instead of trying to parse make.conf.
121 - Need to use system and not exec when calling out to emerge, exec
122 - ends our process!
123 -
124 -12/09/02: baz@×××××××××.com: some further amends:
125 - standardised code, declared external vars early,
126 - amended layout and sub styles for consistency and brevity,
127 - also removed a 'spare' function :-)
128 -
129 -12/07/02: mcummings: Reviewed baz's comments (thanks!). Moved the make.conf check to an external
130 - sub so that we could grab other important functions. Added Digest::MD5 so that we could
131 - check the checksum more cleanly instead of making a system call.
132 - Thanks to stocke2 for pointing me in the direction of File::Path -
133 - and helping me debug silly michael coding with rmtree
134 -
135 -12/07/02: baz@×××××××××.com:
136 - comments added, basically a very picky code review.
137 -
138 -12/06/02: mcummings;
139 - Added emerge functionality. Now emerges modules on the
140 - fly
141 -
142 -12/03/02: mcummings;
143 - Added checks for /var/db/pkg and manually installed
144 - modules
145 -
146 -11/07/02: jrray : Initial upload to bug 3450
147
148 Deleted: TODO
149 ===================================================================
150 --- TODO 2005-05-11 23:24:06 UTC (rev 19)
151 +++ TODO 2005-05-12 17:23:58 UTC (rev 20)
152 @@ -1,7 +0,0 @@
153 -- Heavy testing !
154 -- Some work on the overlays - possibility to use ~/.cpan
155 -- clean_the_mess / clean_up to improve/merge
156 -- big portions of upgrade_module and install_module are the same code
157 -- check for multiple emerge
158 -- Add verbosity messages
159 -- Clean the code.. which prog doesn't need this ? :p
160
161 Copied: trunk/Changes (from rev 19, Changes)
162
163 Copied: trunk/TODO (from rev 19, TODO)
164
165 Copied: trunk/code (from rev 19, code)
166
167 Copied: trunk/docs (from rev 19, docs)
168
169
170 --
171 gentoo-perl@g.o mailing list