Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/bzip2/
Date: Wed, 28 Dec 2022 00:33:05
Message-Id: 1672187533.b531a4e0c53bc0299725fbea05b0fd5ad45dae13.sam@gentoo
1 commit: b531a4e0c53bc0299725fbea05b0fd5ad45dae13
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 27 23:51:37 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 00:32:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b531a4e0
7
8 app-arch/bzip2: drop 1.0.8-r3
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-arch/bzip2/bzip2-1.0.8-r3.ebuild | 126 -----------------------------------
13 1 file changed, 126 deletions(-)
14
15 diff --git a/app-arch/bzip2/bzip2-1.0.8-r3.ebuild b/app-arch/bzip2/bzip2-1.0.8-r3.ebuild
16 deleted file mode 100644
17 index 1bdda90d94f3..000000000000
18 --- a/app-arch/bzip2/bzip2-1.0.8-r3.ebuild
19 +++ /dev/null
20 @@ -1,126 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
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=7
28 -
29 -VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/bzip2.gpg
30 -inherit toolchain-funcs multilib-minimal usr-ldscript verify-sig
31 -
32 -DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
33 -HOMEPAGE="https://sourceware.org/bzip2/"
34 -SRC_URI="https://sourceware.org/pub/${PN}/${P}.tar.gz"
35 -SRC_URI+=" verify-sig? ( https://sourceware.org/pub/${PN}/${P}.tar.gz.sig )"
36 -
37 -LICENSE="BZIP2"
38 -SLOT="0/1" # subslot = SONAME
39 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
40 -IUSE="static static-libs"
41 -
42 -BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bzip2 )"
43 -RDEPEND="!app-arch/lbzip2[symlink(-)]
44 - !app-arch/pbzip2[symlink(-)]"
45 -
46 -PATCHES=(
47 - "${FILESDIR}"/${PN}-1.0.4-makefile-CFLAGS.patch
48 - "${FILESDIR}"/${PN}-1.0.8-saneso.patch
49 - "${FILESDIR}"/${PN}-1.0.4-man-links.patch #172986
50 - "${FILESDIR}"/${PN}-1.0.6-progress.patch
51 - "${FILESDIR}"/${PN}-1.0.3-no-test.patch
52 - "${FILESDIR}"/${PN}-1.0.8-mingw.patch #393573
53 - "${FILESDIR}"/${PN}-1.0.8-out-of-tree-build.patch
54 -)
55 -
56 -DOCS=( CHANGES README{,.COMPILATION.PROBLEMS,.XML.STUFF} manual.pdf )
57 -HTML_DOCS=( manual.html )
58 -
59 -src_prepare() {
60 - default
61 -
62 - # - Use right man path
63 - # - Generate symlinks instead of hardlinks
64 - # - pass custom variables to control libdir
65 - sed -i \
66 - -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
67 - -e 's:ln -s -f $(PREFIX)/bin/:ln -s -f :' \
68 - -e 's:$(PREFIX)/lib:$(PREFIX)/$(LIBDIR):g' \
69 - Makefile || die
70 -}
71 -
72 -bemake() {
73 - emake \
74 - VPATH="${S}" \
75 - CC="$(tc-getCC)" \
76 - AR="$(tc-getAR)" \
77 - RANLIB="$(tc-getRANLIB)" \
78 - "$@"
79 -}
80 -
81 -multilib_src_compile() {
82 - bemake -f "${S}"/Makefile-libbz2_so all
83 - # Make sure we link against the shared lib #504648
84 - ln -s libbz2.so.${PV} libbz2.so || die
85 - bemake -f "${S}"/Makefile all LDFLAGS="${LDFLAGS} $(usex static -static '')"
86 -}
87 -
88 -multilib_src_test() {
89 - cp "${S}"/sample* "${BUILD_DIR}" || die
90 - bemake -f "${S}"/Makefile check
91 -}
92 -
93 -multilib_src_install() {
94 - into /usr
95 -
96 - # Install the shared lib manually. We install:
97 - # .x.x.x - standard shared lib behavior
98 - # .x.x - SONAME some distros use #338321
99 - # .x - SONAME Gentoo uses
100 - dolib.so libbz2.so.${PV}
101 - local v
102 - for v in libbz2.so{,.{${PV%%.*},${PV%.*}}} ; do
103 - dosym libbz2.so.${PV} /usr/$(get_libdir)/${v}
104 - done
105 -
106 - use static-libs && dolib.a libbz2.a
107 -
108 - if multilib_is_native_abi ; then
109 - gen_usr_ldscript -a bz2
110 -
111 - dobin bzip2recover
112 - into /
113 - dobin bzip2
114 - fi
115 -}
116 -
117 -multilib_src_install_all() {
118 - # `make install` doesn't cope with out-of-tree builds, nor with
119 - # installing just non-binaries, so handle things ourselves.
120 - insinto /usr/include
121 - doins bzlib.h
122 - into /usr
123 - dobin bz{diff,grep,more}
124 - doman *.1
125 -
126 - dosym bzdiff /usr/bin/bzcmp
127 - dosym bzdiff.1 /usr/share/man/man1/bzcmp.1
128 -
129 - dosym bzmore /usr/bin/bzless
130 - dosym bzmore.1 /usr/share/man/man1/bzless.1
131 -
132 - local x
133 - for x in bunzip2 bzcat bzip2recover ; do
134 - dosym bzip2.1 /usr/share/man/man1/${x}.1
135 - done
136 - for x in bz{e,f}grep ; do
137 - dosym bzgrep /usr/bin/${x}
138 - dosym bzgrep.1 /usr/share/man/man1/${x}.1
139 - done
140 -
141 - einstalldocs
142 -
143 - # move "important" bzip2 binaries to /bin and use the shared libbz2.so
144 - dosym bzip2 /bin/bzcat
145 - dosym bzip2 /bin/bunzip2
146 -}