summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lisp/cl-mcclim/cl-mcclim-0.9.ebuild')
-rw-r--r--dev-lisp/cl-mcclim/cl-mcclim-0.9.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-lisp/cl-mcclim/cl-mcclim-0.9.ebuild b/dev-lisp/cl-mcclim/cl-mcclim-0.9.ebuild
new file mode 100644
index 000000000000..fd192efbeb8a
--- /dev/null
+++ b/dev-lisp/cl-mcclim/cl-mcclim-0.9.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-mcclim/cl-mcclim-0.9.ebuild,v 1.1 2004/03/04 21:56:45 mkennedy Exp $
+
+inherit common-lisp
+
+DESCRIPTION="McCLIM is a free software implementation of CLIM."
+HOMEPAGE="http://clim.mikemac.com/
+ http://clim.mikemac.com/spec/clim.html"
+SRC_URI="http://clim.mikemac.com/downloads/snapshots/src/McCLIM-${PV}.tgz"
+LICENSE="LLGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+DEPEND="dev-lisp/common-lisp-controller
+ dev-lisp/cmucl-source
+ dev-lisp/cl-clx-sbcl
+ doc? ( media-gfx/transfig
+ media-libs/netpbm
+ virtual/tetex )"
+
+CLPACKAGE="clim clim-clx clim-examples"
+
+S=${WORKDIR}/McCLIM
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PV}/system.lisp-gentoo.patch
+ mkdir ${S}/clim-spec
+}
+
+src_compile() {
+ if use doc; then
+ make -C Doc manual.ps
+ if [ -x /usr/bin/lisp ]; then
+ lisp -batch -noinit -nosite-init -eval "
+(progn
+ (compile-file \"Tools/gilbert/clim-doc-convert\")
+ (quit))"
+ lisp -batch -noinit -nositeinit \
+ -load Tools/gilbert/clim-doc-convert \
+ -eval "
+(progn
+ (defparameter clim-doc-convert::*mcclim-base-dir* \"${S}/\")
+ (defparameter clim-doc-convert::*output-directory* \"${S}/clim-spec/\")
+ (clim-doc-convert:run)
+ (quit))"
+ elif [ -x /usr/bin/sbcl ]; then
+ ewarn "Documentation cannot be built with SBCL at this time"
+ elif [ -x /usr/bin/clisp ]; then
+ ewarn "Documentation cannot be built with CLISP at this time"
+ fi
+ fi
+}
+
+src_install() {
+ insinto /usr/share/common-lisp/source/clim
+ doins *.lisp
+ for i in Apps Backends Examples Experimental Goatee Images Lisp-Dep Looks; do
+ cp -r ${i} ${D}/usr/share/common-lisp/source/clim/
+ done
+ dodir /usr/share/common-lisp/systems/
+
+ dosym /usr/share/common-lisp/source/clim/system.lisp /usr/share/common-lisp/systems/clim.asd
+
+ for i in clim-clx clim-examples; do
+ dosym /usr/share/common-lisp/source/clim /usr/share/common-lisp/source/${i}
+ dosym /usr/share/common-lisp/source/${i}/system.lisp /usr/share/common-lisp/systems/${i}.asd
+ done
+
+ dodoc README Copyright TODO INSTALL*
+
+ if use doc; then
+ dodoc Doc/manual.ps
+ insinto /usr/share/doc/${PF}/html/Spec
+ doins clim-spec/*
+ fi
+
+ find ${D} -type d -name CVS -print |xargs rm -rf
+}