r4665: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 28 Apr 2003 21:12:27 +0000 (21:12 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 28 Apr 2003 21:12:27 +0000 (21:12 +0000)
debian/changelog
debian/compat [new file with mode: 0644]
debian/rules
hyperobject.asd
package.lisp
tests.lisp

index a1c06026526b9920974ced5168dd2d2bfdb2f8fe..4d87fc01323365b53b60f9b07567f7f966a3ac66 100644 (file)
@@ -2,6 +2,7 @@ cl-hyperobject (2.7.0-1) unstable; urgency=low
 
   * Add regression testing
   * Depend on cl-rt package
+  * Use compat file rather than DH_COMPAT
 
  -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 28 Apr 2003 11:40:27 -0600
 
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
index bb89106b60e9bdb4007e9d267c96bbb8d21f9693..94018bf9968e0ef2d569d8ef9a7344fe8df1c53b 100755 (executable)
@@ -1,12 +1,9 @@
 #!/usr/bin/make -f
 
-export DH_COMPAT=4
-
 pkg      := hyperobject
 pkg-tests := $(pkg)-tests
 debpkg    := cl-$(pkg)
 
-
 clc-source     := usr/share/common-lisp/source
 clc-systems    := usr/share/common-lisp/systems
 clc-files      := $(clc-source)/$(pkg)
@@ -36,7 +33,7 @@ clean:
        dh_testroot
        rm -f build-stamp configure-stamp
        # Add here commands to clean up after the build process.
-       rm -f debian/cl-hyperobject.postinst.* debian/cl-hyperobject.prerm.*
+       rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
        dh_clean
 
 install: build
index 4ba98e77267b32d749ecb83e5f4de0d0f0b0cb8e..abc41a8cdb3175b92ebc85a31af3bdd191f110f5 100644 (file)
@@ -7,11 +7,10 @@
 ;;;; Author:        Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: hyperobject.asd,v 1.22 2003/04/28 19:06:13 kevin Exp $
+;;;; $Id: hyperobject.asd,v 1.23 2003/04/28 21:11:55 kevin Exp $
 ;;;; *************************************************************************
 
-(defpackage hyperobject-system
-  (:use #:asdf #:cl))
+(defpackage hyperobject-system (:use #:asdf #:cl))
 (in-package :hyperobject-system)
 
 #+(or allegro lispworks sbcl cmu scl)
@@ -41,3 +40,4 @@
   (oos 'test-op 'hyperobject-tests))
 
 
+
index be73baa0c8e2aac79a14d9811c24e947691e81d2..7eaebb60425a223499fb974c0f9ec1a909544812 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: package.lisp,v 1.43 2003/04/24 07:00:02 kevin Exp $
+;;;; $Id: package.lisp,v 1.44 2003/04/28 21:11:55 kevin Exp $
 ;;;;
 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
 ;;;; *************************************************************************
@@ -36,7 +36,8 @@
        #+kmr-sbcl-mop #:sb-mop
        #+kmr-cmucl-mop #:mop
        #+allegro #:mop
-       #+lispworks #:clos)
+       #+lispworks #:clos
+       #+scl #:clos)
   (:export
    #:package
    #:hyperobject
      pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
      pcl:make-method-lambda pcl:generic-function-lambda-list)
    #+scl
-   '(clos:class-slots clos::standard-class
-     clos::slot-definition-name clos:finalize-inheritance
-     clos::standard-direct-slot-definition clos::standard-effective-slot-definition
-     clos::validate-superclass clos:direct-slot-definition-class
-     clos:compute-effective-slot-definition
-     clos::compute-effective-slot-definition-initargs
-     clos::slot-value-using-class
-     clos::class-prototype clos:generic-function-method-class
+   '(clos::compute-effective-slot-definition-initargs
+     clos::class-prototype
      ;; note: make-method-lambda is not fbound
-     clos:intern-eql-specializer clos:make-method-lambda
-     clos:generic-function-lambda-list)
+     )
   
    :hyperobject))
 
       (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)
+      (setq cl:*features* (delete :kmr-cmucl-mop cl:*features*))
+      (setq cl:*features* (delete :kmr-cmucl-pcl cl:*features*))))
index 135499690d3d8bc91c5687c89e38f7fffad89b00..8ff7fba4a2d30b1f2b877021d7bc340cf1e4a744 100644 (file)
@@ -7,28 +7,15 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2003
 ;;;;
-;;;; $Id: tests.lisp,v 1.2 2003/04/28 19:06:13 kevin Exp $
+;;;; $Id: tests.lisp,v 1.3 2003/04/28 21:11:55 kevin Exp $
 ;;;;
 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
-;;;;
 ;;;; *************************************************************************
 
 (defpackage #:hyperobject-tests
-  (:use #:hyperobject #:cl #:rtest))
+  (:use #:hyperobject #:cl #:rtest #:kmrcl))
 (in-package #:hyperobject-tests)
 
-(defun format-date (ut)
-  (when (typep ut 'integer)
-    (multiple-value-bind (sec min hr day mon year dow daylight-p zone)
-       (decode-universal-time ut)
-      (declare (ignore daylight-p zone))
-      (format nil "~[Mon~;Tue~;Wed~;Thu~;Fri~;Sat~;Sun~], ~d ~[Jan~;Feb~;Mar~;Apr~;May~;Jun~;Jul~;Aug~;Sep~;Oct~;Nov~;Dec~] ~d ~2,'0d:~2,'0d:~2,'0d" 
-             dow
-             day
-             (1- mon)
-             year
-             hr min sec))))
-
 (defclass person (hyperobject)
   ((first-name :initarg :first-name :accessor first-name
               :value-type (varchar 20)
@@ -42,7 +29,7 @@
    (full-name :value-type string :stored nil)
    (dob :initarg :dob :accessor dob
        :value-type integer
-       :print-formatter format-date
+       :print-formatter date-string
        :value-constraint integerp
        :input-filter convert-to-date)
    (resume :initarg :resume :accessor resume
                            :addresses (list home office)
                            :resume "Style & Grace"))
 
-;(format t "~&Text Format~%")
-;(view mary :subobjects t)
-
-;(format t "~&XML Format with field labels and hyperlinks~%")
-;(view mary :subobjects t :category :xml-link-labels)
 
 (defun view-to-string (obj &rest args)
   (with-output-to-string (strm)
       Staff line 123-0002
       Fax 123-0005
 ")
+
+(deftest p3 (view-to-string mary :category t)
+  "")
+
+(deftest p4 (view-to-string mary :subobjects t :category t)
+  "")
+
+(deftest p5 (view-to-string mary :subobjects t  :category :xml-link-labels)
+  "")