/[gentoo-x86]/app-arch/xz-utils/xz-utils-5.0.4.ebuild
Gentoo

Contents of /app-arch/xz-utils/xz-utils-5.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Jun 23 18:27:00 2012 UTC (2 years, 3 months ago) by vapier
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 vapier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/app-arch/xz-utils/xz-utils-5.0.3.ebuild,v 1.11 2012/05/17 04:05:19 vapier Exp $
4    
5     # Remember: we cannot leverage autotools in this ebuild in order
6     # to avoid circular deps with autotools
7    
8     EAPI="2"
9    
10     if [[ ${PV} == "9999" ]] ; then
11     EGIT_REPO_URI="http://git.tukaani.org/xz.git"
12     inherit git-2 autotools
13     SRC_URI=""
14     EXTRA_DEPEND="sys-devel/gettext dev-vcs/cvs >=sys-devel/libtool-2" #272880 286068
15     else
16     MY_P="${PN/-utils}-${PV/_}"
17     SRC_URI="http://tukaani.org/xz/${MY_P}.tar.gz"
18     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
19     S=${WORKDIR}/${MY_P}
20     EXTRA_DEPEND=
21     fi
22    
23     inherit eutils multilib
24    
25     DESCRIPTION="utils for managing LZMA compressed files"
26     HOMEPAGE="http://tukaani.org/xz/"
27    
28     LICENSE="LGPL-2.1"
29     SLOT="0"
30     IUSE="nls static-libs +threads"
31    
32     RDEPEND="!<app-arch/lzma-4.63
33     !app-arch/lzma-utils
34     !<app-arch/p7zip-4.57"
35     DEPEND="${RDEPEND}
36     ${EXTRA_DEPEND}"
37    
38     if [[ ${PV} == "9999" ]] ; then
39     src_prepare() {
40     eautopoint
41     eautoreconf
42     }
43     fi
44    
45     src_configure() {
46     econf \
47     $(use_enable nls) \
48     $(use_enable threads) \
49     $(use_enable static-libs static)
50     }
51    
52     src_install() {
53     emake install DESTDIR="${D}" || die
54     find "${D}"/usr/ -name liblzma.la -delete || die # dependency_libs=''
55     rm "${D}"/usr/share/doc/xz/COPYING* || die
56     mv "${D}"/usr/share/doc/{xz,${PF}} || die
57     prepalldocs
58     dodoc AUTHORS ChangeLog NEWS README THANKS
59     }
60    
61     pkg_preinst() {
62     preserve_old_lib /usr/$(get_libdir)/liblzma.so.0
63     }
64    
65     pkg_postinst() {
66     preserve_old_lib_notify /usr/$(get_libdir)/liblzma.so.0
67     }

  ViewVC Help
Powered by ViewVC 1.1.20