Skip to content

Commit

Permalink
Merge pull request #9 from cgay/new-catalog-format
Browse files Browse the repository at this point in the history
New catalog format, dubbed v1
  • Loading branch information
cgay authored Feb 11, 2022
2 parents d10cdc8 + ac9a167 commit 1825254
Show file tree
Hide file tree
Showing 47 changed files with 716 additions and 21 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ This repository is a set of package definitions for the Dylan programming langua
data is used by the [pacman](https://github.com/dylan-lang/pacman) library to install
Dylan packages and their dependencies.

If you would like to add a new library to the catalog just send a pull request. In order
to test your change, set the `DYLAN_CATALOG` shell variable to the pathname of your local
catalog and then build and run the `pacman-catalog-test-suite` library to verify that the
catalog parses correctly.
If you would like to add a new library to the catalog just send a pull
request. In order to test your change, set the `DYLAN_CATALOG` shell variable
to the directory containing your checkout of this repo and then build and run
the `pacman-catalog-test-suite` library to verify that the catalog parses
correctly and all dependencies can be resolved.

```shell
$ DYLAN_CATALOG=pacman-catalog/tests/catalog.json _build/bin/pacman-catalog-test-suite
$ DYLAN_CATALOG=pacman-catalog/ _build/bin/pacman-catalog-test-suite
```

You're changes will not be "live" until a new release of this repository is created on
Expand Down
11 changes: 7 additions & 4 deletions pkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"category": "development tools",
"contact": "[email protected]",
"deps": [ "[email protected]" ],
"description": "Dylan package manager catalog -- descriptors for all known Dylan packages.",
"keywords": ["package"],
"name": "pacman-catalog",
"deps": [
"[email protected]",
],
"location": "https://github.com/dylan-lang/pacman-catalog"
"version": "0.3.0",
"url": "https://github.com/dylan-lang/pacman-catalog"
}
5 changes: 4 additions & 1 deletion tests/library.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ end;

define module pacman-catalog-test-suite
use common-dylan;
use pacman, prefix: "pm/";
use pacman,
import: { catalog, load-all-packages };
use %pacman,
import: { validate-catalog };
use testworks;
end;
17 changes: 6 additions & 11 deletions tests/test-suite.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
Module: pacman-catalog-test-suite

// For now just make sure the catalog loads...

define test load-catalog-test ()
assert-no-errors(pm/load-catalog());
end;

define suite pacman-catalog-suite ()
test load-catalog-test;
define test test-validate-catalog ()
assert-no-errors(validate-catalog(catalog()));
let packages = load-all-packages(catalog());
test-output("loaded %d packages from catalog\n", packages.size);
assert-true(packages.size > 0);
end;

begin
run-test-application(pacman-catalog-suite);
end;
run-test-application();
13 changes: 13 additions & 0 deletions v1/an/ap/anaphora
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "utilities",
"contact": "[email protected]",
"description": "Anaphoric constructs",
"keywords": [],
"name": "anaphora",
"releases": [{
"deps": [],
"license": "None",
"url": "https://github.com/dylan-lang/anaphora",
"version": "0.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/at/om/atom-language-dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "editor support",
"contact": "[email protected]",
"description": "Dylan language support for the Atom editor",
"keywords": [],
"name": "atom-language-dylan",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/atom-language-dylan",
"version": "0.7.3"
}]
}
13 changes: 13 additions & 0 deletions v1/ba/se/base64
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "encoding",
"contact": "[email protected]",
"description": "Base64 encoding",
"keywords": [],
"name": "base64",
"releases": [{
"deps": [],
"license": "Public Domain",
"url": "https://github.com/dylan-lang/base64",
"version": "0.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/bi/na/binary-data
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "parsers",
"contact": "[email protected]",
"description": "A DSL for parsing and assembling binary data",
"keywords": [],
"name": "binary-data",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/binary-data",
"version": "0.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/co/ll/collection-extensions
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "utilities",
"contact": "[email protected]",
"description": "Collection library",
"keywords": [],
"name": "collection-extensions",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/collection-extensions",
"version": "0.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/co/mm/command-interface
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "utilities",
"contact": "[email protected]",
"description": "Interactive command interface system",
"keywords": [],
"name": "command-interface",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/command-interface",
"version": "0.1.0"
}]
}
28 changes: 28 additions & 0 deletions v1/co/mm/command-line-parser
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"category": "utilities",
"contact": "[email protected]",
"description": "Command line processing",
"keywords": ["cli", "flags"],
"name": "command-line-parser",
"releases": [{
"deps": ["[email protected]"],
"license": "opendylan license",
"url": "https://github.com/dylan-lang/command-line-parser",
"version": "1.0.0"
}, {
"deps": ["[email protected]"],
"license": "opendylan license",
"url": "https://github.com/dylan-lang/command-line-parser",
"version": "2.0.0"
}, {
"deps": ["[email protected]"],
"license": "opendylan license",
"url": "https://github.com/dylan-lang/command-line-parser",
"version": "3.0.0"
}, {
"deps": ["[email protected]"],
"license": "opendylan license",
"url": "https://github.com/dylan-lang/command-line-parser",
"version": "3.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/co/nc/concurrency
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "utilities",
"contact": "[email protected]",
"description": "Concurrency utilities",
"keywords": [],
"name": "concurrency",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-foundry/concurrency",
"version": "0.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/dy/la/dylan-emacs-support
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "editor support",
"contact": "[email protected]",
"description": "Emacs mode for indenting and highlighting Dylan code",
"keywords": [],
"name": "dylan-emacs-support",
"releases": [{
"deps": [],
"license": "GPL",
"url": "https://github.com/dylan-lang/dylan-emacs-support",
"version": "0.1.0"
}]
}
24 changes: 24 additions & 0 deletions v1/dy/la/dylan-tool
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"category": "language-tools",
"contact": "[email protected]",
"description": "Manage Dylan workspaces, packages, and registries",
"keywords": ["workspace", "package"],
"name": "dylan-tool",
"releases": [{
"deps": ["[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]"],
"license": "MIT",
"url": "https://github.com/dylan-lang/dylan-tool",
"version": "0.2.0"
}, {
"deps": ["[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]", "[email protected]",
"[email protected]", "[email protected]"],
"license": "MIT",
"url": "https://github.com/dylan-lang/dylan-tool",
"version": "0.3.0"
}]
}
13 changes: 13 additions & 0 deletions v1/ha/sh/hash-algorithms
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "cryptography",
"contact": "[email protected]",
"description": "Cryptographic hash functions",
"keywords": [],
"name": "hash-algorithms",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/hash-algorithms",
"version": "1.0.0"
}]
}
43 changes: 43 additions & 0 deletions v1/ht/tp/http
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"category": "network",
"contact": "[email protected]",
"description": "HTTP server and client",
"keywords": [],
"name": "http",
"releases": [{
"deps": ["base64", "concurrency", "logging", "meta", "mime",
"serialization", "sphinx-extensions",
"uncommon-dylan", "uri", "xml-parser"],
"license": "MIT",
"url": "https://github.com/dylan-lang/http",
"version": "0.1.0"
}, {
"deps": ["base64", "concurrency", "logging", "meta", "mime",
"serialization", "sphinx-extensions",
"uncommon-dylan", "uri", "xml-parser"],
"license": "MIT",
"url": "https://github.com/dylan-lang/http",
"version": "0.1.1"
}, {
"deps": ["[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]"],
"license": "MIT",
"url": "https://github.com/dylan-lang/http",
"version": "1.0.0"
}, {
"deps": ["[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]"],
"license": "MIT",
"url": "https://github.com/dylan-lang/http",
"version": "1.0.1"
}, {
"deps": ["[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]"],
"license": "MIT",
"url": "https://github.com/dylan-lang/http",
"version": "1.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/js/on/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "parsers",
"contact": "[email protected]",
"description": "parse and write JSON data format",
"keywords": ["workspace", "package"],
"name": "json",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/json",
"version": "1.0.0"
}]
}
13 changes: 13 additions & 0 deletions v1/li/sp/lisp-to-dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "development tools",
"contact": "[email protected]",
"description": "Convert Common Lisp code to Dylan",
"keywords": [],
"name": "lisp-to-dylan",
"releases": [{
"deps": [],
"license": "unknown",
"url": "https://github.com/dylan-lang/lisp-to-dylan",
"version": "0.1.0"
}]
}
33 changes: 33 additions & 0 deletions v1/lo/gg/logging
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"category": "utilities",
"contact": "[email protected]",
"description": "Logging library",
"keywords": [],
"name": "logging",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/logging",
"version": "1.0.0"
}, {
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/logging",
"version": "1.0.1"
}, {
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/logging",
"version": "2.0.0"
}, {
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/logging",
"version": "2.0.1"
}, {
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/logging",
"version": "2.1.0"
}]
}
14 changes: 14 additions & 0 deletions v1/ls/p-/lsp-dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category": "development tools",
"contact": "[email protected]",
"description": "Language Server Protocol",
"keywords": ["lsp"],
"name": "lsp-dylan",
"releases": [{
"deps": ["[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]"],
"license": "MIT",
"url": "https://github.com/dylan-lang/lsp-dylan",
"version": "0.1.0"
}]
}
13 changes: 13 additions & 0 deletions v1/me/la/melange
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"category": "development tools",
"contact": "[email protected]",
"description": "C-FFI interface generator for Open Dylan",
"keywords": [],
"name": "melange",
"releases": [{
"deps": [],
"license": "MIT",
"url": "https://github.com/dylan-lang/melange",
"version": "0.1.0"
}]
}
Loading

0 comments on commit 1825254

Please sign in to comment.