* [gentoo-commits] proj/lisp:master commit in: x11-wm/clfswm/files/, x11-wm/clfswm/
@ 2016-06-16 9:30 José María Alonso
0 siblings, 0 replies; only message in thread
From: José María Alonso @ 2016-06-16 9:30 UTC (permalink / raw
To: gentoo-commits
commit: 55be9b361f78ec9c35723219e1541df19fc07d87
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 16 09:35:22 2016 +0000
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
CommitDate: Thu Jun 16 09:35:22 2016 +0000
URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=55be9b36
x11-wm/clfswm: Moved from the Sunrise Overlay (bug #398779)
x11-wm/clfswm/clfswm-1106.2.ebuild | 49 +++++++++++++++++++++++
x11-wm/clfswm/files/clfswm-1106-2-configure.patch | 44 ++++++++++++++++++++
x11-wm/clfswm/files/clfswm-1106-2-makefile.patch | 38 ++++++++++++++++++
x11-wm/clfswm/metadata.xml | 5 +++
4 files changed, 136 insertions(+)
diff --git a/x11-wm/clfswm/clfswm-1106.2.ebuild b/x11-wm/clfswm/clfswm-1106.2.ebuild
new file mode 100644
index 0000000..7893d1a
--- /dev/null
+++ b/x11-wm/clfswm/clfswm-1106.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+MY_P="${P/./-}"
+DESCRIPTION="100% Common Lisp X11 window manager (based on Tinywm and Stumpwm)"
+HOMEPAGE="http://common-lisp.net/project/clfswm"
+SRC_URI="http://common-lisp.net/project/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lisp/clisp"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${MY_P}-configure.patch
+ epatch "${FILESDIR}"/${MY_P}-makefile.patch
+}
+
+src_configure() {
+ ./configure --prefix "${EPREFIX}"/usr \
+ --libdir $(get_libdir) \
+ --with-lisp clisp \
+ --with-clfswm "${EPREFIX}"/usr/$(get_libdir)/${PN} \
+ --with-asdf "${EPREFIX}"/usr/$(get_libdir)/${PN}/contrib \
+ --lisp-bin "${EPREFIX}"/usr/bin/clisp \
+ --lisp-opt "-K full" || die
+}
+
+src_install() {
+ emake DESTDIR="${ED}"/usr install
+ dodoc README ChangeLog
+}
+
+pkg_postinst() {
+ elog "Clfswm will compile itself into \$XDG_CACHE_HOME!"
+ elog "Make sure the variable is set."
+ elog ""
+ elog "If you want to use different lisp-implementations"
+ elog "change the script '/usr/bin/clfswm'."
+}
diff --git a/x11-wm/clfswm/files/clfswm-1106-2-configure.patch b/x11-wm/clfswm/files/clfswm-1106-2-configure.patch
new file mode 100644
index 0000000..8e6a6c2
--- /dev/null
+++ b/x11-wm/clfswm/files/clfswm-1106-2-configure.patch
@@ -0,0 +1,44 @@
+--- clfswm-1106-2/configure.old 2011-06-17 20:55:15.000000000 +0200
++++ clfswm-1106-2/configure 2012-01-09 02:31:15.558044321 +0100
+@@ -3,6 +3,7 @@
+ CONFIGURE_VERSION=0.2
+
+ PREFIX="/usr/local"
++LIBDIR="lib"
+ lisp=clisp
+ lisp_opt=''
+ lisp_bin=''
+@@ -21,6 +22,7 @@
+ -h, --help display this help and exit
+ -V, --version display version information and exit
+ --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local]
++ --libdir=LIBDIR libdir path
+ -l, --with-lisp use <lisp> as the common lisp implementation type [$lisp]
+ -b, --lisp-bin use <bin> as the common lisp program [$lisp_bin] (default: same as with-lisp type)
+ -o, --lisp-opt use <opt> as lisp option [$lisp_opt]
+@@ -50,6 +52,9 @@
+ --prefix)
+ shift
+ PREFIX="$1" ;;
++ --libdir)
++ shift
++ LIBDIR="$1" ;;
+ -d|--dump-path)
+ shift
+ dump_path="$1" ;;
+@@ -98,6 +103,7 @@
+
+
+ echo " prefix=$PREFIX
++ libdir=$LIBDIR
+ with-lisp=$lisp
+ lisp-bin=$lisp_bin
+ lisp-opt=$lisp_opt
+@@ -117,6 +123,7 @@
+
+ sed -e "s#+DESTDIR+#$DESTDIR#g" \
+ -e "s#+BUILD_PATH+#$(pwd)/#g" \
++ -e "s#+LIBDIR+#$LIBDIR#g" \
+ Makefile.template > Makefile
+
+
diff --git a/x11-wm/clfswm/files/clfswm-1106-2-makefile.patch b/x11-wm/clfswm/files/clfswm-1106-2-makefile.patch
new file mode 100644
index 0000000..1c5ba15
--- /dev/null
+++ b/x11-wm/clfswm/files/clfswm-1106-2-makefile.patch
@@ -0,0 +1,38 @@
+--- clfswm-1106-2/Makefile.template.old 2011-06-17 20:55:15.000000000 +0200
++++ clfswm-1106-2/Makefile.template 2012-01-09 02:10:44.751959431 +0100
+@@ -1,6 +1,7 @@
+ # -*- makefile -*-
+ DESTDIR=+DESTDIR+
+ BUILD_PATH=+BUILD_PATH+
++LIBDIR=+LIBDIR+
+
+ build:
+ @echo "Building"
+@@ -11,13 +12,13 @@
+
+ install:
+ mkdir -p $(DESTDIR)/bin
+- rm -rf $(DESTDIR)/lib/clfswm/
+- mkdir -p $(DESTDIR)/lib/clfswm/src
++ rm -rf $(DESTDIR)/$(LIBDIR)/clfswm/
++ mkdir -p $(DESTDIR)/$(LIBDIR)/clfswm/src
+ mkdir -p $(DESTDIR)/share/doc/clfswm
+ cp $(BUILD_PATH)/clfswm $(DESTDIR)/bin
+- cp $(BUILD_PATH)/clfswm.asd $(DESTDIR)/lib/clfswm/
+- cp -R $(BUILD_PATH)/src/*.lisp $(DESTDIR)/lib/clfswm/src
+- cp -R $(BUILD_PATH)/contrib $(DESTDIR)/lib/clfswm/
++ cp $(BUILD_PATH)/clfswm.asd $(DESTDIR)/$(LIBDIR)/clfswm/
++ cp -R $(BUILD_PATH)/src/*.lisp $(DESTDIR)/$(LIBDIR)/clfswm/src
++ cp -R $(BUILD_PATH)/contrib $(DESTDIR)/$(LIBDIR)/clfswm/
+ cp -R $(BUILD_PATH)/doc/* $(DESTDIR)/share/doc/clfswm/
+ cp -R $(BUILD_PATH)/AUTHORS $(DESTDIR)/share/doc/clfswm/
+ cp -R $(BUILD_PATH)/COPYING $(DESTDIR)/share/doc/clfswm/
+@@ -31,7 +32,7 @@
+
+ uninstall:
+ rm -rf $(DESTDIR)/bin/clfswm
+- rm -rf $(DESTDIR)/lib/clfswm
++ rm -rf $(DESTDIR)/$(LIBDIR)/clfswm
+ rm -rf $(DESTDIR)/share/doc/clfswm
+
+ clean:
diff --git a/x11-wm/clfswm/metadata.xml b/x11-wm/clfswm/metadata.xml
new file mode 100644
index 0000000..31dc017
--- /dev/null
+++ b/x11-wm/clfswm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-16 9:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 9:30 [gentoo-commits] proj/lisp:master commit in: x11-wm/clfswm/files/, x11-wm/clfswm/ José María Alonso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox