Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/tar/
Date: Mon, 02 Dec 2019 09:59:48
Message-Id: 1575280780.de068bce8d2e05fed3747f3b66ae18576a85d4e9.polynomial-c@gentoo
1 commit: de068bce8d2e05fed3747f3b66ae18576a85d4e9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 2 09:59:27 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 2 09:59:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de068bce
7
8 app-arch/tar: Bump to version 1.32.90
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-arch/tar/Manifest | 1 +
14 app-arch/tar/tar-1.32.90.ebuild | 80 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/app-arch/tar/Manifest b/app-arch/tar/Manifest
18 index 64c7c860dbf..dc57e45b125 100644
19 --- a/app-arch/tar/Manifest
20 +++ b/app-arch/tar/Manifest
21 @@ -1 +1,2 @@
22 +DIST tar-1.32.90.tar.xz 2145976 BLAKE2B 95f1442da87bcbd58e0a6aad303b8c9da9179cc32a6e835d3fbe2e090ad4316e96265a54f573906b262034b92d8d3e56f3ff2609145249bd16dd4ea2a79bb601 SHA512 a42703b73ec3c1f462849469f00dd190a0164972fd2e97f128c3b559a6e9c79e87d5bbf47fca17ca9f8b6810221fbc727b6c15e38693256d9e43a2c2a2d7b593
23 DIST tar-1.32.tar.bz2 2947264 BLAKE2B 4e380a9a2f84a2af5130464e1b298ae6acf02ee459cbca20dd0991c2859785e5aac789d57b87b32e8b45d89985b6414af9dd37161385da9568d6030c5aa42c0e SHA512 3139e87112123269ee0600243b3ea081687cc93667bef5832bfe3c785c1be622f520f00fcfbdf44ad1d3247866d0ecfe347a85bbfec38eb38fa1014baef566f6
24
25 diff --git a/app-arch/tar/tar-1.32.90.ebuild b/app-arch/tar/tar-1.32.90.ebuild
26 new file mode 100644
27 index 00000000000..64746b70278
28 --- /dev/null
29 +++ b/app-arch/tar/tar-1.32.90.ebuild
30 @@ -0,0 +1,80 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit flag-o-matic
37 +
38 +DESCRIPTION="Use this to make tarballs :)"
39 +HOMEPAGE="https://www.gnu.org/software/tar/"
40 +SRC_URI="mirror://gnu/tar/${P}.tar.xz
41 + mirror://gnu-alpha/tar/${P}.tar.xz"
42 +
43 +LICENSE="GPL-3+"
44 +SLOT="0"
45 +[[ -n "$(ver_cut 3)" ]] && [[ "$(ver_cut 3)" -ge 90 ]] || \
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="acl elibc_glibc minimal nls selinux static userland_GNU xattr"
48 +
49 +LIB_DEPEND="acl? ( virtual/acl[static-libs(+)] )"
50 +
51 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
52 + selinux? ( sys-libs/libselinux )"
53 +DEPEND="${RDEPEND}
54 + nls? ( >=sys-devel/gettext-0.10.35 )
55 + static? ( ${LIB_DEPEND} )
56 + xattr? ( elibc_glibc? ( sys-apps/attr ) )"
57 +
58 +src_prepare() {
59 + default
60 +
61 + if ! use userland_GNU ; then
62 + sed -i \
63 + -e 's:/backup\.sh:/gbackup.sh:' \
64 + scripts/{backup,dump-remind,restore}.in \
65 + || die "sed non-GNU"
66 + fi
67 +}
68 +
69 +src_configure() {
70 + use static && append-ldflags -static
71 + local myeconfargs=(
72 + --bindir="${EPREFIX}"/bin
73 + --enable-backup-scripts
74 + --libexecdir="${EPREFIX}"/usr/sbin
75 + $(usex userland_GNU "" "--program-prefix=g")
76 + $(use_with acl posix-acls)
77 + $(use_enable nls)
78 + $(use_with selinux)
79 + $(use_with xattr xattrs)
80 + )
81 + FORCE_UNSAFE_CONFIGURE=1 econf "${myeconfargs[@]}"
82 +}
83 +
84 +src_install() {
85 + default
86 +
87 + local p=$(usex userland_GNU "" "g")
88 + if [[ -z ${p} ]] ; then
89 + # a nasty yet required piece of baggage
90 + exeinto /etc
91 + doexe "${FILESDIR}"/rmt
92 + fi
93 +
94 + # autoconf looks for gtar before tar (in configure scripts), hence
95 + # in Prefix it is important that it is there, otherwise, a gtar from
96 + # the host system (FreeBSD, Solaris, Darwin) will be found instead
97 + # of the Prefix provided (GNU) tar
98 + if use prefix ; then
99 + dosym tar /bin/gtar
100 + fi
101 +
102 + mv "${ED}"/usr/sbin/${p}backup{,-tar} || die
103 + mv "${ED}"/usr/sbin/${p}restore{,-tar} || die
104 +
105 + if use minimal ; then
106 + find "${ED}"/etc "${ED}"/*bin/ "${ED}"/usr/*bin/ \
107 + -type f -a '!' '(' -name tar -o -name ${p}tar ')' \
108 + -delete || die
109 + fi
110 +}