summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-06-26 10:01:47 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-06-26 10:02:00 +0200
commit344bcb4ae374c6d91e2286b1af3a0a8e71e2c256 (patch)
tree1dbd096a7f7369d2927255321aaf59eafe45e8b4
parentdev-libs/nettle: version bump (diff)
downloadgentoo-344bcb4ae374c6d91e2286b1af3a0a8e71e2c256.tar.gz
gentoo-344bcb4ae374c6d91e2286b1af3a0a8e71e2c256.tar.bz2
gentoo-344bcb4ae374c6d91e2286b1af3a0a8e71e2c256.zip
app-arch/bzip2: Added live ebuild
Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--app-arch/bzip2/bzip2-9999.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/app-arch/bzip2/bzip2-9999.ebuild b/app-arch/bzip2/bzip2-9999.ebuild
new file mode 100644
index 000000000000..efb00d106dff
--- /dev/null
+++ b/app-arch/bzip2/bzip2-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson multilib-minimal
+
+DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
+HOMEPAGE="https://gitlab.com/federicomenaquintero/bzip2"
+if [[ "${PV}" == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/federicomenaquintero/bzip2.git"
+else
+ SRC_URI=""
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+fi
+LICENSE="BZIP2"
+SLOT="0/1" # subslot = SONAME
+
+IUSE=""
+
+multilib_src_configure() {
+ local emesonargs=(
+ # Requires whole tex stack
+ -Ddocs="disabled"
+ )
+
+ meson_src_configure
+}
+
+multilib_src_compile() {
+ meson_src_compile
+}
+
+multilib_src_install() {
+ meson_src_install
+
+ if multilib_is_native_abi ; then
+ gen_usr_ldscript -a bz2
+
+ dodir /bin
+ mv "${ED}"/usr/bin/bzip2 "${ED}"/bin || die
+ fi
+}
+
+multilib_src_install_all() {
+ # move "important" bzip2 binaries to /bin and use the shared libbz2.so
+ dosym bzip2 /bin/bzcat
+ dosym bzip2 /bin/bunzip2
+
+ dosym bzdiff /usr/bin/bzcmp
+ dosym bzmore /usr/bin/bzless
+ local x
+ for x in bz{e,f}grep ; do
+ dosym bzgrep /usr/bin/${x}
+ done
+
+ dosym bzip2.1 /usr/share/man/man1/bzip2recover.1
+
+ local DOCS=( AUTHORS NEWS{,-pre-1.0.7} README.md )
+ einstalldocs
+}