From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D921F138334 for ; Wed, 26 Jun 2019 08:02:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6D1DE0843; Wed, 26 Jun 2019 08:02:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BE285E0843 for ; Wed, 26 Jun 2019 08:02:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 718D034668F for ; Wed, 26 Jun 2019 08:02:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5D10449 for ; Wed, 26 Jun 2019 08:02:04 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1561536120.344bcb4ae374c6d91e2286b1af3a0a8e71e2c256.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/bzip2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/bzip2/bzip2-9999.ebuild X-VCS-Directories: app-arch/bzip2/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 344bcb4ae374c6d91e2286b1af3a0a8e71e2c256 X-VCS-Branch: master Date: Wed, 26 Jun 2019 08:02:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 91e3d9fb-b0bd-48ae-82c8-71e0d8101e3d X-Archives-Hash: 9dd2d99caaa911131b3d5bbb47e7444d commit: 344bcb4ae374c6d91e2286b1af3a0a8e71e2c256 Author: Lars Wendler gentoo org> AuthorDate: Wed Jun 26 08:01:47 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Wed Jun 26 08:02:00 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=344bcb4a app-arch/bzip2: Added live ebuild Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Lars Wendler gentoo.org> app-arch/bzip2/bzip2-9999.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/app-arch/bzip2/bzip2-9999.ebuild b/app-arch/bzip2/bzip2-9999.ebuild new file mode 100644 index 00000000000..efb00d106df --- /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 +}