summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2005-10-04 18:19:43 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2005-10-04 18:19:43 +0000
commit34a4758e0ef4c0cadeefac516f5b777ed37c4c40 (patch)
treed84537cd152563f5bf0781c36411cda2fba48978 /dev-lisp/cl-gd/cl-gd-0.5.1.ebuild
parentremove COPYING and INSTALL from docs (diff)
downloadgentoo-2-34a4758e0ef4c0cadeefac516f5b777ed37c4c40.tar.gz
gentoo-2-34a4758e0ef4c0cadeefac516f5b777ed37c4c40.tar.bz2
gentoo-2-34a4758e0ef4c0cadeefac516f5b777ed37c4c40.zip
New upstream version.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'dev-lisp/cl-gd/cl-gd-0.5.1.ebuild')
-rw-r--r--dev-lisp/cl-gd/cl-gd-0.5.1.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-lisp/cl-gd/cl-gd-0.5.1.ebuild b/dev-lisp/cl-gd/cl-gd-0.5.1.ebuild
new file mode 100644
index 000000000000..9cc9a858f268
--- /dev/null
+++ b/dev-lisp/cl-gd/cl-gd-0.5.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-gd/cl-gd-0.5.1.ebuild,v 1.1 2005/10/04 18:19:43 mkennedy Exp $
+
+inherit common-lisp
+
+DESCRIPTION="CL-GD is a library for Common Lisp which interfaces ti the GD Graphics Library"
+HOMEPAGE="http://weitz.de/cl-gd http://www.cliki.net/cl-gd"
+SRC_URI="mirror://gentoo/${PN}_${PV}.orig.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lisp/cl-uffi-1.3.4
+ dev-lisp/cl-cffi
+ media-libs/libpng
+ media-libs/jpeg
+ media-libs/freetype
+ >=media-libs/gd-2.0.28
+ sys-libs/zlib"
+
+CLPACKAGE=cl-gd
+
+src_compile() {
+ gcc ${CFLAGS} -fPIC -c cl-gd-glue.c
+ ld -shared -lgd -lz -lpng -ljpeg -lfreetype -lm cl-gd-glue.o -o cl-gd-glue.so
+ rm cl-gd-glue.o
+}
+
+src_install() {
+ insinto /usr/lib
+ doins cl-gd-glue.so
+
+ insinto /usr/share/common-lisp/source/cl-gd
+ doins `ls *.asd *.lisp |grep -v ^cl-gd-test`
+ dodir /usr/share/common-lisp/systems
+ dosym /usr/share/common-lisp/source/cl-gd/cl-gd.asd \
+ /usr/share/common-lisp/systems/cl-gd.asd
+
+ insinto /usr/share/common-lisp/source/cl-gd-test
+ doins cl-gd-test.asd cl-gd-test.lisp
+ dosym /usr/share/common-lisp/source/cl-gd-test/cl-gd-test.asd \
+ /usr/share/common-lisp/systems/cl-gd-test.asd
+
+ insinto /usr/share/common-lisp/source/cl-gd/test
+ doins -r test/*
+ insinto /usr/share/common-lisp/source/cl-gd/test/orig
+ doins test/orig/*
+
+ dodoc CHANGELOG README
+ dohtml doc/*
+}
+
+pkg_preinst() {
+ rm -rf /usr/lib/common-lisp/*/{cl-gd,cl-gd-test} || true
+}
+
+pkg_postrm() {
+ rm -rf /usr/lib/common-lisp/*/{cl-gd,cl-gd-test} || true
+}
+
+pkg_postinst() {
+ /usr/sbin/register-common-lisp-source cl-gd
+ /usr/sbin/register-common-lisp-source cl-gd-test
+}
+
+pkg_prerm() {
+ /usr/sbin/unregister-common-lisp-source cl-gd
+ /usr/sbin/unregister-common-lisp-source cl-gd-test
+}