Skip to content

Commit fe8dd6b

Browse files
committed
Rename quicklisp-meta project to quicksys
Side effects: + install get renamed to install-dist + uninstall get renamed to uninstall-dist + the nickname of the quicksys package is qs.
1 parent 9cf3181 commit fe8dd6b

File tree

5 files changed

+40
-39
lines changed

5 files changed

+40
-39
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
;;;; ql-meta.asd
1+
;;;; quicksys.asd
22

3-
(asdf:defsystem #:ql-meta
4-
:description "QL-META tracks multiple Quicklisp distributions"
3+
(asdf:defsystem #:quicksys
4+
:description "QUICKSYS tracks multiple Quicklisp distributions"
55
:author "Manoel Vilela & Lucas Vieira"
66
:license "MIT"
77
:version "0.1.0"
@@ -12,16 +12,16 @@
1212
:pathname "src"
1313
:depends-on (:quicklisp)
1414
:components ((:file "package")
15-
(:file "ql-meta")))
15+
(:file "quicksys")))
1616

17-
(asdf:defsystem #:ql-meta/test
18-
:description "QL-META test suit"
17+
(asdf:defsystem #:quicksys/test
18+
:description "QUICKSYS test suit"
1919
:author "Manoel Vilela & Lucas Vieira"
2020
:license "MIT"
2121
:version "0.1.0"
2222
:serial t
2323
:pathname "t"
24-
:depends-on (:ql-meta :prove)
24+
:depends-on (:quicksys :prove)
2525
:components ((:file "test"))
2626
:perform (asdf:test-op :after (op c)
2727
(funcall (intern #.(string :run) :prove) c)))

run-tests.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(pushnew (truename (sb-unix:posix-getcwd/))
44
ql:*local-project-directories*)
55
(ql:register-local-projects)
6-
(ql:quickload :ql-meta/test :silent t)
6+
(ql:quickload :quicksys/test :silent t)
77
(setf prove:*enable-colors* t)
88
(if (prove:run "t/test.lisp")
99
(sb-ext:exit :code 0)

src/package.lisp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
;;;; package.lisp
22

3-
(defpackage #:ql-meta
3+
(defpackage #:quicksys
44
(:use #:cl)
5-
(:nicknames :qlm)
5+
(:nicknames :qs)
66
(:export #:*dists*
7-
#:install
7+
#:install-dist
88
#:installedp
9-
#:uninstall
9+
#:uninstall-dist
1010
#:dist-name
1111
#:dist-url
1212
#:dist-properties
@@ -17,22 +17,23 @@
1717
#:dist-apropos-list
1818
#:quickload)
1919
(:documentation
20-
"QL-META provides a collection of tools to handle multiple quicklisp dists.
20+
"QUICKSYS provides a collection of tools to load systems from
21+
multiple quicklisp dists.
2122
2223
EXAMPLES
2324
2425
;; search for a dist
25-
* (ql-meta:dist-apropos '*)
26+
* (quicksys:dist-apropos '*)
2627
#<DIST BODGE / http://bodge.borodust.org/dist/org.borodust.bodge.txt>
2728
#<DIST CL21 / http://dists.cl21.org/cl21.txt>
2829
#<DIST ULTRALISP / http://dist.ultralisp.org>
2930
#<DIST SHIRAKUMO / http://dist.tymoon.eu/shirakumo.txt>
3031
3132
;; install a dist
32-
* (ql-meta:install :ultralisp)
33+
* (quicksys:install :ultralisp)
3334
3435
3536
;; install a dist temporary just to load a system
36-
* (ql-meta:quickload 'trivial-gamekit :dist 'bodge )
37+
* (quicksys:quickload 'trivial-gamekit :dist 'bodge )
3738
"
3839
))

src/ql-meta.lisp renamed to src/quicksys.lisp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Manoel Vilela & Lucas Vieira © 2019 MIT
44
55
|#
66

7-
(in-package #:ql-meta)
7+
(in-package #:quicksys)
88

99

1010
;; DIST: alist :: key -> plist
@@ -23,8 +23,8 @@ in QL-META.")
2323
(defun %dist-id (dist-name)
2424
"%DIST-ID converts DIST-NAME to an inner key representation."
2525
(if (typep dist-name 'string)
26-
(intern (string-upcase dist-name) :ql-meta)
27-
(intern (symbol-name dist-name) :ql-meta)))
26+
(intern (string-upcase dist-name) :quicksys)
27+
(intern (symbol-name dist-name) :quicksys)))
2828

2929
(defun %dist-realname (dist)
3030
"%DIST-REALNAME generates the name of a DIST as a downcase string."
@@ -70,8 +70,8 @@ yields NIL."
7070
(let ((dist-obj (ql-dist:find-dist (%dist-realname dist))))
7171
(and dist-obj (ql-dist:installedp dist-obj))))
7272

73-
(defun install (dist-name &key (force nil))
74-
"INSTALL a dist DIST-NAME using QL-DIST.
73+
(defun install-dist (dist-name &key (force nil))
74+
"INSTALL-DIST a dist DIST-NAME using QL-DIST.
7575
7676
As default, use the parameters (:prompt nil :replace t) on
7777
ql-dist:install-dist to avoid human interaction.
@@ -87,8 +87,8 @@ raises an error."
8787
(cons (dist-url dist)
8888
'(:prompt nil :replace t)))))))
8989

90-
(defun uninstall (dist-name)
91-
"UNINSTALL a dist DIST-NAME using QL-DIST.
90+
(defun uninstall-dist (dist-name)
91+
"UNINSTALL-DIST a dist DIST-NAME using QL-DIST.
9292
9393
Yields NIL on uninstallation error and when the dist DIST-NAME were not
9494
installed in the first place. Otherwise, yields T."
@@ -108,10 +108,10 @@ Specifying SILENT suppresses output."
108108
(let* ((%dist (get-dist dist))
109109
(installed-before (and %dist (installedp %dist))))
110110
(when dist
111-
(install dist))
111+
(install-dist dist))
112112
(ql:quickload system :silent silent)
113113
(unless installed-before
114-
(uninstall dist))))
114+
(uninstall-dist dist))))
115115

116116

117117
(defgeneric dist-apropos-list (term)

t/test.lisp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
(defpackage #:ql-meta/test
1+
(defpackage #:quicksys/test
22
(:use #:cl
33
#:prove)
4-
(:documentation "Collection of unit tests for QL-META"))
4+
(:documentation "Collection of unit tests for QUICKSYS"))
55

66

7-
(in-package :ql-meta/test)
7+
(in-package :quicksys/test)
88

99

10-
(setq ql-meta:*dists*
10+
(setq quicksys:*dists*
1111
'((test1 (:url "http://test1.com"))
1212
(test2 (:url "http://test2.com"))))
1313

1414
(plan nil)
1515

1616
(diag "== Testing: get-dists-names & get-dists-urls!")
1717

18-
(is (ql-meta:get-dists-names) '(test1 test2)
18+
(is (quicksys:get-dists-names) '(test1 test2)
1919
"get-dists-names test 1")
20-
(is (ql-meta:get-dists-urls) '("http://test1.com"
20+
(is (quicksys:get-dists-urls) '("http://test1.com"
2121
"http://test2.com")
2222
"get-dists-urls test 1")
2323

2424
(diag "== Testing: get-dist!")
25-
(ok (typep (ql-meta:get-dist :test1) 'list)
25+
(ok (typep (quicksys:get-dist :test1) 'list)
2626
"get-dist keyword")
27-
(ok (typep (ql-meta:get-dist 'test2) 'list)
27+
(ok (typep (quicksys:get-dist 'test2) 'list)
2828
"get-dist symbol")
29-
(is (ql-meta:get-dist 'test3) nil
29+
(is (quicksys:get-dist 'test3) nil
3030
"get-dist symbol invalid")
31-
(ok (typep (ql-meta:get-dist "test2") 'list)
31+
(ok (typep (quicksys:get-dist "test2") 'list)
3232
"get-dist string")
3333

3434
(diag "== Testing: dist-apropos-list!")
3535

36-
(is ql-meta:*dists* (ql-meta:dist-apropos-list '*)
36+
(is quicksys:*dists* (quicksys:dist-apropos-list '*)
3737
"dist-apropos-list wildcard *")
38-
(is ql-meta:*dists* (ql-meta:dist-apropos-list "")
38+
(is quicksys:*dists* (quicksys:dist-apropos-list "")
3939
"dist-apropos-list empty string")
40-
(is 'TEST1 (caar (ql-meta:dist-apropos-list :test1))
40+
(is 'TEST1 (caar (quicksys:dist-apropos-list :test1))
4141
"dist-apropos-list name search")
42-
(is '(TEST1 TEST2) (mapcar #'car (ql-meta:dist-apropos-list ".com"))
42+
(is '(TEST1 TEST2) (mapcar #'car (quicksys:dist-apropos-list ".com"))
4343
"dist-apropos-list url search")
4444

4545
(finalize)

0 commit comments

Comments
 (0)