2020-07-18 21:34:44 +00:00
|
|
|
Class {
|
|
|
|
#name : #BaselineOfGrafoscopioUtils,
|
|
|
|
#superclass : #BaselineOf,
|
|
|
|
#category : #BaselineOfGrafoscopioUtils
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #baselines }
|
|
|
|
BaselineOfGrafoscopioUtils >> baseline: spec [
|
2020-07-18 21:49:11 +00:00
|
|
|
<baseline>
|
2020-07-18 21:34:44 +00:00
|
|
|
|
2020-07-18 21:49:11 +00:00
|
|
|
spec
|
|
|
|
for: #common
|
|
|
|
do: [
|
2020-10-24 02:40:33 +00:00
|
|
|
"Dependencies"
|
2020-10-24 15:50:53 +00:00
|
|
|
|
|
|
|
self fossil: spec.
|
2020-10-24 16:13:13 +00:00
|
|
|
spec baseline: 'PetitParser' with: [spec
|
2022-01-22 15:23:56 +00:00
|
|
|
repository: 'github://moosetechnology/PetitParser:v3.x.x/src';
|
2020-10-24 15:50:53 +00:00
|
|
|
loads: #('Minimal' 'Indent' 'YAML')].
|
2020-07-18 21:34:44 +00:00
|
|
|
|
2020-07-18 21:49:11 +00:00
|
|
|
"Packages"
|
2020-10-24 15:50:53 +00:00
|
|
|
spec package: 'Grafoscopio-Utils' with: [ spec requires: #('Fossil' 'PetitParser') ]
|
2020-07-18 21:49:11 +00:00
|
|
|
]
|
2020-07-18 21:34:44 +00:00
|
|
|
]
|
|
|
|
|
2022-02-07 13:35:32 +00:00
|
|
|
{ #category : #accessing }
|
2020-07-18 21:34:44 +00:00
|
|
|
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"
|
|
|
|
|
|
|
|
| location |
|
|
|
|
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'Fossil'.
|
2020-07-18 22:32:29 +00:00
|
|
|
location exists ifFalse: [
|
|
|
|
(IceRepositoryCreator new
|
|
|
|
location: location;
|
|
|
|
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/Fossil.git');
|
|
|
|
createRepository)
|
|
|
|
register
|
|
|
|
].
|
2020-07-18 21:34:44 +00:00
|
|
|
Metacello new
|
|
|
|
repository: 'gitlocal://', location fullName;
|
|
|
|
baseline: 'Fossil';
|
|
|
|
load.
|
2020-07-18 23:54:15 +00:00
|
|
|
spec baseline: 'Fossil' with: [ spec repository: 'gitlocal://', location fullName ]
|
2020-07-18 21:34:44 +00:00
|
|
|
]
|
2022-02-07 13:35:32 +00:00
|
|
|
|
|
|
|
{ #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']
|
|
|
|
]
|