Merge branch 'master' of ssh://git.b9.com/home/gitpub/kmrcl
authorMedTermServer <mts@cheetah.med-info.com>
Tue, 16 Feb 2010 03:12:05 +0000 (20:12 -0700)
committerMedTermServer <mts@cheetah.med-info.com>
Tue, 16 Feb 2010 03:12:05 +0000 (20:12 -0700)
14 files changed:
.gitignore [changed mode: 0644->0755]
ChangeLog
color.lisp
debian/changelog
debian/compat
debian/control
debian/copyright
debian/postinst [deleted file]
debian/prerm [deleted file]
debian/rules
debian/watch [new file with mode: 0644]
impl.lisp
lists.lisp
sockets.lisp

old mode 100644 (file)
new mode 100755 (executable)
index e07a5f97f7e873e44de11e78a2d020f3bbc55019..2a8031d185accfd5207df4d072b5d60031cd04cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+20 Aug 2009  Kevin Rosenberg <kevin@rosenberg.net>
+       * Version 1.100
+       * lists.lisp: For ECL, exclude function that is incompatible with ECL
+       (Thanks to Daniel Herring)
+
+26 Jul 2009  Kevin Rosenberg <kevin@rosenberg.net>
+       * Version 1.99
+       * impl.lisp: Update SBCL internal call for probe-directory
+       (Thanks to Cyrus Harmon)
+
 28 Jan 2008  Kevin Rosenberg <kevin@rosenberg.net>
        * Version 1.98
        * {datetime,strings,tests}.lisp: Add remove-char-string
index b18bd2d00df115ff22f15408165e38426e0549b1..52d5b46f1fd5c4b13ea366073bee62300e94c9f4 100644 (file)
       (setq s (/ delta max)))
 
     (when (plusp delta)
-      (setq h (cond
-               ((= max r)
-                (nth-value 0 (/ (- g b) delta)))
-               ((= max g)
-                (nth-value 0 (+ 2 (/ (- b r) delta))))
-               (t
-                (nth-value 0 (+ 4 (/ (- r g) delta))))))
-      (setq h (the fixnum (* 60 h)))
+      (setq h (* 60  (cond
+                       ((= max r) (/ (- g b) delta))
+                       ((= max g) (+ 2 (/ (- b r) delta)))
+                       (t (+ 4 (/ (- r g) delta))))))
       (when (minusp h)
         (incf h 360)))
 
              (type (or null fixnum) h))
 
     (when (plusp max)
-      (setq s (truncate (the fixnum (* 255 delta)) max)))
+      (setq s (round (the fixnum (* 255 delta)) max)))
 
     (when (plusp delta)
       (setq h (cond
                ((= max r)
-                (truncate (the fixnum (* 60 (the fixnum (- g b)))) delta))
+                (round (the fixnum (* 60 (the fixnum (- g b)))) delta))
                ((= max g)
                 (the fixnum
-                     (+ 120 (truncate (the fixnum (* 60 (the fixnum (- b r)))) delta))))
+                     (+ 120 (round (the fixnum (* 60 (the fixnum (- b r)))) delta))))
                (t
                 (the fixnum
-                     (+ 240 (truncate (the fixnum (* 60 (the fixnum (- r g)))) delta))))))
+                     (+ 240 (round (the fixnum (* 60 (the fixnum (- r g)))) delta))))))
       (when (minusp h)
         (incf h 360)))
 
index f9ef78f4f636889e91c1a1f1c3dd8df65cb531f6..bf103bddbbe0479cf58a710f4736c687cf391ddb 100644 (file)
@@ -1,3 +1,38 @@
+cl-kmrcl (1.100-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Thu, 20 Aug 2009 10:48:16 -0600
+
+cl-kmrcl (1.99-4) unstable; urgency=low
+
+  * Build with debhelper extension dh-lisp
+  * control: Add Vcs-Browser field. Fix Depends field.
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 03 Aug 2009 14:12:47 -0600
+
+cl-kmrcl (1.99-3) unstable; urgency=low
+
+  * debian/control: Added Homepage and Vcs-Git fields
+  * debian/watch: new file
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Sun, 02 Aug 2009 03:23:22 -0600
+
+cl-kmrcl (1.99-2) unstable; urgency=low
+
+  * Change to debhelper 7 compatibility 
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 27 Jul 2009 15:33:13 -0600
+
+cl-kmrcl (1.99-1) unstable; urgency=low
+
+  * New upstream
+  * Update debhelper compat version
+  * Change section to lisp
+  * Update standards version
+       
+ -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 27 Jul 2009 11:10:24 -0600
+
 cl-kmrcl (1.98-1) unstable; urgency=low
 
   * New upstream
index b8626c4cff2849624fb67f87cd0ad72b163671ad..7f8f011eb73d6043d2e6db9d2c101195ae2801f2 100644 (file)
@@ -1 +1 @@
-4
+7
index 831a0b17f7d80aa6d033ad026e5f610ccb15b308..efaad0c654c161880882c77c5b342ed0c7133ce7 100644 (file)
@@ -1,15 +1,18 @@
 Source: cl-kmrcl
-Section: devel
+Section: lisp
 Priority: optional
 Maintainer: Kevin M. Rosenberg <kmr@debian.org>
-Build-Depends: debhelper (>= 4.0.0)
-Standards-Version: 3.7.3.0
+Build-Depends-Indep: dh-lisp
+Build-Depends: debhelper (>= 7.0.0)
+Standards-Version: 3.8.3.0
+Homepage: http://files.b9.com/kmrcl/
+Vcs-Git: git://git.b9.com/kmrcl.git
+Vcs-Browser: http://git.b9.com/?p=kmrcl.git
 
 Package: cl-kmrcl
 Architecture: all
-Depends: ${shlibs:Depends}, common-lisp-controller, cl-rt
+Depends: ${misc:Depends}, cl-rt
 Description: General Utilities for Common Lisp Programs
  This package includes general purpose utilities for Common Lisp
  programs. It is packages for Debian primarily to support more complex
  Common Lisp packages by the upstream author Kevin Rosenberg.
-
index 1f39879b2bd14d94965e174422981e973ef51513..00ca7b8914493998a243c56340bdd3ab167d5f63 100644 (file)
@@ -5,7 +5,7 @@ It was downloaded from http://files.b9.com/kmrcl
 
 Upstream Author: Kevin M. Rosenberg <kevin@rosenberg.net>
 
-Copyright (C) 2000-2006 by Kevin M. Rosenberg.
+Copyright (C) 2000-2009 by Kevin M. Rosenberg.
 
 This code is free software; you can redistribute it and/or modify it
 under the terms of the version 2.1 of the GNU Lesser General Public
@@ -19,7 +19,7 @@ merchantability or fitness for a particular purpose.  See the GNU
 Lesser General Public License for more details.
 
 The GNU Lessor General Public License can be found in your Debian file
-system in /usr/share/common-licenses/LGPL.
+system in /usr/share/common-licenses/LGPL-3.
 
 Preamble to the Gnu Lesser General Public License
 -------------------------------------------------
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100755 (executable)
index a10eaba..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /bin/sh
-# postinst script for cl-kmrcl
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# package name according to lisp
-LISP_PKG=kmrcl
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-case "$1" in
-    configure)
-       /usr/sbin/register-common-lisp-source ${LISP_PKG}
-       ;;
-    abort-upgrade|abort-remove|abort-deconfigure)
-       ;;
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-       ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/prerm b/debian/prerm
deleted file mode 100755 (executable)
index 1c05eea..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#! /bin/sh
-# prerm script for cl-kmrcl
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# package name according to lisp
-LISP_PKG=kmrcl
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    remove|upgrade|deconfigure)
-       /usr/sbin/unregister-common-lisp-source ${LISP_PKG}
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
index 2bc2c46eb6b089c602d0a4fb1732999177084725..cf07a520165278c887def0f2baf252c9931ce396 100755 (executable)
@@ -1,83 +1,49 @@
 #!/usr/bin/make -f
 
-pkg    := kmrcl
-pkg-tests := $(pkg)-tests
-debpkg  := cl-$(pkg)
+pkg            := kmrcl
+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)
 clc-tests      := $(clc-source)/$(pkg-tests)
-doc-dir                := usr/share/doc/$(debpkg)
 
 tests-files    := tests.lisp
 source-files   := $(filter-out $(tests-files),$(wildcard *.lisp))
 
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       # Add here commands to configure the package.
-
-       touch configure-stamp
-
 
-build: build-stamp
-
-build-stamp: configure-stamp 
-       dh_testdir
-       # Add here commands to compile the package.
-       touch build-stamp
+build:
 
 clean:
        dh_testdir
        dh_testroot
-       rm -f build-stamp configure-stamp
-       # Add here commands to clean up after the build process.
-       rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
        dh_clean
 
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k
-       # Add here commands to install the package into debian/kmrcl.
-       dh_installdirs $(clc-systems) $(clc-files) $(clc-tests)
+       dh_prep
+       dh_installdirs
        dh_install $(pkg).asd $(source-files) $(clc-files)
-       dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
        dh_install $(pkg-tests).asd $(tests-files) $(clc-tests)
-       dh_link $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(pkg-tests).asd
 
-# Build architecture-independent files here.
-binary-indep: build install
+binary-indep: install
        dh_testdir
        dh_testroot
-#      dh_installdebconf       
        dh_installdocs
-#      dh_installmenu
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_installinit
-#      dh_installcron
-#      dh_installman
-#      dh_installinfo
-#      dh_undocumented
-       dh_installchangelogs ChangeLog
-       dh_strip
+       dh_installchangelogs
+       dh_lisp
        dh_compress
        dh_fixperms
-#      dh_makeshlibs
        dh_installdeb
-#      dh_perl
-       dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb
 
-# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch:
+
+binary: binary-indep
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
 
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..fd9220e
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://files.b9.com/kmrcl/kmrcl-([\d\.]*)\.tar\.gz
index 52193ab12880360d0e638fa16c7b266c2327b7f6..762d27ffafddeeba3baf772707a3bf3c577f6121 100644 (file)
--- a/impl.lisp
+++ b/impl.lisp
                            path)
           #+lispworks (when (lw:file-directory-p path)
                         path)
-          #+sbcl (when (eq :directory
-                           (sb-unix:unix-file-kind (namestring path)))
-                   path)
+          #+sbcl
+          (let ((file-kind-fun
+                 (or (find-symbol "NATIVE-FILE-KIND" :sb-impl)
+                     (find-symbol "UNIX-FILE-KIND" :sb-unix))))
+            (when (eq :directory (funcall file-kind-fun (namestring path)))
+              path))
           #-(or allegro clisp cmu lispworks sbcl scl)
           (probe-file path)))
     (if probe
index b51c41a5072c396e1bf0a3f7ead8d292d14226be..5cd193cefe96910174ef1c9a9a5039c0b1c9b7b5 100644 (file)
@@ -81,6 +81,8 @@
 
 ;;; Keyword functions
 
+;; ECL doesn't allow FOR clauses after UNTIL.
+#-ecl
 (defun remove-keyword (key arglist)
   (loop for sublist = arglist then rest until (null sublist)
         for (elt arg . rest) = sublist
index dc8965cc4e91374cf84f5f376ce478a8ee55183a..c8c9b58df0aaa6463e0dbc7b075d2afd895aa51a 100644 (file)
@@ -22,6 +22,7 @@
 (defun listen-to-inet-port (&key (port 0) (kind :stream) (reuse nil))
   "Create, bind and listen to an inet socket on *:PORT.
 setsockopt SO_REUSEADDR if :reuse is not nil"
+  (declare (ignore kind))
   (let ((socket (make-instance 'sb-bsd-sockets:inet-socket
                                :type :stream
                                :protocol :tcp)))