Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/p7zip: ChangeLog p7zip-4.55-r1.ebuild
Date: Wed, 05 Dec 2007 20:04:46
Message-Id: E1J00U6-0001eG-2x@stork.gentoo.org
1 vapier 07/12/05 20:04:42
2
3 Modified: ChangeLog
4 Added: p7zip-4.55-r1.ebuild
5 Log:
6 Do not install /usr/bin/lzma as there are other/dedicated packages that install just the lzma compression utilities #198324.
7 (Portage version: 2.1.4_rc4)
8
9 Revision Changes Path
10 1.83 app-arch/p7zip/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/p7zip/ChangeLog?rev=1.83&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/p7zip/ChangeLog?rev=1.83&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/p7zip/ChangeLog?r1=1.82&r2=1.83
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-arch/p7zip/ChangeLog,v
19 retrieving revision 1.82
20 retrieving revision 1.83
21 diff -u -r1.82 -r1.83
22 --- ChangeLog 1 Dec 2007 17:06:11 -0000 1.82
23 +++ ChangeLog 5 Dec 2007 20:04:41 -0000 1.83
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-arch/p7zip
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-arch/p7zip/ChangeLog,v 1.82 2007/12/01 17:06:11 corsair Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-arch/p7zip/ChangeLog,v 1.83 2007/12/05 20:04:41 vapier Exp $
29 +
30 +*p7zip-4.55-r1 (05 Dec 2007)
31 +
32 + 05 Dec 2007; Mike Frysinger <vapier@g.o> +p7zip-4.55-r1.ebuild:
33 + Do not install /usr/bin/lzma as there are other/dedicated packages that
34 + install just the lzma compression utilities #198324.
35
36 01 Dec 2007; Markus Rothe <corsair@g.o> p7zip-4.55.ebuild:
37 Stable on ppc64
38
39
40
41 1.1 app-arch/p7zip/p7zip-4.55-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/p7zip/p7zip-4.55-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/p7zip/p7zip-4.55-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: p7zip-4.55-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-arch/p7zip/p7zip-4.55-r1.ebuild,v 1.1 2007/12/05 20:04:41 vapier Exp $
51
52 inherit eutils toolchain-funcs multilib
53
54 DESCRIPTION="Port of 7-Zip archiver for Unix"
55 HOMEPAGE="http://p7zip.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_src_all.tar.bz2"
57
58 LICENSE="LGPL-2.1"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
61 IUSE="static doc"
62
63 DEPEND=""
64
65 S=${WORKDIR}/${PN}_${PV}
66
67 src_unpack() {
68 unpack ${A}
69 cd "${S}"
70 sed -i \
71 -e "/^CXX=/s:g++:$(tc-getCXX):" \
72 -e "/^CC=/s:gcc:$(tc-getCC):" \
73 -e "s:OPTFLAGS=-O:OPTFLAGS=${CXXFLAGS}:" \
74 -e 's:-s ::' \
75 makefile* || die "changing makefiles"
76
77 if use amd64; then
78 ewarn "Using suboptimal -fPIC upstream makefile due to amd64 being detected. See #126722"
79 cp -f makefile.linux_amd64 makefile.machine
80 elif [[ ${CHOST} == *-darwin* ]] ; then
81 # Mac OS X needs this special makefile, because it has a non-GNU linker
82 cp -f makefile.macosx makefile.machine
83 elif use x86-fbsd; then
84 # FreeBSD needs this special makefile, because it hasn't -ldl
85 sed -e 's/-lc_r/-pthread/' makefile.freebsd > makefile.machine
86 fi
87 use static && sed -i -e '/^LOCAL_LIBS=/s/LOCAL_LIBS=/&-static /' makefile.machine
88 }
89
90 src_compile() {
91 emake all3 || die "compilation error"
92 }
93
94 src_install() {
95 # this wrappers can not be symlinks, p7zip should be called with full path
96 make_wrapper 7zr "/usr/lib/${PN}/7zr"
97 make_wrapper 7za "/usr/lib/${PN}/7za"
98 make_wrapper 7z "/usr/lib/${PN}/7z"
99
100 dobin "${FILESDIR}/p7zip" || die
101
102 # gzip introduced in 4.42, so beware :)
103 # mv needed just as rename, because dobin installs using old name
104 mv contrib/gzip-like_CLI_wrapper_for_7z/p7zip contrib/gzip-like_CLI_wrapper_for_7z/7zg || die
105 dobin contrib/gzip-like_CLI_wrapper_for_7z/7zg || die
106
107 exeinto /usr/$(get_libdir)/${PN}
108 doexe bin/7z bin/7za bin/7zr bin/7zCon.sfx || die "doexe bins"
109 exeinto /usr/$(get_libdir)/${PN}/Codecs
110 doexe bin/Codecs/* || die "doexe Codecs"
111 exeinto /usr/$(get_libdir)/${PN}
112 doexe bin/*.so || die "doexe *.so files"
113
114 doman man1/7z.1 man1/7za.1 man1/7zr.1
115 dodoc ChangeLog README TODO
116
117 if use doc ; then
118 dodoc DOCS/*.txt
119 dohtml -r DOCS/MANUAL/*
120 fi
121 }
122
123
124
125 --
126 gentoo-commits@g.o mailing list