Use modern ASDF test-op. SB-MOP changes for latest SBCL.
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 1 Oct 2020 22:13:10 +0000 (16:13 -0600)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 1 Oct 2020 22:13:10 +0000 (16:13 -0600)
debian/changelog
debian/compat
debian/control
debian/rules
metaclass.lisp
mop.lisp
package.lisp
tests.lisp

index 68d7c0837d49fdb5b97312616ab5507fd7259d16..8946308ae5289ff46ac8f8b88826f1148f75e4fc 100644 (file)
@@ -1,3 +1,9 @@
+cl-hyperobject (2.13-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Thu, 01 Oct 2020 16:11:33 -0600
+
 cl-hyperobject (2.12.0-1) unstable; urgency=low
 
   * New upstream
@@ -10,7 +16,7 @@ cl-hyperobject (2.11.0-3) unstable; urgency=low
   * Build with debhelper extension dh-lisp
   * control: Add Vcs-Browser field. Fix Depends field.
   * rules: Fix installation of example file
-  
  -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 03 Aug 2009 14:02:47 -0600
 
 cl-hyperobject (2.11.0-2) unstable; urgency=low
index 7f8f011eb73d6043d2e6db9d2c101195ae2801f2..b4de3947675361a7770d29b8982c407b0ec6b2a0 100644 (file)
@@ -1 +1 @@
-7
+11
index 3bac1cb97e703ec1658674379df50dd8db2f595e..ed06c7eeb1c32da9a94dcbb71928821528120e25 100644 (file)
@@ -3,7 +3,7 @@ Section: lisp
 Priority: optional
 Maintainer: Kevin M. Rosenberg <kmr@debian.org>
 Build-Depends-Indep: dh-lisp
-Build-Depends: debhelper (>= 7.0.0)
+Build-Depends: debhelper (>= 11.0.0)
 Standards-Version: 3.9.2.0
 Homepage: http://hyperobject.kpe.io/
 Vcs-Git: git://git.kpe.io/hyperobject.git
index deaab4591033da46d661510128870b4b306975ca..8fed3f68270453881f89373120da0c51234c244f 100755 (executable)
@@ -14,9 +14,7 @@ source-files  := $(filter-out $(tests-files),$(wildcard *.lisp))
 
 
 build: build-arch build-indep
-
 build-arch:
-
 build-indep:
 
 clean:
index 264afa71c8d56a7a4d722e2595a383c145b5b081..8b175e77e21cc426d5eee7ba05a05f87088829b3 100644 (file)
@@ -7,9 +7,6 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;;
-;;;; $Id$
-;;;;
 ;;;; This file is Copyright (c) 2000-2006 by Kevin M. Rosenberg
 ;;;; *************************************************************************
 
@@ -31,4 +28,3 @@
 (defparameter *slot-options-no-initarg*
   '(:ho-type :sql-type :sql-length)
   "Slot options that do not have an initarg")
-
index 0771543be9f0cc3bb3a91ddc3db84f6a15e96988..43a2f82708b67bfb6f3fed53826d1566c9c051cd 100644 (file)
--- a/mop.lisp
+++ b/mop.lisp
@@ -11,8 +11,6 @@
 ;;;; in Text, HTML, and XML formats. This includes hyperlinking
 ;;;; capability and sub-objects.
 ;;;;
-;;;; $Id$
-;;;;
 ;;;; This file is Copyright (c) 2000-2006 by Kevin M. Rosenberg
 ;;;; *************************************************************************
 
 
 (defclass hyperobject-class (standard-class)
   ( ;; slots initialized in defclass
-   (user-name :initarg :user-name :type string :initform nil
+   (user-name :initarg :user-name :initform nil
               :accessor user-name
               :documentation "User name for class")
-   (user-name-plural :initarg :user-name-plural :type string :initform nil
+   (user-name-plural :initarg :user-name-plural :initform nil
                      :accessor user-name-plural
                      :documentation "Plural user name for class")
    (default-print-slots :initarg :default-print-slots :type list :initform nil
@@ -541,7 +539,7 @@ SQL name"
     (setf (documentation cl 'type)
           (format nil "Hyperobject~A~A~A~A"
                   (aif (user-name cl)
-                       (format nil ": ~A" it ""))
+                       (format nil ": ~A" it) "")
                   (aif (description cl)
                        (format nil "~%Class description: ~A" it) "")
                   (aif (subobjects cl)
index 392caa6493e4ac28b8bdd67e03e0068e3ad36897..a2c4bcdf31d30a797198dd03de85ed6124be2516 100644 (file)
@@ -7,19 +7,11 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id$
-;;;;
 ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg
 ;;;; *************************************************************************
 
 (in-package #:cl-user)
 
-#+sbcl
-(eval-when (:compile-toplevel :load-toplevel :execute)
-  (if (find-package 'sb-mop)
-      (pushnew :kmr-sbcl-mop cl:*features*)
-      (pushnew :kmr-sbcl-pcl cl:*features*)))
-
 #+cmu
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (if (eq (symbol-package 'pcl:find-class)
       (pushnew :kmr-cmucl-mop cl:*features*)
       (pushnew :kmr-cmucl-pcl cl:*features*)))
 
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (when (find-package '#:hyperobject-tests)
+    (delete-package '#:hyperobject-tests))
+  (when (find-package '#:hyperobject-user)
+    (delete-package '#:hyperobject-user))
+  (when (find-package '#:hyperobject)
+    (delete-package '#:hyperobject)))
 
 (defpackage #:hyperobject
   (:nicknames #:ho)
   (:use #:common-lisp #:kmrcl
-        #+kmr-sbcl-mop #:sb-mop
         #+kmr-cmucl-mop #:mop
         #+allegro #:mop
         #+lispworks #:clos
   (:nicknames #:ho-user)
   (:use #:hyperobject #:cl #:cl-user))
 
-
 (eval-when (:compile-toplevel :load-toplevel :execute)
+  #+sbcl
+  (dolist (name '("CLASS-OF"
+                  "CLASS-NAME"
+                  "CLASS-SLOTS"
+                  "FIND-CLASS"
+                  "STANDARD-CLASS"
+                  "SLOT-DEFINITION-NAME"
+                  "FINALIZE-INHERITANCE"
+                  "STANDARD-DIRECT-SLOT-DEFINITION"
+                  "CLASS-PRECEDENCE-LIST"
+                  "STANDARD-EFFECTIVE-SLOT-DEFINITION"
+                  "VALIDATE-SUPERCLASS" "DIRECT-SLOT-DEFINITION-CLASS"
+                  "EFFECTIVE-SLOT-DEFINITION-CLASS"
+                  "COMPUTE-EFFECTIVE-SLOT-DEFINITION"
+                  "CLASS-DIRECT-SLOTS"
+                  "COMPUTE-EFFECTIVE-SLOT-DEFINITION-INITARGS"
+                  "SLOT-VALUE-USING-CLASS"
+                  "CLASS-PROTOTYPE"
+                  "GENERIC-FUNCTION-METHOD-CLASS"
+                  "INTERN-EQL-SPECIALIZER"
+                  "MAKE-METHOD-LAMBDA"
+                  "GENERIC-FUNCTION-LAMBDA-LIST"
+                  "COMPUTE-SLOTS"))
+    (let ((sym (find-symbol name "SB-MOP")))
+      (if sym
+          (progn (shadowing-import sym :hyperobject))
+          (progn
+            (setq sym (find-symbol name "SB-PCL"))
+            (if sym
+                (shadowing-import sym :hyperobject)
+                (warn "Can't find function ~A in packages SB-MOP or SB-PCL" name))))))
+  #-sbcl
   (shadowing-import
    #+allegro
    '(excl::compute-effective-slot-definition-initargs)
    #+lispworks
    '(clos::compute-effective-slot-definition-initargs)
-   #+kmr-sbcl-mop
-   '(sb-pcl::compute-effective-slot-definition-initargs)
-   #+kmr-sbcl-pcl
-   '(sb-pcl:class-of sb-pcl:class-name sb-pcl:class-slots sb-pcl:find-class
-     sb-pcl::standard-class
-     sb-pcl:slot-definition-name sb-pcl::finalize-inheritance
-     sb-pcl::standard-direct-slot-definition
-     sb-pcl::standard-effective-slot-definition sb-pcl::validate-superclass
-     sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
-     sb-pcl::compute-effective-slot-definition-initargs
-     sb-pcl::slot-value-using-class
-     sb-pcl:slot-definition-type
-     sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
-     sb-pcl:make-method-lambda sb-pcl:generic-function-lambda-list
-     sb-pcl::class-precedence-list)
    #+kmr-cmucl-mop
    '(pcl::compute-effective-slot-definition-initargs)
    #+kmr-cmucl-pcl
      clos:slot-definition-type
      ;; note: make-method-lambda is not fbound
      )
-
    :hyperobject))
 
-#+sbcl
-(eval-when (:compile-toplevel :load-toplevel :execute)
-  (if (find-package 'sb-mop)
-      (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*))
-      (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))))
-
 #+cmu
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (if (find-package 'mop)
index ff66b6fdd760fe46fa0edc78be50d096fa7537e0..3859844e077f5d322d4335d03db0398f58fc4daf 100644 (file)
 (rem-all-tests)
 
 (deftest :p1 (view-to-string mary :vid :compact-text) "Person:
-  Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace
+  Mary Jackson Thu 4 May 2000 03:02:01 Style & Grace
 ")
 
 (deftest :p2 (view-to-string mary :subobjects t :vid :compact-text) "Person:
-  Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace
+  Mary Jackson Thu 4 May 2000 03:02:01 Style & Grace
   Addresses:
     Home 321 Shady Lane 10
     Phone Numbers:
 
 (deftest :p3 (view-to-string mary :vid :compact-text-labels)
   "Person:
-  first-name Mary last-name Jackson dob Thu, 4 May 2000 03:02:01 resume Style & Grace
+  first-name Mary last-name Jackson dob Thu 4 May 2000 03:02:01 resume Style & Grace
 ")
 
 (deftest :p4 (view-to-string mary :vid :compact-text)
 "Person:
-  Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace
+  Mary Jackson Thu 4 May 2000 03:02:01 Style & Grace
 ")
 
 (deftest :cv1 (years-at-address home)