1 |
commit: 64c1cf3bdf33ff7b3c8f6deac51a661354a11f77 |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 2 22:24:58 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 2 22:24:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=64c1cf3b |
7 |
|
8 |
x11-wm/stumpwm: Drops old |
9 |
|
10 |
x11-wm/stumpwm/stumpwm-0.9.9.ebuild | 103 ------------------------------------ |
11 |
1 file changed, 103 deletions(-) |
12 |
|
13 |
diff --git a/x11-wm/stumpwm/stumpwm-0.9.9.ebuild b/x11-wm/stumpwm/stumpwm-0.9.9.ebuild |
14 |
deleted file mode 100644 |
15 |
index ef3ef84..0000000 |
16 |
--- a/x11-wm/stumpwm/stumpwm-0.9.9.ebuild |
17 |
+++ /dev/null |
18 |
@@ -1,103 +0,0 @@ |
19 |
-# Copyright 1999-2016 Gentoo Foundation |
20 |
-# Distributed under the terms of the GNU General Public License v2 |
21 |
-# $Id$ |
22 |
- |
23 |
-EAPI=5 |
24 |
- |
25 |
-inherit common-lisp-3 eutils elisp-common autotools |
26 |
- |
27 |
-DESCRIPTION="Stumpwm is a Window Manager written entirely in Common Lisp." |
28 |
-HOMEPAGE="https://stumpwm.github.io/" |
29 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
30 |
- |
31 |
-LICENSE="GPL-2" |
32 |
-SLOT="0" |
33 |
-KEYWORDS="~amd64 ~x86" |
34 |
-IUSE="contrib doc emacs clisp ecl +sbcl" |
35 |
- |
36 |
-RESTRICT="strip mirror" |
37 |
- |
38 |
-RDEPEND="dev-lisp/cl-ppcre |
39 |
- sbcl? ( >=dev-lisp/sbcl-1.0.32 ) |
40 |
- sbcl? ( >=dev-lisp/clx-0.7.4 ) |
41 |
- !sbcl? ( !clisp? ( !ecl? ( >=dev-lisp/sbcl-1.0.32 ) ) ) |
42 |
- !sbcl? ( !clisp? ( ecl? ( >=dev-lisp/ecls-10.4.1 ) ) ) |
43 |
- !sbcl? ( clisp? ( >=dev-lisp/clisp-2.44[X,new-clx] ) ) |
44 |
- emacs? ( virtual/emacs app-emacs/slime )" |
45 |
-DEPEND="${RDEPEND} |
46 |
- sys-apps/texinfo |
47 |
- doc? ( virtual/texi2dvi )" |
48 |
- |
49 |
-SITEFILE=70${PN}-gentoo.el |
50 |
-CLPKGDIR="${CLSOURCEROOT}/${CLPACKAGE}" |
51 |
-CONTRIBDIR="${CLPKGDIR}/contrib" |
52 |
- |
53 |
-get_lisp() { |
54 |
- local lisp |
55 |
- |
56 |
- for lisp in "$@" ; do |
57 |
- use ${lisp} && echo ${lisp} && return |
58 |
- done |
59 |
-} |
60 |
- |
61 |
-do_doc() { |
62 |
- local pdffile="${PN}.pdf" |
63 |
- |
64 |
- texi2pdf -o "${pdffile}" "${PN}.texi" && dodoc "${pdffile}" || die |
65 |
- cp "${FILESDIR}/README.Gentoo" . && sed -i "s:@VERSION@:${PV}:" README.Gentoo || die |
66 |
- dodoc AUTHORS NEWS README.md README.Gentoo |
67 |
- doinfo "${PN}.info" |
68 |
- docinto examples ; dodoc sample-stumpwmrc.lisp |
69 |
-} |
70 |
- |
71 |
-do_contrib() { |
72 |
- emake install-modules |
73 |
- rm -r "${D}${CONTRIBDIR}"/.git* || die |
74 |
-} |
75 |
- |
76 |
-src_prepare() { |
77 |
- # Upstream didn't change the version before packaging |
78 |
- sed -i -e 's/:version "0.9.8"/:version "0.9.9"/' "${PN}.asd" || die |
79 |
- # Bug 534592. Does not build with asdf:oos, using require to load the package |
80 |
- sed -i "load-${PN}.lisp.in" -e "s/asdf:oos 'asdf:load-op/require/" || die |
81 |
- if use contrib ; then |
82 |
- # Fix contrib directory |
83 |
- sed -i -e "s|@CONTRIB_DIR@|@MODULE_DIR@|" make-image.lisp.in || die |
84 |
- sed -i -e "s|\~\/.${CLPACKAGE}\.d/modules|${D}${CONTRIBDIR}|" Makefile.in || die |
85 |
- sed -i -e "s|\${HOME}/\.${CLPACKAGE}\.d/modules|${CONTRIBDIR}|" configure.ac || die |
86 |
- fi |
87 |
- eautoreconf |
88 |
-} |
89 |
- |
90 |
-src_configure() { |
91 |
- local moduleconfig |
92 |
- |
93 |
- use contrib && moduleconfig="--with-module-dir=${CONTRIBDIR}/contrib" |
94 |
- econf --with-lisp=$(get_lisp sbcl clisp ecl) "${moduleconfig}" |
95 |
-} |
96 |
- |
97 |
-src_compile() { |
98 |
- emake -j1 |
99 |
-} |
100 |
- |
101 |
-src_install() { |
102 |
- common-lisp-export-impl-args $(get_lisp sbcl clisp ecl) |
103 |
- dobin stumpwm |
104 |
- make_session_desktop StumpWM /usr/bin/stumpwm |
105 |
- |
106 |
- common-lisp-install-sources *.lisp |
107 |
- common-lisp-install-asdf ${PN}.asd |
108 |
- # Fix ASDF dir |
109 |
- sed -i -e "/(:directory/c\ (:directory \"${CLPKGDIR}\")" \ |
110 |
- "${D}${CLPKGDIR}/load-stumpwm.lisp" || die |
111 |
- use doc && do_doc |
112 |
- use contrib && do_contrib |
113 |
-} |
114 |
- |
115 |
-pkg_postinst() { |
116 |
- use emacs && elisp-site-regen |
117 |
-} |
118 |
- |
119 |
-pkg_postrm() { |
120 |
- use emacs && elisp-site-regen |
121 |
-} |