1 |
vapier 14/01/05 17:58:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bzip2-1.0.6-r5.ebuild |
5 |
Log: |
6 |
Add minimal out-of-tree build support to speed up the build a bit. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
9 |
|
10 |
Revision Changes Path |
11 |
1.110 app-arch/bzip2/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/ChangeLog?rev=1.110&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/ChangeLog?rev=1.110&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/ChangeLog?r1=1.109&r2=1.110 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v |
20 |
retrieving revision 1.109 |
21 |
retrieving revision 1.110 |
22 |
diff -u -r1.109 -r1.110 |
23 |
--- ChangeLog 5 Jan 2014 17:47:18 -0000 1.109 |
24 |
+++ ChangeLog 5 Jan 2014 17:58:12 -0000 1.110 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-arch/bzip2 |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v 1.109 2014/01/05 17:47:18 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v 1.110 2014/01/05 17:58:12 vapier Exp $ |
30 |
+ |
31 |
+*bzip2-1.0.6-r5 (05 Jan 2014) |
32 |
+ |
33 |
+ 05 Jan 2014; Mike Frysinger <vapier@g.o> +bzip2-1.0.6-r5.ebuild, |
34 |
+ +files/bzip2-1.0.6-out-of-tree-build.patch, bzip2-1.0.6-r4.ebuild: |
35 |
+ Add minimal out-of-tree build support to speed up the build a bit. |
36 |
|
37 |
05 Jan 2014; Mike Frysinger <vapier@g.o> bzip2-1.0.6-r4.ebuild: |
38 |
Only set -static in LDFLAGS for prog building #485690 by Greg Turner. |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-arch/bzip2/bzip2-1.0.6-r5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/bzip2-1.0.6-r5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/bzip2-1.0.6-r5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: bzip2-1.0.6-r5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/bzip2-1.0.6-r5.ebuild,v 1.1 2014/01/05 17:58:12 vapier Exp $ |
52 |
|
53 |
# XXX: atm, libbz2.a is always PIC :(, so it is always built quickly |
54 |
# (since we're building shared libs) ... |
55 |
|
56 |
EAPI=4 |
57 |
|
58 |
inherit eutils toolchain-funcs multilib multilib-minimal |
59 |
|
60 |
DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux" |
61 |
HOMEPAGE="http://www.bzip.org/" |
62 |
SRC_URI="http://www.bzip.org/${PV}/${P}.tar.gz" |
63 |
|
64 |
LICENSE="BZIP2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
67 |
IUSE="static static-libs" |
68 |
|
69 |
RDEPEND="abi_x86_32? ( |
70 |
!<=app-emulation/emul-linux-x86-baselibs-20130224 |
71 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
72 |
)" |
73 |
|
74 |
src_prepare() { |
75 |
epatch "${FILESDIR}"/${PN}-1.0.4-makefile-CFLAGS.patch |
76 |
epatch "${FILESDIR}"/${PN}-1.0.6-saneso.patch |
77 |
epatch "${FILESDIR}"/${PN}-1.0.4-man-links.patch #172986 |
78 |
epatch "${FILESDIR}"/${PN}-1.0.6-progress.patch |
79 |
epatch "${FILESDIR}"/${PN}-1.0.3-no-test.patch |
80 |
epatch "${FILESDIR}"/${PN}-1.0.4-POSIX-shell.patch #193365 |
81 |
epatch "${FILESDIR}"/${PN}-1.0.6-mingw.patch #393573 |
82 |
epatch "${FILESDIR}"/${PN}-1.0.6-out-of-tree-build.patch |
83 |
|
84 |
# - Use right man path |
85 |
# - Generate symlinks instead of hardlinks |
86 |
# - pass custom variables to control libdir |
87 |
sed -i \ |
88 |
-e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \ |
89 |
-e 's:ln -s -f $(PREFIX)/bin/:ln -s -f :' \ |
90 |
-e 's:$(PREFIX)/lib:$(PREFIX)/$(LIBDIR):g' \ |
91 |
Makefile || die |
92 |
} |
93 |
|
94 |
bemake() { |
95 |
emake \ |
96 |
VPATH="${S}" \ |
97 |
CC="$(tc-getCC)" \ |
98 |
AR="$(tc-getAR)" \ |
99 |
RANLIB="$(tc-getRANLIB)" \ |
100 |
"$@" |
101 |
} |
102 |
|
103 |
multilib_src_compile() { |
104 |
bemake -f "${S}"/Makefile-libbz2_so all |
105 |
bemake -f "${S}"/Makefile all LDFLAGS="${LDFLAGS} $(usex static -static '')" |
106 |
} |
107 |
|
108 |
multilib_src_install() { |
109 |
into /usr |
110 |
|
111 |
# Install the shared lib manually. We install: |
112 |
# .x.x.x - standard shared lib behavior |
113 |
# .x.x - SONAME some distros use #338321 |
114 |
# .x - SONAME Gentoo uses |
115 |
dolib.so libbz2.so.${PV} |
116 |
local v |
117 |
for v in libbz2.so{,.{${PV%%.*},${PV%.*}}} ; do |
118 |
dosym libbz2.so.${PV} /usr/$(get_libdir)/${v} |
119 |
done |
120 |
|
121 |
if multilib_build_binaries ; then |
122 |
gen_usr_ldscript -a bz2 |
123 |
|
124 |
dobin bzip2recover |
125 |
into / |
126 |
dobin bzip2 |
127 |
fi |
128 |
} |
129 |
|
130 |
multilib_src_install_all() { |
131 |
# `make install` doesn't cope with out-of-tree builds, nor with |
132 |
# installing just non-binaries, so handle things ourselves. |
133 |
insinto /usr/include |
134 |
doins bzlib.h |
135 |
into /usr |
136 |
dobin bz{diff,grep,more} |
137 |
doman *.1 |
138 |
|
139 |
dosym bzdiff /usr/bin/bzcmp |
140 |
dosym bzdiff.1 /usr/share/man/man1/bzcmp.1 |
141 |
|
142 |
dosym bzmore /usr/bin/bzless |
143 |
dosym bzmore.1 /usr/share/man/man1/bzless.1 |
144 |
|
145 |
local x |
146 |
for x in bunzip2 bzcat bzip2recover ; do |
147 |
dosym bzip2.1 /usr/share/man/man1/${x}.1 |
148 |
done |
149 |
for x in bz{e,f}grep ; do |
150 |
dosym bzgrep /usr/bin/${x} |
151 |
dosym bzgrep.1 /usr/share/man/man1/${x}.1 |
152 |
done |
153 |
|
154 |
dodoc README* CHANGES manual.pdf |
155 |
dohtml manual.html |
156 |
|
157 |
# move "important" bzip2 binaries to /bin and use the shared libbz2.so |
158 |
dosym bzip2 /bin/bzcat |
159 |
dosym bzip2 /bin/bunzip2 |
160 |
} |