summaryrefslogtreecommitdiff
blob: 6f3336b9e20b5bdd64d4d2707355b6a7b459693a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

inherit common-lisp-2 eutils

DESCRIPTION="Linedit is a readline-style library written in Common Lisp."
HOMEPAGE="http://www.common-lisp.net/project/linedit/"
SRC_URI="ftp://cnic.fr/gentoo-lisp-overlay/${PN}_${PV}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

RDEPEND="!dev-lisp/cl-${PN}
		dev-lisp/terminfo
		dev-lisp/uffi
		dev-lisp/osicat"

S="${WORKDIR}/${PN}_${PV}"

src_unpack() {
	unpack ${A}
	# adds uffi-loader.lisp, removes building .so files
	epatch "${FILESDIR}"/${PV}-${PN}.asd-uffi-glue-gentoo.patch
	cp "${FILESDIR}"/${PV}-Makefile "${S}"/Makefile
}

src_compile() {
	make || die "Cannot compile shared object helper"
}

src_install() {
	common-lisp-install *.{lisp,asd} version.lisp-expr
	common-lisp-symlink-asdf
	exeinto /usr/$(get_libdir)/${PN}
	doexe *.so
}