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.4.ebuild
Date: Wed, 10 Oct 2007 09:51:30
Message-Id: E1IfY4W-0001fn-Kk@stork.gentoo.org
1 uberlord 07/10/10 09:41:44
2
3 Modified: ChangeLog
4 Added: libarchive-2.3.4.ebuild
5 Log:
6 Bump
7 (Portage version: 2.1.3.12)
8
9 Revision Changes Path
10 1.4 app-arch/libarchive/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 4 Oct 2007 09:53:45 -0000 1.3
23 +++ ChangeLog 10 Oct 2007 09:41:44 -0000 1.4
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.3 2007/10/04 09:53:45 drizzt Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.4 2007/10/10 09:41:44 uberlord Exp $
29 +
30 +*libarchive-2.3.4 (10 Oct 2007)
31 +
32 + 10 Oct 2007; Roy Marples <uberlord@g.o> +libarchive-2.3.4.ebuild:
33 + Bump
34
35 *libarchive-2.3.3 (04 Oct 2007)
36
37
38
39
40 1.1 app-arch/libarchive/libarchive-2.3.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.3.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.3.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: libarchive-2.3.4.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.4.ebuild,v 1.1 2007/10/10 09:41:44 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 $(use_enable acl) \
104 $(use_enable xattr) \
105 ${myconf} || die "econf failed"
106 emake || die "emake failed"
107 }
108
109 src_install() {
110 emake -j1 DESTDIR="${D}" install || die "emake install failed"
111
112 # Create tar symlink for FreeBSD
113 if [[ ${CHOST} == *-freebsd* ]]; then
114 dosym bsdtar /bin/tar
115 dosym bsdtar.1 /usr/share/man/man1/tar.1
116 fi
117
118 if use build; then
119 rm -rf "${D}"/usr
120 rm -rf "${D}"/lib/*.so*
121 return 0
122 fi
123
124 dodir /$(get_libdir)
125 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)
126 gen_usr_ldscript libarchive.so
127 }
128
129
130
131 --
132 gentoo-commits@g.o mailing list