1 |
commit: 51f9646db87d709a20847abca9f51f5a6d1ddb2f |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 05:51:10 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 04:48:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51f9646d |
7 |
|
8 |
x11-wm/subtle: add ruby27, ruby30; update minitar dep |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
x11-wm/subtle/subtle-0.11.3244-r1.ebuild | 83 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 83 insertions(+) |
15 |
|
16 |
diff --git a/x11-wm/subtle/subtle-0.11.3244-r1.ebuild b/x11-wm/subtle/subtle-0.11.3244-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..1375736daf4 |
19 |
--- /dev/null |
20 |
+++ b/x11-wm/subtle/subtle-0.11.3244-r1.ebuild |
21 |
@@ -0,0 +1,83 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI="7" |
26 |
+USE_RUBY="ruby26 ruby27 ruby30" |
27 |
+ |
28 |
+inherit ruby-ng toolchain-funcs |
29 |
+ |
30 |
+SRC_URI="https://dev.gentoo.org/~radhermit/dist/${P}.tar.gz" |
31 |
+KEYWORDS="~amd64 ~x86" |
32 |
+ |
33 |
+DESCRIPTION="A manual tiling window manager" |
34 |
+HOMEPAGE="https://subforge.org/projects/subtle/wiki" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+IUSE="debug doc +xft xinerama xpm +xrandr +xtest" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+ |
41 |
+RDEPEND="x11-libs/libX11 |
42 |
+ xft? ( x11-libs/libXft ) |
43 |
+ xinerama? ( x11-libs/libXinerama ) |
44 |
+ xpm? ( x11-libs/libXpm ) |
45 |
+ xtest? ( x11-libs/libXtst ) |
46 |
+ xrandr? ( x11-libs/libXrandr )" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+BDEPEND="virtual/pkgconfig" |
49 |
+ |
50 |
+ruby_add_rdepend "dev-ruby/minitar" |
51 |
+ruby_add_bdepend "dev-ruby/rake doc? ( dev-ruby/rdoc )" |
52 |
+ |
53 |
+all_ruby_unpack() { |
54 |
+ if [[ ${PV} == "9999" ]]; then |
55 |
+ mercurial_src_unpack |
56 |
+ else |
57 |
+ default |
58 |
+ fi |
59 |
+} |
60 |
+ |
61 |
+each_ruby_configure() { |
62 |
+ local myconf |
63 |
+ use debug && myconf+=" debug=yes" || myconf+=" debug=no" |
64 |
+ use xft && myconf+=" xft=yes" || myconf+=" xft=no" |
65 |
+ use xinerama && myconf+=" xinerama=yes" || myconf+=" xinerama=no" |
66 |
+ use xpm && myconf+=" xpm=yes" || myconf+=" xpm=no" |
67 |
+ use xtest && myconf+=" xtest=yes" || myconf+=" xtest=no" |
68 |
+ use xrandr && myconf+=" xrandr=yes" || myconf+=" xrandr=no" |
69 |
+ |
70 |
+ ${RUBY} -S rake -v CC="$(tc-getCC)" destdir="${D}" ${myconf} config || die |
71 |
+} |
72 |
+ |
73 |
+each_ruby_compile() { |
74 |
+ ${RUBY} -S rake -v build || die |
75 |
+} |
76 |
+ |
77 |
+all_ruby_compile() { |
78 |
+ use doc && { rake rdoc || die ; } |
79 |
+} |
80 |
+ |
81 |
+each_ruby_install() { |
82 |
+ ${RUBY} -S rake -v install || die |
83 |
+} |
84 |
+ |
85 |
+all_ruby_install() { |
86 |
+ dodir /etc/X11/Sessions |
87 |
+ cat <<-EOF > "${D}/etc/X11/Sessions/${PN}" |
88 |
+ #!/bin/sh |
89 |
+ exec /usr/bin/subtle |
90 |
+ EOF |
91 |
+ fperms a+x /etc/X11/Sessions/${PN} |
92 |
+ |
93 |
+ insinto /usr/share/xsessions |
94 |
+ doins data/${PN}.desktop |
95 |
+ |
96 |
+ dodoc AUTHORS NEWS |
97 |
+ |
98 |
+ use doc && dodoc -r html |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ elog "Note that surserver will currently not work since dev-ruby/datamapper" |
103 |
+ elog "is not in the tree." |
104 |
+} |