1 |
commit: 28aa04796bfe5efc0b87b7c0ee677f8d0b72e42c |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 28 14:49:34 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 28 14:49:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=28aa0479 |
7 |
|
8 |
x11-wm/stumpwm: Bumps version to 1.0.1-rc |
9 |
|
10 |
x11-wm/stumpwm/stumpwm-1.0.1_rc.ebuild | 77 ++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 77 insertions(+) |
12 |
|
13 |
diff --git a/x11-wm/stumpwm/stumpwm-1.0.1_rc.ebuild b/x11-wm/stumpwm/stumpwm-1.0.1_rc.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000..13ae3486 |
16 |
--- /dev/null |
17 |
+++ b/x11-wm/stumpwm/stumpwm-1.0.1_rc.ebuild |
18 |
@@ -0,0 +1,77 @@ |
19 |
+# Copyright 1999-2017 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 |
+MY_PV="$(replace_version_separator '_' '-')" |
27 |
+ |
28 |
+DESCRIPTION="Stumpwm is a Window Manager written entirely in Common Lisp." |
29 |
+HOMEPAGE="https://stumpwm.github.io/" |
30 |
+SRC_URI="https://github.com/stumpwm/stumpwm/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="contrib doc emacs" |
36 |
+ |
37 |
+RESTRICT="strip mirror" |
38 |
+ |
39 |
+RDEPEND="dev-lisp/cl-ppcre |
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 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
49 |
+SITEFILE=70${PN}-gentoo.el |
50 |
+CLPKGDIR="${CLSOURCEROOT}/${CLPACKAGE}" |
51 |
+ |
52 |
+install_docs() { |
53 |
+ local pdffile="${PN}.pdf" |
54 |
+ |
55 |
+ texi2pdf -o "${pdffile}" "${PN}.texi.in" && dodoc "${pdffile}" || die |
56 |
+ cp "${FILESDIR}/README.Gentoo" . && sed -i "s:@VERSION@:${PV}:" README.Gentoo || die |
57 |
+ dodoc AUTHORS NEWS README.md README.Gentoo |
58 |
+ doinfo "${PN}.info" |
59 |
+ docinto examples |
60 |
+ dodoc sample-stumpwmrc.lisp |
61 |
+} |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ eautoreconf |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ xdg_environment_reset |
70 |
+ econf --with-lisp=sbcl |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake -j1 |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dobin stumpwm |
79 |
+ make_session_desktop StumpWM /usr/bin/stumpwm |
80 |
+ |
81 |
+ common-lisp-install-sources *.lisp |
82 |
+ common-lisp-install-asdf |
83 |
+ # Fix ASDF dir |
84 |
+ sed -i -e "/(:directory/c\ (:directory \"${CLPKGDIR}\")" \ |
85 |
+ "${D}${CLPKGDIR}/load-stumpwm.lisp" || die |
86 |
+ use doc && install_docs |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ use emacs && elisp-site-regen |
91 |
+} |
92 |
+ |
93 |
+pkg_postrm() { |
94 |
+ use emacs && elisp-site-regen |
95 |
+} |