1 |
commit: ce44969b9e3b31c9d045d7939857ef8bc63ee041 |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 31 16:44:08 2018 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 31 16:44:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=ce44969b |
7 |
|
8 |
x11-stumpwm: Bump version to 18.05 |
9 |
|
10 |
x11-wm/stumpwm/stumpwm-18.05.ebuild | 76 +++++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 76 insertions(+) |
12 |
|
13 |
diff --git a/x11-wm/stumpwm/stumpwm-18.05.ebuild b/x11-wm/stumpwm/stumpwm-18.05.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000..1da69a1a |
16 |
--- /dev/null |
17 |
+++ b/x11-wm/stumpwm/stumpwm-18.05.ebuild |
18 |
@@ -0,0 +1,76 @@ |
19 |
+# Copyright 1999-2018 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+ |
24 |
+inherit common-lisp-3 autotools elisp-common xdg-utils versionator |
25 |
+ |
26 |
+DESCRIPTION="Stumpwm is a Window Manager written entirely in Common Lisp." |
27 |
+HOMEPAGE="https://stumpwm.github.io/" |
28 |
+SRC_URI="https://github.com/stumpwm/stumpwm/archive/${PV}.tar.gz -> ${P}.tar.gz" |
29 |
+ |
30 |
+LICENSE="GPL-2" |
31 |
+SLOT="0" |
32 |
+KEYWORDS="~amd64 ~x86" |
33 |
+IUSE="contrib doc emacs" |
34 |
+ |
35 |
+RESTRICT="strip mirror" |
36 |
+ |
37 |
+RDEPEND="dev-lisp/alexandria |
38 |
+ dev-lisp/cl-ppcre |
39 |
+ dev-lisp/clx |
40 |
+ >=dev-lisp/sbcl-1.3.0 |
41 |
+ emacs? ( virtual/emacs app-emacs/slime )" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ sys-apps/texinfo |
44 |
+ doc? ( virtual/texi2dvi )" |
45 |
+ |
46 |
+PDEPEND="contrib? ( x11-wm/stumpwm-contrib )" |
47 |
+ |
48 |
+SITEFILE=70${PN}-gentoo.el |
49 |
+CLPKGDIR="${CLSOURCEROOT}/${CLPACKAGE}" |
50 |
+ |
51 |
+install_docs() { |
52 |
+ local pdffile="${PN}.pdf" |
53 |
+ |
54 |
+ texi2pdf -o "${pdffile}" "${PN}.texi.in" && dodoc "${pdffile}" || die |
55 |
+ cp "${FILESDIR}/README.Gentoo" . && sed -i "s:@VERSION@:${PV}:" README.Gentoo || die |
56 |
+ dodoc AUTHORS NEWS README.md README.Gentoo |
57 |
+ doinfo "${PN}.info" |
58 |
+ docinto examples |
59 |
+ dodoc sample-stumpwmrc.lisp |
60 |
+} |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ xdg_environment_reset |
69 |
+ econf --with-lisp=sbcl |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ emake |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ dobin stumpwm |
78 |
+ make_session_desktop StumpWM /usr/bin/stumpwm |
79 |
+ |
80 |
+ common-lisp-install-sources *.lisp |
81 |
+ common-lisp-install-asdf |
82 |
+ # Fix ASDF dir |
83 |
+ sed -i -e "/(:directory/c\ (:directory \"${CLPKGDIR}\")" \ |
84 |
+ "${D}${CLPKGDIR}/load-stumpwm.lisp" || die |
85 |
+ use doc && install_docs |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ use emacs && elisp-site-regen |
90 |
+} |
91 |
+ |
92 |
+pkg_postrm() { |
93 |
+ use emacs && elisp-site-regen |
94 |
+} |