summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2004-03-09 08:01:18 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2004-03-09 08:01:18 +0000
commitff32ba786ceca2a6b80398d4a3d8be112a073fd8 (patch)
treef8433cd9d965deba7ea7d6f7ca096aecda33bdd7 /dev-lisp/cl-ncurses
parentversion bump (bug #44102 includes detailed changelog) (Manifest recommit) (diff)
downloadgentoo-2-ff32ba786ceca2a6b80398d4a3d8be112a073fd8.tar.gz
gentoo-2-ff32ba786ceca2a6b80398d4a3d8be112a073fd8.tar.bz2
gentoo-2-ff32ba786ceca2a6b80398d4a3d8be112a073fd8.zip
*** empty log message ***
Diffstat (limited to 'dev-lisp/cl-ncurses')
-rw-r--r--dev-lisp/cl-ncurses/ChangeLog10
-rw-r--r--dev-lisp/cl-ncurses/Manifest5
-rw-r--r--dev-lisp/cl-ncurses/cl-ncurses-0.1.ebuild37
-rw-r--r--dev-lisp/cl-ncurses/files/cl-ncurses-0.1-gentoo.patch129
-rw-r--r--dev-lisp/cl-ncurses/files/digest-cl-ncurses-0.11
-rw-r--r--dev-lisp/cl-ncurses/metadata.xml5
6 files changed, 187 insertions, 0 deletions
diff --git a/dev-lisp/cl-ncurses/ChangeLog b/dev-lisp/cl-ncurses/ChangeLog
new file mode 100644
index 000000000000..a85dc199e6f6
--- /dev/null
+++ b/dev-lisp/cl-ncurses/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-lisp/cl-ncurses
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-ncurses/ChangeLog,v 1.1 2004/03/09 08:01:18 mkennedy Exp $
+
+*cl-ncurses-0.1 (09 Mar 2004)
+
+ 09 Mar 2004; <mkennedy@gentoo.org> cl-ncurses-0.1.ebuild, metadata.xml,
+ files/cl-ncurses-0.1-gentoo.patch:
+ Initial port. Ebuild contributed by Matthew Kennedy <mkennedy@gentoo.org>
+
diff --git a/dev-lisp/cl-ncurses/Manifest b/dev-lisp/cl-ncurses/Manifest
new file mode 100644
index 000000000000..8814fe15c7a4
--- /dev/null
+++ b/dev-lisp/cl-ncurses/Manifest
@@ -0,0 +1,5 @@
+MD5 473ee323d660d5a9599bf58f51d8e2e1 cl-ncurses-0.1.ebuild 964
+MD5 c2c8af5ec1f1979a8e5ae0ed9a480a28 ChangeLog 348
+MD5 9b65b0341efc8f4b29498aad23315229 metadata.xml 164
+MD5 96ddfd050deda89c9edb35514e57d926 files/cl-ncurses-0.1-gentoo.patch 4484
+MD5 b6ca5ee7861336d468ffa7b3d05eea9d files/digest-cl-ncurses-0.1 62
diff --git a/dev-lisp/cl-ncurses/cl-ncurses-0.1.ebuild b/dev-lisp/cl-ncurses/cl-ncurses-0.1.ebuild
new file mode 100644
index 000000000000..00109b3b3123
--- /dev/null
+++ b/dev-lisp/cl-ncurses/cl-ncurses-0.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-ncurses/cl-ncurses-0.1.ebuild,v 1.1 2004/03/09 08:01:18 mkennedy Exp $
+
+inherit common-lisp
+
+DESCRIPTION="CL-NCURSES is a NCURSES interface for Common Lisp on Unix-platforms."
+HOMEPAGE="http://www.common-lisp.net/project/cl-ncurses/"
+SRC_URI="http://common-lisp.net/project/cl-ncurses/files/cl-ncurses_${PV}.tgz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+DEPEND="dev-lisp/common-lisp-controller
+ virtual/commonlisp"
+
+CLPACKAGE=cl-ncurses
+
+S=${WORKDIR}/cl-ncurses_${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S} && epatch ${FILESDIR}/cl-ncurses-${PV}-gentoo.patch
+}
+
+src_compile() {
+ make || die
+}
+
+src_install() {
+ common-lisp-install *.lisp cl-ncurses.asd
+ common-lisp-system-symlink
+ dodoc README LICENSE
+ exeinto /usr/lib/cl-ncurses
+ doexe glue.so
+ insinto ${CLSOURCEROOT}/${PN}/tests
+ doins tests/*
+}
diff --git a/dev-lisp/cl-ncurses/files/cl-ncurses-0.1-gentoo.patch b/dev-lisp/cl-ncurses/files/cl-ncurses-0.1-gentoo.patch
new file mode 100644
index 000000000000..86b285e56a35
--- /dev/null
+++ b/dev-lisp/cl-ncurses/files/cl-ncurses-0.1-gentoo.patch
@@ -0,0 +1,129 @@
+diff -urN cl-ncurses_0.1.original/Makefile cl-ncurses_0.1/Makefile
+--- cl-ncurses_0.1.original/Makefile 2004-03-07 17:24:47.000000000 -0600
++++ cl-ncurses_0.1/Makefile 2004-03-09 01:22:45.271880072 -0600
+@@ -1,8 +1,16 @@
+ NAME=cl-ncurses
+ SOURCES=ncurses.asd *.lisp glue.c README LICENSE Makefile
+
+-all: glue.o
++CFLAGS=-fPIC -DPIC
++LDFLAGS=-shared
+
++glue.so: glue.o
++ $(LD) $(LDFLAGS) $^ -o $@
++
++.PHONY: dist clean
++
++clean:
++ -rm -f glue.so glue.o *.fasl *.x86f *~
+ dist:
+ mkdir $(NAME)
+ cp $(SOURCES) $(NAME)/
+diff -urN cl-ncurses_0.1.original/cl-ncurses.asd cl-ncurses_0.1/cl-ncurses.asd
+--- cl-ncurses_0.1.original/cl-ncurses.asd 2004-03-07 22:36:12.000000000 -0600
++++ cl-ncurses_0.1/cl-ncurses.asd 2004-03-09 00:37:42.000000000 -0600
+@@ -21,32 +21,12 @@
+ ;;;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ ;;;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+-(declaim (optimize (debug 3) (safety 3)))
+-
+-(in-package :asdf)
+-
+-(defvar *gcc* "/usr/bin/gcc")
+-
+-(defvar *gcc-options* '("-fPIC"))
++(defpackage #:cl-ncurses-system
++ (:use #:asdf #:common-lisp))
+
+-(defmethod output-files ((o compile-op) (c c-source-file))
+- (list (make-pathname :name (component-name c)
+- :type "so"
+- :defaults (component-pathname c))))
+-
+-(defmethod perform ((o load-op) (c c-source-file))
+- (let ((loader (intern "LOAD-FOREIGN-LIBRARY" :uffi)))
+- (dolist (f (input-files o c))
+- (funcall loader f))))
+-
+-(defmethod perform ((o compile-op) (c c-source-file))
+- (unless (zerop (run-shell-command "~A ~A ~{~A ~}-o ~A"
+- *gcc*
+- (namestring (component-pathname c))
+- *gcc-options*
+- (namestring (car (output-files o c)))))
+- (error 'operation-error :component c :operation o)))
++(in-package #:cl-ncurses-system)
+
++(declaim (optimize (debug 3) (safety 3)))
+
+ (defsystem :cl-ncurses
+ :version "0.1.0"
+@@ -76,7 +56,8 @@
+ (:file "getcchar" :depends-on ("packages"))
+ (:file "getch" :depends-on ("packages"))
+ (:file "getstr" :depends-on ("glue"))
+- (:c-source-file "glue")
++ (:file "glue-loader")
++ (:file "glue" :depends-on ("glue-loader"))
+ (:file "getyx" :depends-on ("packages" "glue"))
+ (:file "in_wch" :depends-on ("packages"))
+ (:file "in_wchstr" :depends-on ("packages"))
+@@ -114,5 +95,6 @@
+ (:file "util" :depends-on ("packages"))
+ (:file "variables" :depends-on ("packages"))
+ (:file "window" :depends-on ("packages"))
+- (:file "wresize" :depends-on ("packages"))
+- ))
++ (:file "wresize" :depends-on ("packages"))))
++
++;; cl-ncurses.asd ends here
+diff -urN cl-ncurses_0.1.original/glue-loader.lisp cl-ncurses_0.1/glue-loader.lisp
+--- cl-ncurses_0.1.original/glue-loader.lisp 1969-12-31 18:00:00.000000000 -0600
++++ cl-ncurses_0.1/glue-loader.lisp 2004-03-09 01:21:17.728188736 -0600
+@@ -0,0 +1,45 @@
++;;;; -*- mode: lisp; syntax: common-lisp; indent-tabs-mode: nil; base: 10; package: CL-NCURSES -*-
++
++;;;; Author: Matthew Kennedy <mkennedy@gentoo.org>
++;;;;
++;;;; This code is adapted from clsql-uffi-loader.lisp which is part of
++;;;; CLSQL. clsql-uffi-loader.lisp comes with the following
++;;;; copyright:
++;;;;
++;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
++;;;;
++;;;; CLSQL users are granted the rights to distribute and use this
++;;;; software as governed by the terms of the Lisp Lesser GNU
++;;;; Public License (http://opensource.franz.com/preamble.html),
++;;;; also known as the LLGPL.
++;;;;
++
++(in-package #:cl-ncurses)
++
++(defparameter *uffi-library-path*
++ `(,(make-pathname :directory (pathname-directory *load-truename*))
++ "/usr/lib/cl-ncurses/"))
++
++(defparameter *uffi-library-filename* nil)
++
++(defvar *uffi-supporting-libraries* '("c"))
++
++(defvar *uffi-library-loaded* nil
++ "T if foreign library was able to be loaded successfully")
++
++(defun load-uffi-foreign-library (&optional force)
++ (when force (setf *uffi-library-loaded* nil))
++ (unless *uffi-library-loaded*
++ (setf *uffi-library-filename* (find-foreign-library "glue" *uffi-library-path*))
++ (unless (probe-file *uffi-library-filename*)
++ (error "Unable to find glue.so"))
++ (if (load-foreign-library *uffi-library-filename*
++ :module "cl-ncurses"
++ :supporting-libraries
++ *uffi-supporting-libraries*)
++ (setq *uffi-library-loaded* t)
++ (error "Unable to load helper library ~A" *uffi-library-filename*))))
++
++(load-uffi-foreign-library)
++
++;; glue-loader.lisp ends here
diff --git a/dev-lisp/cl-ncurses/files/digest-cl-ncurses-0.1 b/dev-lisp/cl-ncurses/files/digest-cl-ncurses-0.1
new file mode 100644
index 000000000000..3dc22fe8d35c
--- /dev/null
+++ b/dev-lisp/cl-ncurses/files/digest-cl-ncurses-0.1
@@ -0,0 +1 @@
+MD5 c05519d7ae1d35159fc20c4718b14c77 cl-ncurses_0.1.tgz 19111
diff --git a/dev-lisp/cl-ncurses/metadata.xml b/dev-lisp/cl-ncurses/metadata.xml
new file mode 100644
index 000000000000..f418045b09c8
--- /dev/null
+++ b/dev-lisp/cl-ncurses/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>common-lisp</herd>
+</pkgmetadata>