Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/pax/
Date: Mon, 07 Mar 2016 04:17:28
Message-Id: 1457324225.2a7fdd67e7cae78ef37db299866d810e06b93f3c.vapier@gentoo
1 commit: 2a7fdd67e7cae78ef37db299866d810e06b93f3c
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 7 04:03:06 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 7 04:17:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a7fdd67
7
8 app-arch/pax: switch to MirOS version #537522
9
10 app-arch/pax/Manifest | 1 +
11 app-arch/pax/pax-20160306.ebuild | 55 ++++++++++++++++++++++++++++++++++++++++
12 2 files changed, 56 insertions(+)
13
14 diff --git a/app-arch/pax/Manifest b/app-arch/pax/Manifest
15 index 559fd39..2d573c7 100644
16 --- a/app-arch/pax/Manifest
17 +++ b/app-arch/pax/Manifest
18 @@ -1 +1,2 @@
19 DIST pax-3.4-12.fc16.src.rpm 171016 SHA256 b86ca0556b12600d3dd4777900baae5118e71ce9e026e42e3bb51aed23853932 SHA512 78704cd1b66288acdaa8fdf4ca0a97c12b1e843e024be4d3fac88a6b42049928c6bfe69a72a58a00a9bf755c23e1e8e0b7d30bc72ba08a83830495dd5f6d9be1 WHIRLPOOL 8a674356efa939ceff0f502de926688d81f17da48c98f24674a76f11043f420c33aa9f47eb66fb1e896ddc4ca4c64cec554d7397379d1ccc884bf02b37eb9b29
20 +DIST paxmirabilis-20160306.cpio.gz 147448 SHA256 4e36fabfabc01a15e0d01eee0306cef79a7f374586f46254dae139eb866ae81b SHA512 65c9613f235d973f23d829d87b93963f4b21beca4d7158abb8243f7f0ba8eb883544bbd0c16bde82f0e55ab2fbf33e3dfb155a50c0f5be3bf6d88eaf95e1037f WHIRLPOOL 5945f45cc69cfd25d7754a9b6b25db98170de2fc926ffe3a661402d95bc41517e40ff059998d682cc65e32fd7e70a78e222525012eb98dde54c1d67c0c6c2277
21
22 diff --git a/app-arch/pax/pax-20160306.ebuild b/app-arch/pax/pax-20160306.ebuild
23 new file mode 100644
24 index 0000000..1cfdaa4
25 --- /dev/null
26 +++ b/app-arch/pax/pax-20160306.ebuild
27 @@ -0,0 +1,55 @@
28 +# Copyright 1999-2016 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI="5"
33 +
34 +inherit unpacker toolchain-funcs
35 +
36 +DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
37 +HOMEPAGE="https://www.mirbsd.org/pax.htm"
38 +SRC_URI="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${PV}.cpio.gz"
39 +
40 +LICENSE="BSD"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
43 +IUSE=""
44 +
45 +RDEPEND="dev-libs/libbsd"
46 +DEPEND="${RDEPEND}
47 + $(unpacker_src_uri_depends)"
48 +
49 +S=${WORKDIR}/${PN}
50 +
51 +src_prepare() {
52 + # Newer C libraries omit this include from sys/types.h.
53 + sed -i '1i#include <sys/sysmacros.h>' extern.h || die
54 +}
55 +
56 +src_configure() {
57 + tc-export CC PKG_CONFIG
58 +}
59 +
60 +src_compile() {
61 + # We can't rely on LFS flags as it uses the fts.h interface which lacks 64-bit support.
62 + set -- \
63 + ${CC} ${CPPFLAGS} ${CFLAGS} \
64 + -DHAVE_STRLCPY -DHAVE_VIS -DHAVE_STRMODE \
65 + -DLONG_OFF_T -DHAVE_LINKAT \
66 + $(${PKG_CONFIG} --cflags libbsd-overlay) \
67 + -Wall ${LDFLAGS} *.c -o ${PN} \
68 + $(${PKG_CONFIG} --libs libbsd-overlay)
69 + echo "$@"
70 + "$@" || die
71 +}
72 +
73 +src_install() {
74 + dobin ${PN}
75 + doman ${PN}.1
76 +
77 + dosym pax /usr/bin/paxcpio
78 + newman cpio.1 paxcpio.1
79 +
80 + dosym pax /usr/bin/paxtar
81 + newman tar.1 paxtar.1
82 +}