1 |
commit: aca0a1dcea75b81af76e47a03d61e31f7a5a6fe5 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 00:33:29 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 00:37:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aca0a1dc |
7 |
|
8 |
x11-wm/icewm: Dropped gnome support (bug #608274). |
9 |
|
10 |
Also bumped to EAPI-6. |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
x11-wm/icewm/icewm-1.3.12-r1.ebuild | 122 ++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 122 insertions(+) |
16 |
|
17 |
diff --git a/x11-wm/icewm/icewm-1.3.12-r1.ebuild b/x11-wm/icewm/icewm-1.3.12-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000..b270569 |
20 |
--- /dev/null |
21 |
+++ b/x11-wm/icewm/icewm-1.3.12-r1.ebuild |
22 |
@@ -0,0 +1,122 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit autotools eutils |
30 |
+ |
31 |
+DESCRIPTION="Ice Window Manager with Themes" |
32 |
+HOMEPAGE="http://www.icewm.org/ https://github.com/bbidulock/icewm" |
33 |
+LICENSE="GPL-2" |
34 |
+SRC_URI="https://github.com/bbidulock/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~ppc ~x86" |
38 |
+IUSE="bidi debug doc minimal nls truetype uclibc xinerama" |
39 |
+ |
40 |
+# Tests broken in all versions, patches welcome, bug #323907, #389533 |
41 |
+RESTRICT="test" |
42 |
+ |
43 |
+#fix for icewm preversion package names |
44 |
+S="${WORKDIR}/${P/_}" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ media-libs/fontconfig |
48 |
+ x11-libs/gdk-pixbuf:2[X] |
49 |
+ x11-libs/libICE |
50 |
+ x11-libs/libSM |
51 |
+ x11-libs/libX11 |
52 |
+ x11-libs/libXext |
53 |
+ x11-libs/libXft |
54 |
+ x11-libs/libXpm |
55 |
+ x11-libs/libXrandr |
56 |
+ x11-libs/libXrender |
57 |
+ bidi? ( dev-libs/fribidi ) |
58 |
+ xinerama? ( x11-libs/libXinerama ) |
59 |
+" |
60 |
+DEPEND=" |
61 |
+ ${RDEPEND} |
62 |
+ >=sys-apps/sed-4 |
63 |
+ x11-proto/xextproto |
64 |
+ x11-proto/xproto |
65 |
+ doc? ( app-text/linuxdoc-tools ) |
66 |
+ nls? ( >=sys-devel/gettext-0.19.6 ) |
67 |
+ truetype? ( >=media-libs/freetype-2.0.9 ) |
68 |
+ xinerama? ( x11-proto/xineramaproto ) |
69 |
+" |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ if use truetype && use minimal ; then |
73 |
+ ewarn "You have both 'truetype' and 'minimal' use flags enabled." |
74 |
+ ewarn "If you really want a minimal install, you will have to turn off" |
75 |
+ ewarn "the truetype flag for this package." |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}"/${PN}-1.3.10-menu.patch |
81 |
+) |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ # Fix bug #486710 |
85 |
+ use uclibc && PATCHES+=( "${FILESDIR}/${PN}-1.3.8-uclibc.patch" ) |
86 |
+ |
87 |
+ default |
88 |
+ |
89 |
+ if ! use doc ; then |
90 |
+ sed '/^SUBDIRS =/s@ doc@@' -i Makefile.am || die |
91 |
+ fi |
92 |
+ |
93 |
+ eautoreconf |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ local myconf=() |
98 |
+ if use truetype ; then |
99 |
+ myconf=( |
100 |
+ --enable-gradients |
101 |
+ --enable-shape |
102 |
+ --enable-shaped-decorations |
103 |
+ ) |
104 |
+ else |
105 |
+ myconf=( |
106 |
+ --disable-xfreetype |
107 |
+ --enable-corefonts |
108 |
+ $(use_enable minimal lite) |
109 |
+ ) |
110 |
+ fi |
111 |
+ |
112 |
+ myconf+=( |
113 |
+ --disable-menus-gnome2 |
114 |
+ --with-libdir=/usr/share/icewm |
115 |
+ --with-cfgdir=/etc/icewm |
116 |
+ --with-docdir=/usr/share/doc/${PF}/html |
117 |
+ $(use_enable bidi fribidi) |
118 |
+ $(use_enable debug) |
119 |
+ $(use_enable nls i18n) |
120 |
+ $(use_enable nls) |
121 |
+ $(use_enable xinerama) |
122 |
+ ) |
123 |
+ |
124 |
+ CXXFLAGS="${CXXFLAGS}" econf "${myconf[@]}" |
125 |
+ |
126 |
+ sed -i "s:/icewm-\$(VERSION)::" src/Makefile || die |
127 |
+ sed -i "s:ungif:gif:" src/Makefile || die "libungif fix failed" |
128 |
+} |
129 |
+ |
130 |
+src_install(){ |
131 |
+ local DOCS=( AUTHORS BUGS CHANGES PLATFORMS README.md TODO VERSION ) |
132 |
+ |
133 |
+ default |
134 |
+ |
135 |
+ if ! use doc ; then |
136 |
+ docinto html |
137 |
+ dodoc doc/*.sgml |
138 |
+ cp doc/${PN}.man "${T}"/${PN}.1 || die |
139 |
+ doman "${T}"/${PN}.1 |
140 |
+ fi |
141 |
+ |
142 |
+ exeinto /etc/X11/Sessions |
143 |
+ doexe "${FILESDIR}/icewm" |
144 |
+} |