blob: a2a7f53854651612b749aaf3fbeeddbc09324fe7 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-uffi/cl-uffi-1.3.6.ebuild,v 1.4 2004/06/24 23:56:25 agriffis Exp $
inherit common-lisp eutils
DESCRIPTION="UFFI is a package to [portably] interface Common Lisp programs with C-language compatible libraries."
HOMEPAGE="http://uffi.med-info.com/"
SRC_URI="http://files.b9.com/uffi/uffi-${PV}.tar.gz"
LICENSE="LLGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
S=${WORKDIR}/uffi-${PV}
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${PV}-gentoo.patch
}
src_compile() {
make -C tests linux
}
src_install() {
dodir /usr/share/common-lisp/systems
insinto /usr/share/common-lisp/source/uffi/src
doins src/*.lisp
insinto /usr/share/common-lisp/source/uffi
doins uffi.asd
dosym /usr/share/common-lisp/source/uffi/uffi.asd /usr/share/common-lisp/systems/uffi.asd
insinto /usr/share/common-lisp/source/uffi-tests/tests
doins tests/*.lisp
insinto /usr/share/common-lisp/source/uffi-tests/
doins uffi-tests.asd
dosym /usr/share/common-lisp/source/uffi-tests/uffi-tests.asd /usr/share/common-lisp/systems/uffi-tests.asd
insinto /usr/lib/uffi
doins tests/*.so
dodoc AUTHORS ChangeLog INSTALL LICENSE NEWS README TODO doc/uffi.pdf doc/COPYING.GFDL
tar xfz doc/html.tar.gz
dohtml html/*
for i in examples benchmarks ; do
insinto /usr/share/doc/${P}/$i
doins $i/*
done
}
pkg_postinst() {
/usr/sbin/register-common-lisp-source uffi
/usr/sbin/register-common-lisp-source uffi-tests
}
pkg_prerm() {
/usr/sbin/unregister-common-lisp-source uffi
/usr/sbin/unregister-common-lisp-source uffi-tests
}
pkg_preinst() {
rm -rf /usr/lib/common-lisp/*/{uffi,uffi-tests} || true
}
pkg_postrm() {
rm -rf /usr/lib/common-lisp/*/{uffi,uffi-tests} || true
}
|