Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/bzip2/
Date: Sun, 15 Jul 2018 17:41:34
Message-Id: 1531676488.2271e85453eb5d84b73cac496c612d576cee1d17.zlogene@gentoo
1 commit: 2271e85453eb5d84b73cac496c612d576cee1d17
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 15 17:41:17 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 15 17:41:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2271e854
7
8 app-arch/bzip2: Drop old
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 app-arch/bzip2/bzip2-1.0.6-r8.ebuild | 114 -----------------------------------
13 1 file changed, 114 deletions(-)
14
15 diff --git a/app-arch/bzip2/bzip2-1.0.6-r8.ebuild b/app-arch/bzip2/bzip2-1.0.6-r8.ebuild
16 deleted file mode 100644
17 index 167f56e9bfd..00000000000
18 --- a/app-arch/bzip2/bzip2-1.0.6-r8.ebuild
19 +++ /dev/null
20 @@ -1,114 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# XXX: atm, libbz2.a is always PIC :(, so it is always built quickly
25 -# (since we're building shared libs) ...
26 -
27 -EAPI=5
28 -
29 -inherit eutils toolchain-funcs multilib multilib-minimal
30 -
31 -DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
32 -HOMEPAGE="http://www.bzip.org/"
33 -SRC_URI="http://www.bzip.org/${PV}/${P}.tar.gz"
34 -
35 -LICENSE="BZIP2"
36 -SLOT="0/1" # subslot = SONAME
37 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
38 -IUSE="static static-libs"
39 -
40 -PATCHES=(
41 - "${FILESDIR}"/${PN}-1.0.4-makefile-CFLAGS.patch
42 - "${FILESDIR}"/${PN}-1.0.6-saneso.patch
43 - "${FILESDIR}"/${PN}-1.0.4-man-links.patch #172986
44 - "${FILESDIR}"/${PN}-1.0.6-progress.patch
45 - "${FILESDIR}"/${PN}-1.0.3-no-test.patch
46 - "${FILESDIR}"/${PN}-1.0.4-POSIX-shell.patch #193365
47 - "${FILESDIR}"/${PN}-1.0.6-mingw.patch #393573
48 - "${FILESDIR}"/${PN}-1.0.6-out-of-tree-build.patch
49 - "${FILESDIR}"/${PN}-1.0.6-CVE-2016-3189.patch #620466
50 -)
51 -
52 -src_prepare() {
53 - epatch "${PATCHES[@]}"
54 -
55 - # - Use right man path
56 - # - Generate symlinks instead of hardlinks
57 - # - pass custom variables to control libdir
58 - sed -i \
59 - -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
60 - -e 's:ln -s -f $(PREFIX)/bin/:ln -s -f :' \
61 - -e 's:$(PREFIX)/lib:$(PREFIX)/$(LIBDIR):g' \
62 - Makefile || die
63 -}
64 -
65 -bemake() {
66 - emake \
67 - VPATH="${S}" \
68 - CC="$(tc-getCC)" \
69 - AR="$(tc-getAR)" \
70 - RANLIB="$(tc-getRANLIB)" \
71 - "$@"
72 -}
73 -
74 -multilib_src_compile() {
75 - bemake -f "${S}"/Makefile-libbz2_so all
76 - # Make sure we link against the shared lib #504648
77 - ln -sf libbz2.so.${PV} libbz2.so
78 - bemake -f "${S}"/Makefile all LDFLAGS="${LDFLAGS} $(usex static -static '')"
79 -}
80 -
81 -multilib_src_install() {
82 - into /usr
83 -
84 - # Install the shared lib manually. We install:
85 - # .x.x.x - standard shared lib behavior
86 - # .x.x - SONAME some distros use #338321
87 - # .x - SONAME Gentoo uses
88 - dolib.so libbz2.so.${PV}
89 - local v
90 - for v in libbz2.so{,.{${PV%%.*},${PV%.*}}} ; do
91 - dosym libbz2.so.${PV} /usr/$(get_libdir)/${v}
92 - done
93 - use static-libs && dolib.a libbz2.a
94 -
95 - if multilib_is_native_abi ; then
96 - gen_usr_ldscript -a bz2
97 -
98 - dobin bzip2recover
99 - into /
100 - dobin bzip2
101 - fi
102 -}
103 -
104 -multilib_src_install_all() {
105 - # `make install` doesn't cope with out-of-tree builds, nor with
106 - # installing just non-binaries, so handle things ourselves.
107 - insinto /usr/include
108 - doins bzlib.h
109 - into /usr
110 - dobin bz{diff,grep,more}
111 - doman *.1
112 -
113 - dosym bzdiff /usr/bin/bzcmp
114 - dosym bzdiff.1 /usr/share/man/man1/bzcmp.1
115 -
116 - dosym bzmore /usr/bin/bzless
117 - dosym bzmore.1 /usr/share/man/man1/bzless.1
118 -
119 - local x
120 - for x in bunzip2 bzcat bzip2recover ; do
121 - dosym bzip2.1 /usr/share/man/man1/${x}.1
122 - done
123 - for x in bz{e,f}grep ; do
124 - dosym bzgrep /usr/bin/${x}
125 - dosym bzgrep.1 /usr/share/man/man1/${x}.1
126 - done
127 -
128 - dodoc README* CHANGES manual.pdf
129 - dohtml manual.html
130 -
131 - # move "important" bzip2 binaries to /bin and use the shared libbz2.so
132 - dosym bzip2 /bin/bzcat
133 - dosym bzip2 /bin/bunzip2
134 -}