diff options
-rw-r--r-- | dev-lisp/linedit/Manifest | 1 | ||||
-rw-r--r-- | dev-lisp/linedit/files/0.17.5-linedit.asd-drop-madeira-port.patch | 21 | ||||
-rw-r--r-- | dev-lisp/linedit/files/0.17.5-linedit.asd-uffi-glue.patch | 58 | ||||
-rw-r--r-- | dev-lisp/linedit/linedit-0.17.5.ebuild | 62 |
4 files changed, 0 insertions, 142 deletions
diff --git a/dev-lisp/linedit/Manifest b/dev-lisp/linedit/Manifest index c73a3f21..75c8737a 100644 --- a/dev-lisp/linedit/Manifest +++ b/dev-lisp/linedit/Manifest @@ -1,2 +1 @@ -DIST linedit-0.17.5.tar.gz 36115 BLAKE2B 9aba01de263b26c09650e2fa2873dfd5061bf1272a9fb176ac03812aa8bf2e8271906f8b813844837abb6fd280ce27524105408afa4f1bb30454df1748ace473 SHA512 c434d897bea34b04a08fc75f01741193f0bc6a72c0f656e7f8673771c5388bc7462f2c6980ff9f31dccf436bad6b8133bbbe5ea68e27befc0e8a91e47536a919 DIST linedit-0.17.6.tar.bz2 19275 BLAKE2B 3bfb4e4417902af32a79764e8348299da2b7a069d97f70f759ce3a89bad481d448c355db29c1c40e9a17c7da64ae73c4fc59cf9a4b5a077a8e8ea632c4fe049e SHA512 ca4b0e6158b57d4745cdd5649ef031851efce79366405ca0eb508cb2d574e94685b5ed98403718d73d40ab1ac84b08b4854c5b059a72cc717b66a38169a25b67 diff --git a/dev-lisp/linedit/files/0.17.5-linedit.asd-drop-madeira-port.patch b/dev-lisp/linedit/files/0.17.5-linedit.asd-drop-madeira-port.patch deleted file mode 100644 index a6576ec9..00000000 --- a/dev-lisp/linedit/files/0.17.5-linedit.asd-drop-madeira-port.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Nuar a/linedit.asd b/linedit.asd ---- a/linedit.asd 2017-10-16 23:10:11.424173773 +0200 -+++ b/linedit.asd 2017-10-16 23:10:48.764173614 +0200 -@@ -30,7 +30,6 @@ - :licence "MIT" - :author "Nikodemus Siivola <nikodemus@random-state.net>" - :depends-on (:uffi :terminfo :osicat :alexandria) -- :defsystem-depends-on (:madeira-port) - :components - ( - ;; Common -@@ -60,6 +59,6 @@ - (:module "ports" - :depends-on ("main") - :components -- ((:madeira-port "sbcl" :when :sbcl) -- (:madeira-port "ccl" :when :ccl) -- (:madeira-port "generic" :unless (:or :sbcl :ccl)))))) -+ ((:file "sbcl" :if-feature :sbcl) -+ (:file "ccl" :if-feature :ccl) -+ (:file "generic" :if-feature (:not (:or :sbcl :ccl))))))) diff --git a/dev-lisp/linedit/files/0.17.5-linedit.asd-uffi-glue.patch b/dev-lisp/linedit/files/0.17.5-linedit.asd-uffi-glue.patch deleted file mode 100644 index fbbd38da..00000000 --- a/dev-lisp/linedit/files/0.17.5-linedit.asd-uffi-glue.patch +++ /dev/null @@ -1,58 +0,0 @@ -diff -Nuar a/linedit.asd b/linedit.asd ---- a/linedit.asd 2015-06-24 00:10:05.000000000 +0200 -+++ b/linedit.asd 2017-10-16 21:17:13.314174329 +0200 -@@ -24,40 +24,6 @@ - - (in-package :linedit-system) - --(defvar *gcc* "/usr/bin/gcc") -- --(defvar *gcc-options* -- #-(or darwin macosx) -- (list "-shared" "-fPIC") -- #+(or darwin macosx) -- (append -- (list "-dynamic" "-bundle") -- #+(or x86 x86-64) -- (list "-arch" "x86_64" "-arch" "i386") -- #-sbcl -- (list "/usr/lib/bundle1.o" "-flat_namespace" "-undefined" "suppress"))) -- --;;; Separate class so that we don't mess up other packages --(defclass uffi-c-source-file (c-source-file) ()) -- --(defmethod output-files ((o compile-op) (c uffi-c-source-file)) -- (list (make-pathname :name (component-name c) -- :type #-(or darwin macosx) "so" #+(or darwin macosx) "dylib" -- :defaults (component-pathname c)))) -- --(defmethod perform ((o load-op) (c uffi-c-source-file)) -- (let ((loader (intern (symbol-name '#:load-foreign-library) :uffi))) -- (dolist (f (asdf::input-files o c)) -- (funcall loader f :module (pathname-name f))))) -- --(defmethod perform ((o compile-op) (c uffi-c-source-file)) -- (unless (zerop (run-shell-command "~S ~S ~{~S ~}-o ~S" -- *gcc* -- (namestring (component-pathname c)) -- *gcc-options* -- (namestring (car (output-files o c))))) -- (error 'operation-error :component c :operation o))) -- - (defsystem :linedit - :version "0.17.5" - :description "Readline-style library." -@@ -74,10 +40,10 @@ - (:file "matcher" :depends-on ("packages")) - - ;; Backend -- (:file "backend" :depends-on ("utility-macros")) -- (:uffi-c-source-file "terminal_glue") -+ (:file "uffi-loader" :depends-on ("packages")) -+ (:file "backend" :depends-on ("utility-macros" "uffi-loader")) - (:file "terminal-translations" :depends-on ("packages")) -- (:file "terminal" :depends-on ("terminal-translations" "backend" "terminal_glue")) -+ (:file "terminal" :depends-on ("terminal-translations" "backend" "uffi-loader")) - (:file "smart-terminal" :depends-on ("terminal" "matcher")) - (:file "dumb-terminal" :depends-on ("terminal")) - diff --git a/dev-lisp/linedit/linedit-0.17.5.ebuild b/dev-lisp/linedit/linedit-0.17.5.ebuild deleted file mode 100644 index a13ea021..00000000 --- a/dev-lisp/linedit/linedit-0.17.5.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit common-lisp-3 eutils flag-o-matic multilib toolchain-funcs - -DESCRIPTION="Linedit is a readline-style library written in Common Lisp." -HOMEPAGE="http://www.common-lisp.net/project/linedit/" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="" - -RDEPEND="dev-lisp/alexandria - dev-lisp/osicat - dev-lisp/terminfo - dev-lisp/uffi" - -HTML_DOCS=( public_html/. ) - -@cc() { - local cc=$(tc-getCC) - echo "${cc}" "${@}" - "${cc}" "${@}" -} - -create_uffi_loader() { - cat > uffi-loader.lisp <<-EOF - ;;;; -*- mode: lisp; syntax: common-lisp; indent-tabs-mode: nil; base: 10; package: linedit -*- - (in-package :linedit) - - (uffi:load-foreign-library #p"/usr/$(get_libdir)/linedit/signals.so") - (uffi:load-foreign-library #p"/usr/$(get_libdir)/linedit/terminal_glue.so") - EOF -} - -src_prepare() { - # terminfo lives in a separate package - rm "${S}"/terminfo.* || die - eapply "${FILESDIR}"/${PV}-${PN}.asd-uffi-glue.patch - eapply "${FILESDIR}"/${PV}-${PN}.asd-drop-madeira-port.patch - create_uffi_loader - eapply_user -} - -src_compile() { - strip-flags - @cc "terminal_glue.c" ${CFLAGS} ${LDFLAGS} \ - -fPIC -DPIC -shared -Wl,-soname="terminal_glue" -o "terminal_glue.so" \ - || die -} - -src_install() { - common-lisp-install-sources -t all *.lisp ports/ - common-lisp-install-asdf - einstalldocs - exeinto "/usr/$(get_libdir)/${PN}" - doexe *.so -} |