1 |
commit: 3858c664e6e8d5cfb35e9d7e920c29af12f83a26 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 3 02:08:40 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 3 02:08:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3858c664 |
7 |
|
8 |
app-arch/p7zip: remove old |
9 |
|
10 |
Bug: https://bugs.gentoo.org/655270 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
app-arch/p7zip/p7zip-16.02-r1.ebuild | 159 --------------------------------- |
14 |
app-arch/p7zip/p7zip-16.02-r2.ebuild | 163 ---------------------------------- |
15 |
app-arch/p7zip/p7zip-16.02-r3.ebuild | 164 ----------------------------------- |
16 |
3 files changed, 486 deletions(-) |
17 |
|
18 |
diff --git a/app-arch/p7zip/p7zip-16.02-r1.ebuild b/app-arch/p7zip/p7zip-16.02-r1.ebuild |
19 |
deleted file mode 100644 |
20 |
index 9f3c5aac923..00000000000 |
21 |
--- a/app-arch/p7zip/p7zip-16.02-r1.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,159 +0,0 @@ |
24 |
-# Copyright 1999-2017 Gentoo Foundation |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=6 |
28 |
- |
29 |
-WX_GTK_VER="3.0" |
30 |
- |
31 |
-inherit toolchain-funcs wxwidgets |
32 |
- |
33 |
-DESCRIPTION="Port of 7-Zip archiver for Unix" |
34 |
-HOMEPAGE="http://p7zip.sourceforge.net/" |
35 |
-SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_src_all.tar.bz2" |
36 |
- |
37 |
-LICENSE="LGPL-2.1 rar? ( unRAR )" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 ~s390 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" |
40 |
-IUSE="abi_x86_x32 doc kde +pch rar static wxwidgets" |
41 |
- |
42 |
-REQUIRED_USE="kde? ( wxwidgets )" |
43 |
- |
44 |
-RDEPEND="wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" |
45 |
-DEPEND="${RDEPEND} |
46 |
- abi_x86_x32? ( >=dev-lang/yasm-1.2.0-r1 ) |
47 |
- amd64? ( dev-lang/yasm ) |
48 |
- x86? ( dev-lang/nasm )" |
49 |
- |
50 |
-S=${WORKDIR}/${PN}_${PV} |
51 |
- |
52 |
-DOCS=( ChangeLog README TODO ) |
53 |
- |
54 |
-PATCHES=( "${FILESDIR}"/${P}-darwin.patch ) |
55 |
- |
56 |
-src_prepare() { |
57 |
- default |
58 |
- |
59 |
- if ! use pch; then |
60 |
- sed "s:PRE_COMPILED_HEADER=StdAfx.h.gch:PRE_COMPILED_HEADER=:g" -i makefile.* || die |
61 |
- fi |
62 |
- |
63 |
- sed \ |
64 |
- -e 's:-m32 ::g' \ |
65 |
- -e 's:-m64 ::g' \ |
66 |
- -e 's:-pipe::g' \ |
67 |
- -e '/ALLFLAGS/s:-s ::' \ |
68 |
- -e "/OPTFLAGS=/s:=.*:=${CXXFLAGS}:" \ |
69 |
- -i makefile* || die |
70 |
- |
71 |
- # remove non-free RAR codec |
72 |
- if use rar; then |
73 |
- ewarn "Enabling nonfree RAR decompressor" |
74 |
- else |
75 |
- sed \ |
76 |
- -e '/Rar/d' \ |
77 |
- -e '/RAR/d' \ |
78 |
- -i makefile* CPP/7zip/Bundles/Format7zFree/makefile || die |
79 |
- rm -rf CPP/7zip/Compress/Rar || die |
80 |
- fi |
81 |
- |
82 |
- if use abi_x86_x32; then |
83 |
- sed -i -e "/^ASM=/s:amd64:x32:" makefile* || die |
84 |
- cp -f makefile.linux_amd64_asm makefile.machine || die |
85 |
- elif use amd64; then |
86 |
- cp -f makefile.linux_amd64_asm makefile.machine || die |
87 |
- elif use x86; then |
88 |
- cp -f makefile.linux_x86_asm_gcc_4.X makefile.machine || die |
89 |
- elif [[ ${CHOST} == *-darwin* ]] ; then |
90 |
- # Mac OS X needs this special makefile, because it has a non-GNU |
91 |
- # linker, it doesn't matter so much for bitwidth, for it doesn't |
92 |
- # do anything with it |
93 |
- cp -f makefile.macosx_llvm_64bits makefile.machine |
94 |
- # bundles have extension .bundle but don't die because USE=-rar |
95 |
- # removes the Rar directory |
96 |
- sed -i -e '/strcpy(name/s/\.so/.bundle/' \ |
97 |
- CPP/Windows/DLL.cpp || die |
98 |
- sed -i -e '/^PROG=/s/\.so/.bundle/' \ |
99 |
- CPP/7zip/Bundles/Format7zFree/makefile.list \ |
100 |
- $(use rar && echo CPP/7zip/Compress/Rar/makefile.list) || die |
101 |
- elif use x86-fbsd; then |
102 |
- # FreeBSD needs this special makefile, because it hasn't -ldl |
103 |
- sed -e 's/-lc_r/-pthread/' makefile.freebsd > makefile.machine |
104 |
- fi |
105 |
- |
106 |
- if use static; then |
107 |
- sed -i -e '/^LOCAL_LIBS=/s/LOCAL_LIBS=/&-static /' makefile.machine || die |
108 |
- fi |
109 |
- |
110 |
- if use kde || use wxwidgets; then |
111 |
- need-wxwidgets unicode |
112 |
- einfo "Preparing dependency list" |
113 |
- emake depend |
114 |
- fi |
115 |
-} |
116 |
- |
117 |
-src_compile() { |
118 |
- emake CC=$(tc-getCC) CXX=$(tc-getCXX) all3 |
119 |
- if use kde || use wxwidgets; then |
120 |
- emake CC=$(tc-getCC) CXX=$(tc-getCXX) -- 7zG |
121 |
-# emake -- 7zFM |
122 |
- fi |
123 |
-} |
124 |
- |
125 |
-src_test() { |
126 |
- emake test test_7z test_7zr |
127 |
-} |
128 |
- |
129 |
-src_install() { |
130 |
- # this wrappers can not be symlinks, p7zip should be called with full path |
131 |
- make_wrapper 7zr "/usr/$(get_libdir)/${PN}/7zr" |
132 |
- make_wrapper 7za "/usr/$(get_libdir)/${PN}/7za" |
133 |
- make_wrapper 7z "/usr/$(get_libdir)/${PN}/7z" |
134 |
- |
135 |
- if use kde || use wxwidgets; then |
136 |
- make_wrapper 7zG "/usr/$(get_libdir)/${PN}/7zG" |
137 |
-# make_wrapper 7zFM "/usr/$(get_libdir)/${PN}/7zFM" |
138 |
- |
139 |
-# make_desktop_entry 7zFM "${PN} FM" ${PN} "GTK;Utility;Archiving;Compression" |
140 |
- |
141 |
- dobin GUI/p7zipForFilemanager |
142 |
- exeinto /usr/$(get_libdir)/${PN} |
143 |
-# doexe bin/7z{G,FM} |
144 |
- doexe bin/7zG |
145 |
- |
146 |
- insinto /usr/$(get_libdir)/${PN} |
147 |
- doins -r GUI/Lang |
148 |
- doins -r DOC/MANUAL |
149 |
- |
150 |
- insinto /usr/share/icons/hicolor/16x16/apps/ |
151 |
- newins GUI/p7zip_16_ok.png p7zip.png |
152 |
- |
153 |
- if use kde; then |
154 |
- rm GUI/kde4/p7zip_compress.desktop || die |
155 |
- insinto /usr/share/kservices5/ServiceMenus |
156 |
- doins GUI/kde4/*.desktop |
157 |
- dodir /usr/share/kde4/services/ServiceMenus # drop these lines after konqueror:4/krusader:4 are gone |
158 |
- for item in "${ED}"usr/share/kservices5/ServiceMenus/*.desktop; do |
159 |
- item="$(basename ${item})" |
160 |
- dosym "/usr/share/kservices5/ServiceMenus/${item}" "/usr/share/kde4/services/ServiceMenus/${item}" |
161 |
- done |
162 |
- fi |
163 |
- fi |
164 |
- |
165 |
- dobin contrib/gzip-like_CLI_wrapper_for_7z/p7zip |
166 |
- doman contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1 |
167 |
- |
168 |
- exeinto /usr/$(get_libdir)/${PN} |
169 |
- doexe bin/7z bin/7za bin/7zr bin/7zCon.sfx |
170 |
- doexe bin/*$(get_modname) |
171 |
- if use rar; then |
172 |
- exeinto /usr/$(get_libdir)/${PN}/Codecs/ |
173 |
- doexe bin/Codecs/*$(get_modname) |
174 |
- fi |
175 |
- |
176 |
- doman man1/7z.1 man1/7za.1 man1/7zr.1 |
177 |
- |
178 |
- if use doc; then |
179 |
- dodoc DOC/*.txt |
180 |
- dohtml -r DOC/MANUAL/* |
181 |
- fi |
182 |
-} |
183 |
|
184 |
diff --git a/app-arch/p7zip/p7zip-16.02-r2.ebuild b/app-arch/p7zip/p7zip-16.02-r2.ebuild |
185 |
deleted file mode 100644 |
186 |
index f0aa4481c63..00000000000 |
187 |
--- a/app-arch/p7zip/p7zip-16.02-r2.ebuild |
188 |
+++ /dev/null |
189 |
@@ -1,163 +0,0 @@ |
190 |
-# Copyright 1999-2018 Gentoo Foundation |
191 |
-# Distributed under the terms of the GNU General Public License v2 |
192 |
- |
193 |
-EAPI=6 |
194 |
- |
195 |
-WX_GTK_VER="3.0" |
196 |
- |
197 |
-inherit toolchain-funcs wxwidgets |
198 |
- |
199 |
-DESCRIPTION="Port of 7-Zip archiver for Unix" |
200 |
-HOMEPAGE="http://p7zip.sourceforge.net/" |
201 |
-SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_src_all.tar.bz2" |
202 |
- |
203 |
-LICENSE="LGPL-2.1 rar? ( unRAR )" |
204 |
-SLOT="0" |
205 |
-KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 ~s390 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" |
206 |
-IUSE="abi_x86_x32 doc kde +pch rar static wxwidgets" |
207 |
- |
208 |
-REQUIRED_USE="kde? ( wxwidgets )" |
209 |
- |
210 |
-RDEPEND="wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" |
211 |
-DEPEND="${RDEPEND} |
212 |
- abi_x86_x32? ( >=dev-lang/yasm-1.2.0-r1 ) |
213 |
- amd64? ( dev-lang/yasm ) |
214 |
- x86? ( dev-lang/nasm )" |
215 |
- |
216 |
-S=${WORKDIR}/${PN}_${PV} |
217 |
- |
218 |
-DOCS=( ChangeLog README TODO ) |
219 |
- |
220 |
-PATCHES=( |
221 |
- "${FILESDIR}"/${P}-darwin.patch |
222 |
- "${FILESDIR}"/CVE-2017-17969.patch |
223 |
- "${FILESDIR}"/CVE-2018-5996.patch |
224 |
-) |
225 |
- |
226 |
-src_prepare() { |
227 |
- default |
228 |
- |
229 |
- if ! use pch; then |
230 |
- sed "s:PRE_COMPILED_HEADER=StdAfx.h.gch:PRE_COMPILED_HEADER=:g" -i makefile.* || die |
231 |
- fi |
232 |
- |
233 |
- sed \ |
234 |
- -e 's:-m32 ::g' \ |
235 |
- -e 's:-m64 ::g' \ |
236 |
- -e 's:-pipe::g' \ |
237 |
- -e '/ALLFLAGS/s:-s ::' \ |
238 |
- -e "/OPTFLAGS=/s:=.*:=${CXXFLAGS}:" \ |
239 |
- -i makefile* || die |
240 |
- |
241 |
- # remove non-free RAR codec |
242 |
- if use rar; then |
243 |
- ewarn "Enabling nonfree RAR decompressor" |
244 |
- else |
245 |
- sed \ |
246 |
- -e '/Rar/d' \ |
247 |
- -e '/RAR/d' \ |
248 |
- -i makefile* CPP/7zip/Bundles/Format7zFree/makefile || die |
249 |
- rm -rf CPP/7zip/Compress/Rar || die |
250 |
- fi |
251 |
- |
252 |
- if use abi_x86_x32; then |
253 |
- sed -i -e "/^ASM=/s:amd64:x32:" makefile* || die |
254 |
- cp -f makefile.linux_amd64_asm makefile.machine || die |
255 |
- elif use amd64; then |
256 |
- cp -f makefile.linux_amd64_asm makefile.machine || die |
257 |
- elif use x86; then |
258 |
- cp -f makefile.linux_x86_asm_gcc_4.X makefile.machine || die |
259 |
- elif [[ ${CHOST} == *-darwin* ]] ; then |
260 |
- # Mac OS X needs this special makefile, because it has a non-GNU |
261 |
- # linker, it doesn't matter so much for bitwidth, for it doesn't |
262 |
- # do anything with it |
263 |
- cp -f makefile.macosx_llvm_64bits makefile.machine |
264 |
- # bundles have extension .bundle but don't die because USE=-rar |
265 |
- # removes the Rar directory |
266 |
- sed -i -e '/strcpy(name/s/\.so/.bundle/' \ |
267 |
- CPP/Windows/DLL.cpp || die |
268 |
- sed -i -e '/^PROG=/s/\.so/.bundle/' \ |
269 |
- CPP/7zip/Bundles/Format7zFree/makefile.list \ |
270 |
- $(use rar && echo CPP/7zip/Compress/Rar/makefile.list) || die |
271 |
- elif use x86-fbsd; then |
272 |
- # FreeBSD needs this special makefile, because it hasn't -ldl |
273 |
- sed -e 's/-lc_r/-pthread/' makefile.freebsd > makefile.machine |
274 |
- fi |
275 |
- |
276 |
- if use static; then |
277 |
- sed -i -e '/^LOCAL_LIBS=/s/LOCAL_LIBS=/&-static /' makefile.machine || die |
278 |
- fi |
279 |
- |
280 |
- if use kde || use wxwidgets; then |
281 |
- need-wxwidgets unicode |
282 |
- einfo "Preparing dependency list" |
283 |
- emake depend |
284 |
- fi |
285 |
-} |
286 |
- |
287 |
-src_compile() { |
288 |
- emake CC=$(tc-getCC) CXX=$(tc-getCXX) all3 |
289 |
- if use kde || use wxwidgets; then |
290 |
- emake CC=$(tc-getCC) CXX=$(tc-getCXX) -- 7zG |
291 |
-# emake -- 7zFM |
292 |
- fi |
293 |
-} |
294 |
- |
295 |
-src_test() { |
296 |
- emake test test_7z test_7zr |
297 |
-} |
298 |
- |
299 |
-src_install() { |
300 |
- # this wrappers can not be symlinks, p7zip should be called with full path |
301 |
- make_wrapper 7zr "/usr/$(get_libdir)/${PN}/7zr" |
302 |
- make_wrapper 7za "/usr/$(get_libdir)/${PN}/7za" |
303 |
- make_wrapper 7z "/usr/$(get_libdir)/${PN}/7z" |
304 |
- |
305 |
- if use kde || use wxwidgets; then |
306 |
- make_wrapper 7zG "/usr/$(get_libdir)/${PN}/7zG" |
307 |
-# make_wrapper 7zFM "/usr/$(get_libdir)/${PN}/7zFM" |
308 |
- |
309 |
-# make_desktop_entry 7zFM "${PN} FM" ${PN} "GTK;Utility;Archiving;Compression" |
310 |
- |
311 |
- dobin GUI/p7zipForFilemanager |
312 |
- exeinto /usr/$(get_libdir)/${PN} |
313 |
-# doexe bin/7z{G,FM} |
314 |
- doexe bin/7zG |
315 |
- |
316 |
- insinto /usr/$(get_libdir)/${PN} |
317 |
- doins -r GUI/Lang |
318 |
- doins -r DOC/MANUAL |
319 |
- |
320 |
- insinto /usr/share/icons/hicolor/16x16/apps/ |
321 |
- newins GUI/p7zip_16_ok.png p7zip.png |
322 |
- |
323 |
- if use kde; then |
324 |
- rm GUI/kde4/p7zip_compress.desktop || die |
325 |
- insinto /usr/share/kservices5/ServiceMenus |
326 |
- doins GUI/kde4/*.desktop |
327 |
- dodir /usr/share/kde4/services/ServiceMenus # drop these lines after konqueror:4/krusader:4 are gone |
328 |
- for item in "${ED}"usr/share/kservices5/ServiceMenus/*.desktop; do |
329 |
- item="$(basename ${item})" |
330 |
- dosym "/usr/share/kservices5/ServiceMenus/${item}" "/usr/share/kde4/services/ServiceMenus/${item}" |
331 |
- done |
332 |
- fi |
333 |
- fi |
334 |
- |
335 |
- dobin contrib/gzip-like_CLI_wrapper_for_7z/p7zip |
336 |
- doman contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1 |
337 |
- |
338 |
- exeinto /usr/$(get_libdir)/${PN} |
339 |
- doexe bin/7z bin/7za bin/7zr bin/7zCon.sfx |
340 |
- doexe bin/*$(get_modname) |
341 |
- if use rar; then |
342 |
- exeinto /usr/$(get_libdir)/${PN}/Codecs/ |
343 |
- doexe bin/Codecs/*$(get_modname) |
344 |
- fi |
345 |
- |
346 |
- doman man1/7z.1 man1/7za.1 man1/7zr.1 |
347 |
- |
348 |
- if use doc; then |
349 |
- dodoc DOC/*.txt |
350 |
- dohtml -r DOC/MANUAL/* |
351 |
- fi |
352 |
-} |
353 |
|
354 |
diff --git a/app-arch/p7zip/p7zip-16.02-r3.ebuild b/app-arch/p7zip/p7zip-16.02-r3.ebuild |
355 |
deleted file mode 100644 |
356 |
index 5cfee124433..00000000000 |
357 |
--- a/app-arch/p7zip/p7zip-16.02-r3.ebuild |
358 |
+++ /dev/null |
359 |
@@ -1,164 +0,0 @@ |
360 |
-# Copyright 1999-2018 Gentoo Foundation |
361 |
-# Distributed under the terms of the GNU General Public License v2 |
362 |
- |
363 |
-EAPI=6 |
364 |
- |
365 |
-WX_GTK_VER="3.0" |
366 |
- |
367 |
-inherit toolchain-funcs wxwidgets |
368 |
- |
369 |
-DESCRIPTION="Port of 7-Zip archiver for Unix" |
370 |
-HOMEPAGE="http://p7zip.sourceforge.net/" |
371 |
-SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_src_all.tar.bz2" |
372 |
- |
373 |
-LICENSE="LGPL-2.1 rar? ( unRAR )" |
374 |
-SLOT="0" |
375 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" |
376 |
-IUSE="abi_x86_x32 doc kde +pch rar static wxwidgets" |
377 |
- |
378 |
-REQUIRED_USE="kde? ( wxwidgets )" |
379 |
- |
380 |
-RDEPEND="wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" |
381 |
-DEPEND="${RDEPEND} |
382 |
- abi_x86_x32? ( >=dev-lang/yasm-1.2.0-r1 ) |
383 |
- amd64? ( dev-lang/yasm ) |
384 |
- x86? ( dev-lang/nasm )" |
385 |
- |
386 |
-S=${WORKDIR}/${PN}_${PV} |
387 |
- |
388 |
-DOCS=( ChangeLog README TODO ) |
389 |
- |
390 |
-PATCHES=( |
391 |
- "${FILESDIR}"/${P}-darwin.patch |
392 |
- "${FILESDIR}"/CVE-2016-9296.patch |
393 |
- "${FILESDIR}"/CVE-2017-17969.patch |
394 |
- "${FILESDIR}"/CVE-2018-5996.patch |
395 |
-) |
396 |
- |
397 |
-src_prepare() { |
398 |
- default |
399 |
- |
400 |
- if ! use pch; then |
401 |
- sed "s:PRE_COMPILED_HEADER=StdAfx.h.gch:PRE_COMPILED_HEADER=:g" -i makefile.* || die |
402 |
- fi |
403 |
- |
404 |
- sed \ |
405 |
- -e 's:-m32 ::g' \ |
406 |
- -e 's:-m64 ::g' \ |
407 |
- -e 's:-pipe::g' \ |
408 |
- -e '/ALLFLAGS/s:-s ::' \ |
409 |
- -e "/OPTFLAGS=/s:=.*:=${CXXFLAGS}:" \ |
410 |
- -i makefile* || die |
411 |
- |
412 |
- # remove non-free RAR codec |
413 |
- if use rar; then |
414 |
- ewarn "Enabling nonfree RAR decompressor" |
415 |
- else |
416 |
- sed \ |
417 |
- -e '/Rar/d' \ |
418 |
- -e '/RAR/d' \ |
419 |
- -i makefile* CPP/7zip/Bundles/Format7zFree/makefile || die |
420 |
- rm -rf CPP/7zip/Compress/Rar || die |
421 |
- fi |
422 |
- |
423 |
- if use abi_x86_x32; then |
424 |
- sed -i -e "/^ASM=/s:amd64:x32:" makefile* || die |
425 |
- cp -f makefile.linux_amd64_asm makefile.machine || die |
426 |
- elif use amd64; then |
427 |
- cp -f makefile.linux_amd64_asm makefile.machine || die |
428 |
- elif use x86; then |
429 |
- cp -f makefile.linux_x86_asm_gcc_4.X makefile.machine || die |
430 |
- elif [[ ${CHOST} == *-darwin* ]] ; then |
431 |
- # Mac OS X needs this special makefile, because it has a non-GNU |
432 |
- # linker, it doesn't matter so much for bitwidth, for it doesn't |
433 |
- # do anything with it |
434 |
- cp -f makefile.macosx_llvm_64bits makefile.machine |
435 |
- # bundles have extension .bundle but don't die because USE=-rar |
436 |
- # removes the Rar directory |
437 |
- sed -i -e '/strcpy(name/s/\.so/.bundle/' \ |
438 |
- CPP/Windows/DLL.cpp || die |
439 |
- sed -i -e '/^PROG=/s/\.so/.bundle/' \ |
440 |
- CPP/7zip/Bundles/Format7zFree/makefile.list \ |
441 |
- $(use rar && echo CPP/7zip/Compress/Rar/makefile.list) || die |
442 |
- elif use x86-fbsd; then |
443 |
- # FreeBSD needs this special makefile, because it hasn't -ldl |
444 |
- sed -e 's/-lc_r/-pthread/' makefile.freebsd > makefile.machine |
445 |
- fi |
446 |
- |
447 |
- if use static; then |
448 |
- sed -i -e '/^LOCAL_LIBS=/s/LOCAL_LIBS=/&-static /' makefile.machine || die |
449 |
- fi |
450 |
- |
451 |
- if use kde || use wxwidgets; then |
452 |
- need-wxwidgets unicode |
453 |
- einfo "Preparing dependency list" |
454 |
- emake depend |
455 |
- fi |
456 |
-} |
457 |
- |
458 |
-src_compile() { |
459 |
- emake CC=$(tc-getCC) CXX=$(tc-getCXX) all3 |
460 |
- if use kde || use wxwidgets; then |
461 |
- emake CC=$(tc-getCC) CXX=$(tc-getCXX) -- 7zG |
462 |
-# emake -- 7zFM |
463 |
- fi |
464 |
-} |
465 |
- |
466 |
-src_test() { |
467 |
- emake test test_7z test_7zr |
468 |
-} |
469 |
- |
470 |
-src_install() { |
471 |
- # this wrappers can not be symlinks, p7zip should be called with full path |
472 |
- make_wrapper 7zr "/usr/$(get_libdir)/${PN}/7zr" |
473 |
- make_wrapper 7za "/usr/$(get_libdir)/${PN}/7za" |
474 |
- make_wrapper 7z "/usr/$(get_libdir)/${PN}/7z" |
475 |
- |
476 |
- if use kde || use wxwidgets; then |
477 |
- make_wrapper 7zG "/usr/$(get_libdir)/${PN}/7zG" |
478 |
-# make_wrapper 7zFM "/usr/$(get_libdir)/${PN}/7zFM" |
479 |
- |
480 |
-# make_desktop_entry 7zFM "${PN} FM" ${PN} "GTK;Utility;Archiving;Compression" |
481 |
- |
482 |
- dobin GUI/p7zipForFilemanager |
483 |
- exeinto /usr/$(get_libdir)/${PN} |
484 |
-# doexe bin/7z{G,FM} |
485 |
- doexe bin/7zG |
486 |
- |
487 |
- insinto /usr/$(get_libdir)/${PN} |
488 |
- doins -r GUI/Lang |
489 |
- doins -r DOC/MANUAL |
490 |
- |
491 |
- insinto /usr/share/icons/hicolor/16x16/apps/ |
492 |
- newins GUI/p7zip_16_ok.png p7zip.png |
493 |
- |
494 |
- if use kde; then |
495 |
- rm GUI/kde4/p7zip_compress.desktop || die |
496 |
- insinto /usr/share/kservices5/ServiceMenus |
497 |
- doins GUI/kde4/*.desktop |
498 |
- dodir /usr/share/kde4/services/ServiceMenus # drop these lines after konqueror:4/krusader:4 are gone |
499 |
- for item in "${ED}"usr/share/kservices5/ServiceMenus/*.desktop; do |
500 |
- item="$(basename ${item})" |
501 |
- dosym "/usr/share/kservices5/ServiceMenus/${item}" "/usr/share/kde4/services/ServiceMenus/${item}" |
502 |
- done |
503 |
- fi |
504 |
- fi |
505 |
- |
506 |
- dobin contrib/gzip-like_CLI_wrapper_for_7z/p7zip |
507 |
- doman contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1 |
508 |
- |
509 |
- exeinto /usr/$(get_libdir)/${PN} |
510 |
- doexe bin/7z bin/7za bin/7zr bin/7zCon.sfx |
511 |
- doexe bin/*$(get_modname) |
512 |
- if use rar; then |
513 |
- exeinto /usr/$(get_libdir)/${PN}/Codecs/ |
514 |
- doexe bin/Codecs/*$(get_modname) |
515 |
- fi |
516 |
- |
517 |
- doman man1/7z.1 man1/7za.1 man1/7zr.1 |
518 |
- |
519 |
- if use doc; then |
520 |
- dodoc DOC/*.txt |
521 |
- dohtml -r DOC/MANUAL/* |
522 |
- fi |
523 |
-} |