1 |
commit: 722b1cf6a27a671d5b0706a75f8b8e112e949cf6 |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 08:45:37 2019 +0000 |
4 |
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 28 08:45:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=722b1cf6 |
7 |
|
8 |
x11-libs/fox: revive fox-1.6 stable branch |
9 |
|
10 |
Things actually use it. |
11 |
|
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org> |
14 |
|
15 |
profiles/package.mask | 2 - |
16 |
x11-libs/fox/fox-1.6.57-r1.ebuild | 100 ++++++++++++++++++++++++++++++++++++++ |
17 |
x11-libs/fox/fox-1.6.57.ebuild | 41 ---------------- |
18 |
3 files changed, 100 insertions(+), 43 deletions(-) |
19 |
|
20 |
diff --git a/profiles/package.mask b/profiles/package.mask |
21 |
index 5f6a0b3e068..c4dfd170ad5 100644 |
22 |
--- a/profiles/package.mask |
23 |
+++ b/profiles/package.mask |
24 |
@@ -167,10 +167,8 @@ app-benchmarks/spew |
25 |
app-editors/adie |
26 |
dev-util/reswrap |
27 |
sci-calculators/calculator |
28 |
-x11-libs/fox:1.6 |
29 |
x11-misc/pathfinder |
30 |
x11-misc/shutterbug |
31 |
-x11-misc/xfe |
32 |
|
33 |
# Michał Górny <mgorny@g.o> (2019-12-15) |
34 |
# Live ebuild only. Not touched since 2012. Unsurprisingly, |
35 |
|
36 |
diff --git a/x11-libs/fox/fox-1.6.57-r1.ebuild b/x11-libs/fox/fox-1.6.57-r1.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..9320c305298 |
39 |
--- /dev/null |
40 |
+++ b/x11-libs/fox/fox-1.6.57-r1.ebuild |
41 |
@@ -0,0 +1,100 @@ |
42 |
+# Copyright 1999-2019 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+ |
47 |
+inherit autotools |
48 |
+ |
49 |
+DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and effectively" |
50 |
+HOMEPAGE="http://www.fox-toolkit.org/" |
51 |
+SRC_URI="ftp://ftp.fox-toolkit.org/pub/${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="LGPL-2.1" |
54 |
+SLOT="1.6" |
55 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
56 |
+IUSE="+bzip2 +jpeg +opengl +png tiff +truetype +zlib debug doc profile" |
57 |
+ |
58 |
+RDEPEND="x11-libs/libXrandr |
59 |
+ x11-libs/libXcursor |
60 |
+ x11-libs/fox-wrapper |
61 |
+ bzip2? ( app-arch/bzip2 ) |
62 |
+ jpeg? ( virtual/jpeg ) |
63 |
+ opengl? ( virtual/glu virtual/opengl ) |
64 |
+ png? ( media-libs/libpng:0= ) |
65 |
+ tiff? ( media-libs/tiff:0= ) |
66 |
+ truetype? ( media-libs/freetype:2 |
67 |
+ x11-libs/libXft ) |
68 |
+ zlib? ( sys-libs/zlib ) |
69 |
+" |
70 |
+DEPEND="${RDEPEND} |
71 |
+ x11-base/xorg-proto |
72 |
+ x11-libs/libXt" |
73 |
+BDEPEND="doc? ( app-doc/doxygen )" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ |
78 |
+ local d |
79 |
+ for d in utils windows adie calculator pathfinder shutterbug; do |
80 |
+ sed -i -e "s:${d}::" Makefile.am |
81 |
+ done |
82 |
+ |
83 |
+ # Respect system CXXFLAGS |
84 |
+ sed -i -e 's:CXXFLAGS=""::' configure.ac || die "Unable to force cxxflags." |
85 |
+ |
86 |
+ # don't strip binaries |
87 |
+ sed -i -e '/LDFLAGS="-s ${LDFLAGS}"/d' configure.ac || die "Unable to prevent stripping." |
88 |
+ |
89 |
+ eautoreconf |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ econf \ |
94 |
+ --enable-$(usex debug debug release) \ |
95 |
+ $(use_enable bzip2 bz2lib) \ |
96 |
+ $(use_enable jpeg) \ |
97 |
+ $(use_with opengl) \ |
98 |
+ $(use_enable png) \ |
99 |
+ $(use_enable tiff) \ |
100 |
+ $(use_with truetype xft) \ |
101 |
+ $(use_enable zlib) \ |
102 |
+ $(use_with profile profiling) |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ emake |
107 |
+ use doc && emake -C "${S}"/doc docs |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ emake install \ |
112 |
+ DESTDIR="${D}" \ |
113 |
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
114 |
+ artdir="${EPREFIX}"/usr/share/doc/${PF}/html/art \ |
115 |
+ screenshotsdir="${EPREFIX}"/usr/share/doc/${PF}/html/screenshots |
116 |
+ |
117 |
+ CP="${ED}/usr/bin/ControlPanel" |
118 |
+ if [[ -f ${CP} ]] ; then |
119 |
+ mv "${CP}" "${ED}/usr/bin/fox-ControlPanel-${SLOT}" || \ |
120 |
+ die "Failed to install ControlPanel" |
121 |
+ fi |
122 |
+ |
123 |
+ for doc in ADDITIONS AUTHORS LICENSE_ADDENDUM README TRACING ; do |
124 |
+ [[ -f $doc ]] && dodoc $doc |
125 |
+ done |
126 |
+ |
127 |
+ # remove documentation if USE=-doc |
128 |
+ use doc || rm -fr "${D}/usr/share/doc/${PF}/html" |
129 |
+ |
130 |
+ # install class reference docs if USE=doc |
131 |
+ if use doc && [[ -z ${FOX_COMPONENT} ]] ; then |
132 |
+ docinto html |
133 |
+ dodoc -r "${S}/doc/ref" |
134 |
+ fi |
135 |
+ |
136 |
+ # slot fox-config |
137 |
+ if [[ -f ${D}/usr/bin/fox-config ]] ; then |
138 |
+ mv "${D}/usr/bin/fox-config" "${D}/usr/bin/fox-${SLOT}-config" \ |
139 |
+ || die "failed to install fox-config" |
140 |
+ fi |
141 |
+} |
142 |
|
143 |
diff --git a/x11-libs/fox/fox-1.6.57.ebuild b/x11-libs/fox/fox-1.6.57.ebuild |
144 |
deleted file mode 100644 |
145 |
index 330f85c8a75..00000000000 |
146 |
--- a/x11-libs/fox/fox-1.6.57.ebuild |
147 |
+++ /dev/null |
148 |
@@ -1,41 +0,0 @@ |
149 |
-# Copyright 1999-2019 Gentoo Authors |
150 |
-# Distributed under the terms of the GNU General Public License v2 |
151 |
- |
152 |
-EAPI=5 |
153 |
- |
154 |
-inherit eutils fox |
155 |
- |
156 |
-LICENSE="LGPL-2.1" |
157 |
-SLOT="1.6" |
158 |
-KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
159 |
-IUSE="+bzip2 +jpeg +opengl +png tiff +truetype +zlib" |
160 |
- |
161 |
-RDEPEND="x11-libs/libXrandr |
162 |
- x11-libs/libXcursor |
163 |
- x11-libs/fox-wrapper |
164 |
- bzip2? ( >=app-arch/bzip2-1.0.2 ) |
165 |
- jpeg? ( virtual/jpeg:= ) |
166 |
- opengl? ( virtual/glu virtual/opengl ) |
167 |
- png? ( >=media-libs/libpng-1.2.5:0= ) |
168 |
- tiff? ( >=media-libs/tiff-3.5.7:0= ) |
169 |
- truetype? ( =media-libs/freetype-2* |
170 |
- x11-libs/libXft ) |
171 |
- zlib? ( >=sys-libs/zlib-1.1.4 )" |
172 |
-DEPEND="${RDEPEND} |
173 |
- x11-base/xorg-proto |
174 |
- x11-libs/libXt" |
175 |
- |
176 |
-src_prepare() { |
177 |
- sed -i -e 's/-lXft/-lXft -lfontconfig/' "${S}/configure.ac" |
178 |
- fox_src_prepare |
179 |
-} |
180 |
- |
181 |
-src_configure() { |
182 |
- FOXCONF="$(use_enable bzip2 bz2lib) \ |
183 |
- $(use_enable jpeg) \ |
184 |
- $(use_with opengl) \ |
185 |
- $(use_enable png) \ |
186 |
- $(use_enable tiff) \ |
187 |
- $(use_with truetype xft) \ |
188 |
- $(use_enable zlib)" fox_src_configure |
189 |
-} |