-2008-07-25 Kevin Rosenberg (kevin@rosenberg.net)
- * tests/foreign-loader.lisp: Commit patch from Luis Oliveira
- to use directory of *compile-file-truename*
-
2007-09-17 Kevin Rosenberg (kevin@rosenberg.net)
* doc/Makefile, doc/html.xsl: Change output encoding from
ISO-8859-1 to UTF-8
-
+
2007-07-22 Kevin Rosenberg (kevin@rosenberg.net)
* Version 1.6.0 (SPECIFICATION CHANGE)
* doc/ref_func_libr.xml: Change the specification of
cl-uffi (1.6.1-1) unstable; urgency=low
* New upstream
+ * debian/control: Require debhelper 7. Change to new lisp section.
+ Add Vcs-Git and Homepage fields.
+ * debian/rules: Update for DH7, architecture-independent build
+ * debian/{prerm,postrm}: Remove path from binary function
- -- Kevin M. Rosenberg <kmr@debian.org> Fri, 25 Jul 2008 08:29:58 -0600
+ -- Kevin M. Rosenberg <kmr@debian.org> Sat, 01 Aug 2009 20:38:03 -0600
cl-uffi (1.6.0-1) unstable; urgency=low
use the UFFI (Universal Foreign Function Interface)
Common Lisp library. This library supports CMUCL, SBCL,
AllegroCL, Lispworks, SCL, OpenMCL, and MCL.
-Section: Help
+Section: Programming
Format: PDF
Files: /usr/share/doc/cl-uffi/cl-uffi.pdf.gz
Source: cl-uffi
-Section: devel
+Section: lisp
Priority: optional
Maintainer: Kevin M. Rosenberg <kmr@debian.org>
-Build-Depends: zlib1g-dev,debhelper (>= 4.0.0)
-Standards-Version: 3.8.0
+Build-Depends: zlib1g-dev,debhelper (>= 7.0.0)
+Standards-Version: 3.8.2.0
+Homepage: http://uffi.b9.com/
+Vcs-Git: git://git.b9.com/uffi.git
Package: cl-uffi
Architecture: all
Package: cl-uffi-tests
Architecture: any
-Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.37), cl-uffi, zlib1g-dev
+Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.37), cl-uffi, zlib1g-dev
Description: Regression tests for UFFI Common Lisp Library
This is a test of regression tests for UFFI. Besides providing
testing for UFFI, the tests serve as an example of UFFI usage.
#! /bin/sh
-# postinst script for uffi
-#
-# see: dh_installdeb(1)
-
set -e
-# package name according to lisp
LISP_PKG=uffi
-# 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)
- #clc-only-compatible $LISP_PKG allegro cmucl lispworks openmcl sbcl scl
- /usr/sbin/register-common-lisp-source $LISP_PKG
+ register-common-lisp-source $LISP_PKG
;;
abort-upgrade|abort-remove|abort-deconfigure)
-
;;
*)
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0
+++ /dev/null
-#!/bin/bash
-# This is part of uffi program:
-# http://uffi.med-info.com
-#
-# Copyright (c) 2002 Kevin M. Rosenberg <kmr@debian.org>
-
-pkg=uffi
-dir=/usr/share/common-lisp/source/$pkg
-
-case "$1" in
- install|upgrade|abort-upgrade)
- # Remove any old versions
- test -h $dir && rm $dir
- rm -rf ${dir}-[0-9\.]*
- ;;
- *)
- echo "preinst called with unknown argument '$1'" >&2
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
#! /bin/sh
-# prerm script for uffi
-#
-# see: dh_installdeb(1)
-
set -e
-# package name according to lisp
LISP_PKG=uffi
-# 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
+ unregister-common-lisp-source $LISP_PKG
;;
failed-upgrade)
;;
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0
debpkg := cl-$(pkg)
debpkg-tests := $(debpkg)-tests
-
clc-source := usr/share/common-lisp/source
clc-systems := usr/share/common-lisp/systems
clc-files := $(clc-source)/$(pkg)
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
touch configure-stamp
build-stamp: configure-stamp
dh_testdir
- # Add here commands to compile the package.
(cd tests; make)
touch build-stamp
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
- # Add here commands to clean up after the build process.
$(MAKE) clean
(cd tests; make clean)
rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_prep
dh_installdirs --all $(clc-systems) $(clc-source)
-
- # Add here commands to install the package into debian/uffi.
dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src
dh_install $(pkg).asd $(clc-files)
dh_install "src/*.lisp" $(clc-files)/src
dh_install -p $(debpkg-tests) tests/*.so $(lib-dir)
dh_link -p $(debpkg-tests) $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(pkg-tests).asd
-# Build architecture-independent files here.
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_md5sums -i
dh_builddeb -i
-# Build architecture-dependent files here.
binary-arch: build install
dh_testdir -a
dh_testroot -a
version=3
-http://files.b9.com/uffi/uffi-([\d\.]*)\.tar\.gz debian uupdate
+http://files.b9.com/uffi/uffi-([\d\.]*)\.tar\.gz
* you'll need to modify these for other compilers
***************************************************************************/
-#ifdef WIN32
+#if defined(WIN32)||defined(WIN64)
#include <windows.h>
BOOL WINAPI DllEntryPoint(HINSTANCE hinstdll,
,@(if module (list :module module) (values))
:result-type ,result-type
:language :ansi-c
- #+:win32 :calling-convention #+:win32 :cdecl)
+ #+:mswindows :calling-convention #+:mswindows :cdecl)
#+digitool
`(eval-when (:compile-toplevel :load-toplevel :execute)
(ccl:define-entry-point (,lisp-name ,foreign-name)
(defun default-foreign-library-type ()
"Returns string naming default library type for platform"
- #+(or win32 cygwin mswindows) "dll"
+ #+(or win32 win64 cygwin mswindows windows) "dll"
#+(or macosx darwin ccl-5.0) "dylib"
- #-(or win32 cygwin mswindows macosx darwin ccl-5.0) "so"
+ #-(or win32 win64 cygwin mswindows windows macosx darwin ccl-5.0) "so"
)
(defun foreign-library-types ()
"Returns list of string naming possible library types for platform, sorted by preference"
- #+(or win32 mswindows) '("dll" "lib")
+ #+(or win32 win64 windows mswindows) '("dll" "lib")
#+(or macosx darwin ccl-5.0) '("dylib" "bundle")
- #-(or win32 mswindows macosx darwin ccl-5.0) '("so" "a" "o")
+ #-(or win32 win64 windows mswindows macosx darwin ccl-5.0) '("so" "a" "o")
)
(defun find-foreign-library (names directories &key types drive-letters)
(setq names (list names)))
(unless (listp directories)
(setq directories (list directories)))
- #+(or win32 mswindows)
+ #+(or win32 win64 windows mswindows)
(unless (listp drive-letters)
(setq drive-letters (list drive-letters)))
- #-(or win32 mswindows)
+ #-(or win32 win64 windows mswindows)
(setq drive-letters '(nil))
(dolist (drive-letter drive-letters)
(dolist (name names)
(setq filename (namestring (if (null (pathname-directory filename))
filename
;; lispworks treats as UNC, so use truename
- #+(and lispworks win32) (truename filename)
- #-(and lispworks win32) filename))))
+ #+(and lispworks mswindows) (truename filename)
+ #-(and lispworks mswindows) filename))))
(if (and (not force-load)
(find filename *loaded-libraries* :test #'string-equal))
"libz"
#+(or macosx darwin)
"z"
- (list (pathname-directory #.(or *compile-file-truename* *load-pathname*))
+ (list (pathname-directory *load-pathname*)
"/usr/local/lib/" #+(or 64bit x86-64) "/usr/lib64/"
"/usr/lib/" "/zlib/"))
:module "zlib"
(unless (uffi:load-foreign-library
(uffi:find-foreign-library
'(#+(or 64bit x86-64) "uffi-c-test64" "uffi-c-test")
- (list (pathname-directory #.(or *compile-file-truename* *load-truename*))
+ (list (pathname-directory *load-truename*)
"/usr/lib/uffi/"
"/home/kevin/debian/src/uffi/tests/"))
:supporting-libraries '("c")
* you'll need to modify these for other compilers
***************************************************************************/
-#ifdef WIN32
+#if defined(WIN32)||defined(WIN64)
#include <windows.h>
BOOL WINAPI DllEntryPoint(HINSTANCE hinstdll,
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2003
;;;;
-;;;; $Id$
;;;; *************************************************************************
(defpackage #:uffi-tests-system
(defmethod perform ((o compile-op) (c uffi-test-source-file))
(unless (operation-done-p o c)
- #-(or win32 mswindows)
+ #-(or win32 win64 windows mswindows)
(unless (zerop (run-shell-command
#-freebsd "cd ~A; make"
#+freebsd "cd ~A; gmake"
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Aug 2002
;;;;
-;;;; $Id$
-;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2009 by Kevin M. Rosenberg
;;;;
;;;; *************************************************************************