Gentoo Archives: gentoo-commits

From: "Roy Marples (uberlord)" <uberlord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/libarchive: ChangeLog libarchive-2.3.5.ebuild
Date: Mon, 29 Oct 2007 17:23:08
Message-Id: E1ImYKN-0006ub-Uc@stork.gentoo.org
1 uberlord 07/10/29 17:23:03
2
3 Modified: ChangeLog
4 Added: libarchive-2.3.5.ebuild
5 Log:
6 Bump and enable bsdcpio.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.5 app-arch/libarchive/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 10 Oct 2007 09:41:44 -0000 1.4
23 +++ ChangeLog 29 Oct 2007 17:23:03 -0000 1.5
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-arch/libarchive
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.4 2007/10/10 09:41:44 uberlord Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.5 2007/10/29 17:23:03 uberlord Exp $
29 +
30 +*libarchive-2.3.5 (29 Oct 2007)
31 +
32 + 29 Oct 2007; Roy Marples <uberlord@g.o> +libarchive-2.3.5.ebuild:
33 + Bump and enable bsdcpio.
34
35 *libarchive-2.3.4 (10 Oct 2007)
36
37
38
39
40 1.1 app-arch/libarchive/libarchive-2.3.5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.3.5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.3.5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: libarchive-2.3.5.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.3.5.ebuild,v 1.1 2007/10/29 17:23:03 uberlord Exp $
50
51 inherit eutils autotools toolchain-funcs flag-o-matic
52
53 MY_P=${P/_beta/b}
54
55 DESCRIPTION="BSD tar command"
56 HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive/"
57 SRC_URI="http://people.freebsd.org/~kientzle/libarchive/src/${MY_P}.tar.gz"
58
59 LICENSE="BSD"
60 SLOT="0"
61 KEYWORDS="~amd64 ~hppa ~ppc ~sparc-fbsd ~x86 ~x86-fbsd"
62 IUSE="build static acl xattr"
63
64 RDEPEND="!dev-libs/libarchive
65 kernel_linux? (
66 acl? ( sys-apps/acl )
67 xattr? ( sys-apps/attr )
68 )
69 !static? ( !build? (
70 app-arch/bzip2
71 sys-libs/zlib ) )"
72 DEPEND="${RDEPEND}
73 kernel_linux? ( sys-fs/e2fsprogs
74 virtual/os-headers )"
75
76 S="${WORKDIR}/${MY_P}"
77
78 src_unpack() {
79 unpack ${A}
80 cd "${S}"
81
82 epatch "${FILESDIR}"/${PN}-2.1.5-acl.patch
83
84 eautoreconf
85 epunt_cxx
86 }
87
88 src_compile() {
89 local myconf=
90
91 if use static || use build ; then
92 myconf="${myconf} --enable-static-bsdtar"
93 else
94 myconf="${myconf} --disable-static-bsdtar"
95 fi
96
97 # Upstream doesn't seem to care to fix the problems
98 # and I don't want to continue running after them.
99 #append-flags -fno-strict-aliasing
100
101 econf \
102 --bindir=/bin \
103 --enable-bsdcpio \
104 $(use_enable acl) \
105 $(use_enable xattr) \
106 ${myconf} || die "econf failed"
107 emake || die "emake failed"
108 }
109
110 src_install() {
111 emake -j1 DESTDIR="${D}" install || die "emake install failed"
112
113 # Create tar symlink for FreeBSD
114 if [[ ${CHOST} == *-freebsd* ]]; then
115 dosym bsdtar /bin/tar
116 dosym bsdtar.1 /usr/share/man/man1/tar.1
117 # We may wish to switch to symlink bsdcpio to cpio too one day
118 fi
119
120 if use build; then
121 rm -rf "${D}"/usr
122 rm -rf "${D}"/lib/*.so*
123 return 0
124 fi
125
126 dodir /$(get_libdir)
127 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)
128 gen_usr_ldscript libarchive.so
129 }
130
131
132
133 --
134 gentoo-commits@g.o mailing list