public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "José María Alonso" <nimiux@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/linedit/files/, dev-lisp/linedit/
Date: Sat, 26 Jul 2014 15:47:00 +0000 (UTC)	[thread overview]
Message-ID: <1406389683.309cbe75930279a6f3ecc121d7e0b1e9fee3fc76.nimiux@gentoo> (raw)
Message-ID: <20140726154700.vKu54ChMdU-WSiN9KSFMQj-IJXgfdtPpfSlTxARZNM0@z> (raw)

commit:     309cbe75930279a6f3ecc121d7e0b1e9fee3fc76
Author:     Chema Alonso <nimiux <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 26 15:48:03 2014 +0000
Commit:     José María Alonso <nimiux <AT> gentoo <DOT> org>
CommitDate: Sat Jul 26 15:48:03 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/lisp.git;a=commit;h=309cbe75

dev-lisp/linedit: new live ebuild

---
 .../files/9999-linedit.asd-uffi-glue-gentoo.patch  | 20 +++++++
 dev-lisp/linedit/linedit-9999.ebuild               | 62 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/dev-lisp/linedit/files/9999-linedit.asd-uffi-glue-gentoo.patch b/dev-lisp/linedit/files/9999-linedit.asd-uffi-glue-gentoo.patch
new file mode 100644
index 0000000..97dabc4
--- /dev/null
+++ b/dev-lisp/linedit/files/9999-linedit.asd-uffi-glue-gentoo.patch
@@ -0,0 +1,20 @@
+diff -Nuar a/linedit.asd b/linedit.asd
+--- a/linedit.asd	2014-07-26 14:24:03.109913304 +0200
++++ b/linedit.asd	2014-07-26 14:25:34.279912792 +0200
+@@ -75,10 +75,13 @@
+    (:file "matcher" :depends-on ("packages"))
+ 
+    ;; Backend
+-   (:file "backend" :depends-on ("utility-macros"))
+-   (:uffi-c-source-file "terminal_glue")
++   ;(: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-9999.ebuild b/dev-lisp/linedit/linedit-9999.ebuild
new file mode 100644
index 0000000..6151256
--- /dev/null
+++ b/dev-lisp/linedit/linedit-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit common-lisp-3 eutils flag-o-matic git-2 multilib toolchain-funcs
+
+DESCRIPTION="Linedit is a readline-style library written in Common Lisp."
+HOMEPAGE="http://www.common-lisp.net/project/linedit/"
+EGIT_REPO_URI="git://common-lisp.net/projects/${PN}/${PN}.git"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="!dev-lisp/cl-${PN}
+		dev-lisp/alexandria
+		dev-lisp/madeira-port
+		>=dev-lisp/osicat-0.6.0
+		dev-lisp/terminfo
+		dev-lisp/uffi"
+
+CFILES="terminal_glue"
+
+@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/terminal_glue.so")
+	EOF
+}
+
+src_prepare() {
+	epatch "${FILESDIR}"/${PV}-${PN}.asd-uffi-glue-gentoo.patch
+	create_uffi_loader
+}
+
+src_compile() {
+	strip-flags
+	for filename in "${CFILES}" ; do
+		@cc "${filename}.c" ${CFLAGS} ${LDFLAGS} \
+	    	-fPIC -DPIC -shared -Wl,-soname="${filename}" -o "${filename}.so" \
+	       	|| die "Cannot compile ${filename}.c"
+	done
+}
+
+src_install() {
+	common-lisp-install-sources *.lisp ports/
+	common-lisp-install-asdf
+	exeinto "/usr/$(get_libdir)/${PN}"
+	doexe *.so
+}


             reply	other threads:[~2014-07-26 15:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-11 23:16 José María Alonso [this message]
2014-07-26 15:47 ` [gentoo-commits] proj/lisp:master commit in: dev-lisp/linedit/files/, dev-lisp/linedit/ José María Alonso
  -- strict thread matches above, loose matches on Subject: below --
2022-04-02 15:34 Ulrich Müller
2018-05-28 18:01 José María Alonso
2013-04-01 18:56 José María Alonso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406389683.309cbe75930279a6f3ecc121d7e0b1e9fee3fc76.nimiux@gentoo \
    --to=nimiux@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox