GrafoscopioUtils/repository/BaselineOfGrafoscopioUtils/BaselineOfGrafoscopioUtils.class.st

51 lines
1.5 KiB
Smalltalk

Class {
#name : #BaselineOfGrafoscopioUtils,
#superclass : #BaselineOf,
#category : #BaselineOfGrafoscopioUtils
}
{ #category : #baselines }
BaselineOfGrafoscopioUtils >> baseline: spec [
<baseline>
spec
for: #common
do: [
"Dependencies"
self fossil: spec.
self xmlParserHTML: spec.
spec baseline: 'PetitParser' with: [spec
repository: 'github://moosetechnology/PetitParser:v3.x.x/src';
loads: #('Minimal' 'Indent' 'YAML')].
"Packages"
spec package: 'Grafoscopio-Utils' with: [ spec requires: #('Fossil' 'PetitParser' 'XMLParserHTML') ]
]
]
{ #category : #accessing }
BaselineOfGrafoscopioUtils >> fossil: spec [
"I load the configuration of Fossil using a external Gitea repository."
"While more Git independient providers are implemented in Monticello, I will use Iceberg
to download the repository and load it from a local directory"
| repo |
repo := ExoRepo new
repository: 'https://code.tupale.co/Offray/Fossil'.
repo load.
spec package: 'Fossil' with: [spec repository: 'gitlocal://', repo local fullName ]
]
{ #category : #accessing }
BaselineOfGrafoscopioUtils >> xmlParserHTML: spec [
Metacello new
baseline: 'XMLParserHTML';
repository: 'github://pharo-contributions/XML-XMLParserHTML/src';
onConflict: [ :ex | ex useLoaded ];
onUpgrade: [ :ex | ex useLoaded ];
onDowngrade: [ :ex | ex useLoaded ];
onWarningLog;
load.
spec baseline: 'XMLParserHTML' with: [spec repository: 'github://pharo-contributions/XML-XMLParserHTML/src']
]