Skip to content

Commit

Permalink
Update for Pharo 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Morales Durand committed Nov 5, 2023
1 parent 9d8f4bc commit e540703
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 50 deletions.
122 changes: 73 additions & 49 deletions repository/BaselineOfBioSmalltalk/BaselineOfBioSmalltalk.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ BioSmalltalk contains:
- Tools, for creating custom views of objects using inspectors, explorers or browsers.
"
Class {
#name : #BaselineOfBioSmalltalk,
#superclass : #BaselineOf,
#category : #BaselineOfBioSmalltalk
#name : 'BaselineOfBioSmalltalk',
#superclass : 'BaselineOf',
#category : 'BaselineOfBioSmalltalk',
#package : 'BaselineOfBioSmalltalk'
}

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baseline: spec [
<baseline>

Expand Down Expand Up @@ -48,7 +49,7 @@ BaselineOfBioSmalltalk >> baseline: spec [

]

{ #category : #groups }
{ #category : 'groups' }
BaselineOfBioSmalltalk >> baselineAllGroup: spec [

spec
Expand All @@ -60,7 +61,7 @@ BaselineOfBioSmalltalk >> baselineAllGroup: spec [
" 'Projects' ")
]

{ #category : #groups }
{ #category : 'groups' }
BaselineOfBioSmalltalk >> baselineBasicGroup: spec [

spec
Expand All @@ -74,7 +75,7 @@ BaselineOfBioSmalltalk >> baselineBasicGroup: spec [
'BioFormatters')
]

{ #category : #groups }
{ #category : 'groups' }
BaselineOfBioSmalltalk >> baselineCoreGroup: spec [

spec
Expand All @@ -94,7 +95,7 @@ BaselineOfBioSmalltalk >> baselineCoreGroup: spec [
'BioPlots' )
]

{ #category : #groups }
{ #category : 'groups' }
BaselineOfBioSmalltalk >> baselineGroups: spec [

self baselineCoreGroup: spec.
Expand All @@ -106,7 +107,7 @@ BaselineOfBioSmalltalk >> baselineGroups: spec [
spec group: 'default' with: #('All').
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baselineOSDeps: spec [

spec
Expand All @@ -122,7 +123,7 @@ BaselineOfBioSmalltalk >> baselineOSDeps: spec [
spec package: 'BioWrappers' with: [ spec requires: #('ProcessWrapper') ] ].
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baselinePackages: spec [

spec
Expand Down Expand Up @@ -166,33 +167,32 @@ BaselineOfBioSmalltalk >> baselinePackages: spec [

]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baselinePharo: spec [

spec for: #(#'pharo4.x' #'pharo5.x' #'pharo6.x') do: [
spec for: #( #'pharo4.x' #'pharo5.x' #'pharo6.x' ) do: [
self projectSpecForXMLPharo7: spec.
spec
package: 'BioTools' with: [ spec includes: #('BioPharo4') ];
package: 'BioPharo4' with: [ spec requires: #('BioTools') ];
group: 'Basic' with: #('BioPharo4') ].
spec
package: 'BioTools' with: [ spec includes: #( 'BioPharo4' ) ];
package: 'BioPharo4' with: [ spec requires: #( 'BioTools' ) ];
group: 'Basic' with: #( 'BioPharo4' ) ].

spec for: #'pharo7.x' do: [
spec for: #'pharo7.x' do: [
self projectSpecForXMLPharo7: spec.
spec
package: 'BioTools' with: [ spec includes: #('BioPharo7') ];
package: 'BioPharo7' with: [ spec requires: #('BioTools' 'FileDialog') ];
group: 'Basic' with: #('BioPharo7') ].
self commonPackagesForPharo7onWards: spec ].

spec for: #(#'pharo8.x' #'pharo9.x' #'pharo10.x' #'pharo11.x' #'pharo12.x') do: [
self projectSpecForXMLPharo8: spec.
spec
package: 'BioTools' with: [ spec includes: #('BioPharo7') ];
package: 'BioPharo7' with: [ spec requires: #('BioTools' 'FileDialog') ];
group: 'Basic' with: #('BioPharo7') ].
spec
for: #( #'pharo8.x' #'pharo9.x' #'pharo10.x' #'pharo11.x' )
do: [
self projectSpecForXMLPharo8: spec.
self commonPackagesForPharo7onWards: spec ].

spec for: #( #'pharo12.x' ) do: [
self projectSpecForXMLPharo12: spec.
self commonPackagesForPharo7onWards: spec ]
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baselinePopGenGroup: spec [

spec
Expand All @@ -205,7 +205,7 @@ BaselineOfBioSmalltalk >> baselinePopGenGroup: spec [
'BioLAMPLD')
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baselineProjectsGroup: spec [

spec
Expand All @@ -216,7 +216,7 @@ BaselineOfBioSmalltalk >> baselineProjectsGroup: spec [
'BioSoftwareCatalog')
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> baselineTestsGroup: spec [

spec
Expand All @@ -237,14 +237,24 @@ BaselineOfBioSmalltalk >> baselineTestsGroup: spec [
'BioArlequin-Tests' )
]

{ #category : #accessing }
{ #category : 'baselines' }
BaselineOfBioSmalltalk >> commonPackagesForPharo7onWards: spec [

^ spec
package: 'BioTools' with: [ spec includes: #( 'BioPharo7' ) ];
package: 'BioPharo7'
with: [ spec requires: #( 'BioTools' 'FileDialog' ) ];
group: 'Basic' with: #( 'BioPharo7' )
]

{ #category : 'accessing' }
BaselineOfBioSmalltalk >> customProjectAttributes [
Smalltalk os isMacOS ifTrue: [ ^ #(#MacOS) ].
Smalltalk os isUnix ifTrue: [ ^ #(#Unix) ].
Smalltalk os isWindows ifTrue: [ ^ #(#Windows) ]
]

{ #category : #doits }
{ #category : 'doits' }
BaselineOfBioSmalltalk >> ensureMetacelloFileDownload [

Metacello new
Expand All @@ -253,7 +263,7 @@ BaselineOfBioSmalltalk >> ensureMetacelloFileDownload [
load.
]

{ #category : #doits }
{ #category : 'doits' }
BaselineOfBioSmalltalk >> platformFilesUrl [
" Private - See superimplementor's comment "

Expand All @@ -267,31 +277,31 @@ BaselineOfBioSmalltalk >> platformFilesUrl [

]

{ #category : #doits }
{ #category : 'doits' }
BaselineOfBioSmalltalk >> postLoad [
" Private - If Pharo >=7 set the FileDialog package as default "

(Smalltalk hasClassNamed: #FDMorphicUIManager) ifTrue: [
(Smalltalk at: #FDMorphicUIManager) new beDefault ].
]

{ #category : #doits }
{ #category : 'doits' }
BaselineOfBioSmalltalk >> preLoad [
" Private - See superimplementor's comment "

self ensureMetacelloFileDownload.
super preLoad.
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForCommonUtils: spec [

spec
baseline: 'CommonUtils'
with: [ spec repository: 'github://hernanmd/CommonUtils/repository' ]
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForDataDrameInspector: spec [

spec
Expand All @@ -300,23 +310,23 @@ BaselineOfBioSmalltalk >> projectSpecForDataDrameInspector: spec [

]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForDataFrame: spec [

spec
baseline: 'DataFrame'
with: [ spec repository: 'github://PolyMathOrg/DataFrame/src' ].
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForFileDialog: spec [

spec
baseline: 'FileDialog'
with: [ spec repository: 'github://hernanmd/file-dialog/repository' ]
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForINIParser: spec [

spec
Expand All @@ -325,7 +335,7 @@ BaselineOfBioSmalltalk >> projectSpecForINIParser: spec [

]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForOsSubprocess: spec [

spec
Expand All @@ -334,7 +344,7 @@ BaselineOfBioSmalltalk >> projectSpecForOsSubprocess: spec [

]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForPetitParser: spec [

spec
Expand All @@ -343,7 +353,7 @@ BaselineOfBioSmalltalk >> projectSpecForPetitParser: spec [

]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForPolyMath: spec [

spec
Expand All @@ -353,7 +363,7 @@ BaselineOfBioSmalltalk >> projectSpecForPolyMath: spec [
loads: #('Core' 'Extensions' 'Accuracy') ].
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForProcessWrapper: spec [

spec
Expand All @@ -362,15 +372,15 @@ BaselineOfBioSmalltalk >> projectSpecForProcessWrapper: spec [

]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForProjectFramework: spec [

spec
baseline: 'ProjectFramework'
with: [ spec repository: 'github://hernanmd/ProjectFramework/repository' ]
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForRoassal2: spec [

spec
Expand All @@ -379,15 +389,29 @@ BaselineOfBioSmalltalk >> projectSpecForRoassal2: spec [

]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForStringExtensions: spec [

spec
baseline: 'StringExtensions'
with: [ spec repository: 'github://hernanmd/StringExtensions/repository' ]
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForXMLPharo12: spec [

spec
baseline: 'XMLParser'
with: [
spec
repository: 'github://pharo-contributions/XML-XMLParser/src';
loads: 'Core' ].
spec
baseline: 'XML-XMLPullParser'
with: [ spec repository: 'github://pharo-contributions/XML-XMLPullParser/repository' ].
]

{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForXMLPharo7: spec [

spec
Expand All @@ -404,7 +428,7 @@ BaselineOfBioSmalltalk >> projectSpecForXMLPharo7: spec [
repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo50/main/' ]
]

{ #category : #specs }
{ #category : 'specs' }
BaselineOfBioSmalltalk >> projectSpecForXMLPharo8: spec [

spec
Expand Down
2 changes: 1 addition & 1 deletion repository/BaselineOfBioSmalltalk/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #BaselineOfBioSmalltalk }
Package { #name : 'BaselineOfBioSmalltalk' }

0 comments on commit e540703

Please sign in to comment.