1 |
commit: 344bcb4ae374c6d91e2286b1af3a0a8e71e2c256 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 26 08:01:47 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 26 08:02:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=344bcb4a |
7 |
|
8 |
app-arch/bzip2: Added live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.16 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-arch/bzip2/bzip2-9999.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/bzip2/bzip2-9999.ebuild b/app-arch/bzip2/bzip2-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..efb00d106df |
19 |
--- /dev/null |
20 |
+++ b/app-arch/bzip2/bzip2-9999.ebuild |
21 |
@@ -0,0 +1,62 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit meson multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux" |
30 |
+HOMEPAGE="https://gitlab.com/federicomenaquintero/bzip2" |
31 |
+if [[ "${PV}" == 9999 ]] ; then |
32 |
+ inherit git-r3 |
33 |
+ EGIT_REPO_URI="https://gitlab.com/federicomenaquintero/bzip2.git" |
34 |
+else |
35 |
+ SRC_URI="" |
36 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
37 |
+fi |
38 |
+LICENSE="BZIP2" |
39 |
+SLOT="0/1" # subslot = SONAME |
40 |
+ |
41 |
+IUSE="" |
42 |
+ |
43 |
+multilib_src_configure() { |
44 |
+ local emesonargs=( |
45 |
+ # Requires whole tex stack |
46 |
+ -Ddocs="disabled" |
47 |
+ ) |
48 |
+ |
49 |
+ meson_src_configure |
50 |
+} |
51 |
+ |
52 |
+multilib_src_compile() { |
53 |
+ meson_src_compile |
54 |
+} |
55 |
+ |
56 |
+multilib_src_install() { |
57 |
+ meson_src_install |
58 |
+ |
59 |
+ if multilib_is_native_abi ; then |
60 |
+ gen_usr_ldscript -a bz2 |
61 |
+ |
62 |
+ dodir /bin |
63 |
+ mv "${ED}"/usr/bin/bzip2 "${ED}"/bin || die |
64 |
+ fi |
65 |
+} |
66 |
+ |
67 |
+multilib_src_install_all() { |
68 |
+ # move "important" bzip2 binaries to /bin and use the shared libbz2.so |
69 |
+ dosym bzip2 /bin/bzcat |
70 |
+ dosym bzip2 /bin/bunzip2 |
71 |
+ |
72 |
+ dosym bzdiff /usr/bin/bzcmp |
73 |
+ dosym bzmore /usr/bin/bzless |
74 |
+ local x |
75 |
+ for x in bz{e,f}grep ; do |
76 |
+ dosym bzgrep /usr/bin/${x} |
77 |
+ done |
78 |
+ |
79 |
+ dosym bzip2.1 /usr/share/man/man1/bzip2recover.1 |
80 |
+ |
81 |
+ local DOCS=( AUTHORS NEWS{,-pre-1.0.7} README.md ) |
82 |
+ einstalldocs |
83 |
+} |