Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/lbzip2: ChangeLog lbzip2-0.21.ebuild
Date: Thu, 18 Feb 2010 07:45:46
Message-Id: E1Ni14v-0006wt-TY@stork.gentoo.org
1 jlec 10/02/18 07:45:41
2
3 Modified: ChangeLog
4 Added: lbzip2-0.21.ebuild
5 Log:
6 Version Bump
7 (Portage version: 2.2_rc62/cvs/Linux i686)
8
9 Revision Changes Path
10 1.2 app-arch/lbzip2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lbzip2/ChangeLog?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lbzip2/ChangeLog?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lbzip2/ChangeLog?r1=1.1&r2=1.2
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-arch/lbzip2/ChangeLog,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ChangeLog 9 Feb 2010 20:19:48 -0000 1.1
23 +++ ChangeLog 18 Feb 2010 07:45:41 -0000 1.2
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-arch/lbzip2
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/ChangeLog,v 1.1 2010/02/09 20:19:48 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/ChangeLog,v 1.2 2010/02/18 07:45:41 jlec Exp $
29 +
30 +*lbzip2-0.21 (18 Feb 2010)
31 +
32 + 18 Feb 2010; Justin Lecher (jlec) <jlec@×××××××××.net>
33 + +files/0.21-Makefile.patch, +lbzip2-0.21.ebuild:
34 + Version Bump
35
36 *lbzip2-0.20 (09 Feb 2010)
37
38
39
40
41 1.1 app-arch/lbzip2/lbzip2-0.21.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lbzip2/lbzip2-0.21.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lbzip2/lbzip2-0.21.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lbzip2-0.21.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/lbzip2-0.21.ebuild,v 1.1 2010/02/18 07:45:41 jlec Exp $
51
52 EAPI="3"
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 DESCRIPTION="Pthreads-based parallel bzip2/bunzip2 filter, passable to GNU tar"
57 HOMEPAGE="http://lacos.hu/"
58 SRC_URI="http://lacos.web.elte.hu/pub/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="symlink test"
64
65 RDEPEND="app-arch/bzip2"
66 DEPEND="${REDEPEND}
67 test? (
68 app-shells/dash
69 sys-process/time
70 )"
71
72 S=${WORKDIR}/${PN}
73
74 src_prepare() {
75 epatch "${FILESDIR}"/${PV}-Makefile.patch
76 }
77
78 src_compile() {
79 append-lfs-flags
80 emake CC=$(tc-getCC) || die "emake failed"
81 }
82
83 src_test() {
84 if [ -t 0 ] || return; then
85 rm -rf "${T}/scratch" "${T}/results" "${T}/rnd"
86 hexdump -n 10485760 /dev/urandom > "${T}/rnd"
87 emake -j1 SHELL="${EPREFIX}"/bin/dash PATH="${S}:${PATH}" TESTFILE="${T}/rnd" check \
88 || die "make check failed"
89 else
90 ewarn "make check must be run attached to a terminal"
91 fi
92 }
93
94 src_install() {
95 dobin ${PN} || die "Installation of ${PN} failed"
96 dodoc ChangeLog README || die "no docs"
97 doman ${PN}.1 || die "no man"
98 insinto /usr/share/${PN}
99 doins corr-perf.sh malloc_trace.pl || die
100
101 if use symlink; then
102 dosym ${PN} /usr/bin/gzip || die
103 dosym un${PN} /usr/bin/gunzip || die
104 fi
105 }