Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/coreutils: ChangeLog coreutils-7.2.ebuild
Date: Tue, 31 Mar 2009 20:16:26
Message-Id: E1LokNk-00040e-Ut@stork.gentoo.org
1 vapier 09/03/31 20:16:24
2
3 Modified: ChangeLog
4 Added: coreutils-7.2.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc28/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.244 sys-apps/coreutils/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/coreutils/ChangeLog?rev=1.244&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/coreutils/ChangeLog?rev=1.244&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/coreutils/ChangeLog?r1=1.243&r2=1.244
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v
19 retrieving revision 1.243
20 retrieving revision 1.244
21 diff -u -r1.243 -r1.244
22 --- ChangeLog 12 Mar 2009 13:15:01 -0000 1.243
23 +++ ChangeLog 31 Mar 2009 20:16:24 -0000 1.244
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/coreutils
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.243 2009/03/12 13:15:01 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.244 2009/03/31 20:16:24 vapier Exp $
29 +
30 +*coreutils-7.2 (31 Mar 2009)
31 +
32 + 31 Mar 2009; Mike Frysinger <vapier@g.o> +coreutils-7.2.ebuild:
33 + Version bump.
34
35 12 Mar 2009; Mike Frysinger <vapier@g.o> coreutils-7.1.ebuild:
36 Fix some test failures #259876 by Ryan Hill.
37
38
39
40 1.1 sys-apps/coreutils/coreutils-7.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/coreutils/coreutils-7.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/coreutils/coreutils-7.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: coreutils-7.2.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-7.2.ebuild,v 1.1 2009/03/31 20:16:24 vapier Exp $
50
51 inherit eutils flag-o-matic toolchain-funcs
52
53 PATCH_VER="1"
54 DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)"
55 HOMEPAGE="http://www.gnu.org/software/coreutils/"
56 SRC_URI="ftp://alpha.gnu.org/gnu/coreutils/${P}.tar.gz
57 mirror://gnu/${PN}/${P}.tar.gz
58 mirror://gentoo/${P}.tar.gz
59 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma
60 http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.lzma"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
65 IUSE="acl caps nls selinux static vanilla xattr"
66
67 RDEPEND="caps? ( sys-libs/libcap )
68 selinux? ( sys-libs/libselinux )
69 acl? ( sys-apps/acl )
70 xattr? ( sys-apps/attr )
71 nls? ( >=sys-devel/gettext-0.15 )
72 !<sys-apps/util-linux-2.13
73 !sys-apps/stat
74 !net-mail/base64
75 !sys-apps/mktemp
76 !<app-forensics/tct-1.18-r1
77 !<net-fs/netatalk-2.0.3-r4
78 !<sci-chemistry/ccp4-6.1.1
79 >=sys-libs/ncurses-5.3-r5"
80 DEPEND="${RDEPEND}
81 app-arch/lzma-utils"
82
83 src_unpack() {
84 unpack ${A}
85 cd "${S}"
86
87 if ! use vanilla ; then
88 EPATCH_SUFFIX="patch" \
89 PATCHDIR="${WORKDIR}/patch" \
90 EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \
91 epatch
92 fi
93
94 # Since we've patched many .c files, the make process will try to
95 # re-build the manpages by running `./bin --help`. When doing a
96 # cross-compile, we can't do that since 'bin' isn't a native bin.
97 # Also, it's not like we changed the usage on any of these things,
98 # so let's just update the timestamps and skip the help2man step.
99 set -- man/*.x
100 tc-is-cross-compiler && touch ${@/%x/1}
101 }
102
103 src_compile() {
104 use static && append-ldflags -static
105 # kill/uptime - procps
106 # groups/su - shadow
107 # hostname - net-tools
108 econf \
109 --enable-install-program="arch" \
110 --enable-no-install-program="groups,hostname,kill,su,uptime" \
111 --enable-largefile \
112 $(use_enable caps libcap) \
113 $(use_enable nls) \
114 $(use_enable acl) \
115 $(use_enable xattr) \
116 || die "econf"
117 emake || die "emake"
118 }
119
120 src_test() {
121 # Non-root tests will fail if the full path isnt
122 # accessible to non-root users
123 chmod -R go-w "${WORKDIR}"
124 chmod a+rx "${WORKDIR}"
125 addwrite /dev/full
126 #export RUN_EXPENSIVE_TESTS="yes"
127 #export FETISH_GROUPS="portage wheel"
128 emake -j1 -k check || die "make check failed"
129 }
130
131 src_install() {
132 emake install DESTDIR="${D}" || die
133 dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO
134
135 insinto /etc
136 newins src/dircolors.hin DIR_COLORS || die
137
138 if [[ ${USERLAND} == "GNU" ]] ; then
139 cd "${D}"/usr/bin
140 dodir /bin
141 # move critical binaries into /bin (required by FHS)
142 local fhs="cat chgrp chmod chown cp date dd df echo false ln ls
143 mkdir mknod mv pwd rm rmdir stty sync true uname"
144 mv ${fhs} ../../bin/ || die "could not move fhs bins"
145 # move critical binaries into /bin (common scripts)
146 local com="basename chroot cut dir dirname du env expr head mkfifo
147 mktemp readlink seq sleep sort tail touch tr tty vdir wc yes"
148 mv ${com} ../../bin/ || die "could not move common bins"
149 # create a symlink for uname in /usr/bin/ since autotools require it
150 local x
151 for x in ${com} uname ; do
152 dosym /bin/${x} /usr/bin/${x} || die
153 done
154 else
155 # For now, drop the man pages, collides with the ones of the system.
156 rm -rf "${D}"/usr/share/man
157 fi
158 }
159
160 pkg_postinst() {
161 ewarn "Make sure you run 'hash -r' in your active shells"
162 }