author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 19 Sep 2012 01:38:26 +0000 | |
changeset 20 | 8caf2f257260 |
parent 11 | d354ac2af7ec |
permissions | -rw-r--r-- |
1 | 1 |
"{ Package: 'stx:goodies/metacello' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_goodies_metacello |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'* Projects & Packages *' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!stx_goodies_metacello class methodsFor:'description'! |
|
12 |
||
13 |
excludedFromPreRequisites |
|
14 |
"list all packages which should be ignored in the automatic |
|
15 |
preRequisites scan. See #preRequisites for more." |
|
16 |
||
17 |
^ #( |
|
18 |
) |
|
19 |
! |
|
20 |
||
21 |
preRequisites |
|
22 |
"list all required packages. |
|
23 |
This list can be maintained manually or (better) generated and |
|
24 |
updated by scanning the superclass hierarchies and looking for |
|
25 |
global variable accesses. (the browser has a menu function for that) |
|
26 |
Howevery, often too much is found, and you may want to explicitely |
|
27 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
28 |
||
29 |
^ #( |
|
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
30 |
#'stx:goodies/metacello/base' |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
31 |
#'stx:goodies/metacello/core' |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
32 |
#'stx:goodies/metacello/stx' |
1 | 33 |
#'stx:libbasic' "ProjectDefinition - superclass of stx_goodies_metacello " |
34 |
) |
|
35 |
! ! |
|
36 |
||
37 |
!stx_goodies_metacello class methodsFor:'description - contents'! |
|
38 |
||
39 |
classNamesAndAttributes |
|
40 |
"lists the classes which are to be included in the project. |
|
41 |
Each entry in the list may be: a single class-name (symbol), |
|
42 |
or an array-literal consisting of class name and attributes. |
|
43 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
44 |
||
45 |
^ #( |
|
46 |
"<className> or (<className> attributes...) in load order" |
|
47 |
#'stx_goodies_metacello' |
|
48 |
) |
|
49 |
! |
|
50 |
||
51 |
extensionMethodNames |
|
52 |
"lists the extension methods which are to be included in the project. |
|
53 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
54 |
||
55 |
^ #( |
|
56 |
) |
|
57 |
! ! |
|
58 |
||
59 |
!stx_goodies_metacello class methodsFor:'description - project information'! |
|
60 |
||
61 |
applicationIconFileName |
|
62 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
63 |
||
64 |
^ nil |
|
65 |
"/ ^ self applicationName |
|
66 |
! |
|
67 |
||
68 |
companyName |
|
69 |
"Return a companyname which will appear in <lib>.rc" |
|
70 |
||
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
71 |
^ 'Dale Henrichs & Jan Vrany' |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
72 |
|
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
73 |
"Modified: / 10-09-2012 / 22:14:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 74 |
! |
75 |
||
76 |
description |
|
77 |
"Return a description string which will appear in vc.def / bc.def" |
|
78 |
||
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
79 |
^ 'Metacello -- a Smalltalk project configuration management tool' |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
80 |
|
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
81 |
"Modified: / 10-09-2012 / 22:15:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 82 |
! |
83 |
||
84 |
legalCopyright |
|
85 |
"Return a copyright string which will appear in <lib>.rc" |
|
86 |
||
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
87 |
^ 'Copyright Dale Henrichs 2008-2012\nCopyright Jan Vrany 2012 (port & Smalltalk/X specific code)' |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
88 |
|
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
89 |
"Modified: / 10-09-2012 / 22:16:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 90 |
! |
91 |
||
92 |
productInstallDirBaseName |
|
93 |
"Returns a default installDir which will appear in <app>.nsi. |
|
94 |
This is usually not the one you want to keep" |
|
95 |
||
96 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
97 |
! |
|
98 |
||
99 |
productName |
|
100 |
"Return a product name which will appear in <lib>.rc" |
|
101 |
||
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
102 |
^ 'Metacello' |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
103 |
|
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
104 |
"Modified: / 10-09-2012 / 22:16:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 105 |
! ! |
106 |
||
107 |
!stx_goodies_metacello class methodsFor:'description - svn'! |
|
108 |
||
109 |
svnRepositoryUrlString |
|
110 |
"Return a SVN repository URL of myself. |
|
111 |
(Generated since 2011-04-08) |
|
112 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
|
113 |
" |
|
114 |
||
115 |
^ '$URL:: $' |
|
116 |
! |
|
117 |
||
118 |
svnRevisionNr |
|
119 |
"Return a SVN revision number of myself. |
|
120 |
This number is updated after a commit" |
|
121 |
||
8 | 122 |
^ "$SVN-Revision:"'6 '"$" |
1 | 123 |
! ! |
124 |
||
125 |
!stx_goodies_metacello class methodsFor:'documentation'! |
|
126 |
||
127 |
version_SVN |
|
128 |
^ '$Id:: $' |
|
129 |
! ! |