Contents of /smage/trunk/core/coreutils/coreutils-8.17-r1.smage2
Parent Directory | Revision Log
Revision 3641 -
(show annotations)
(download)
Fri Jul 13 14:03:32 2012 UTC (11 years, 10 months ago) by niro
File size: 1767 byte(s)
Fri Jul 13 14:03:32 2012 UTC (11 years, 10 months ago) by niro
File size: 1767 byte(s)
-ignore root check
1 | # $Id$ |
2 | |
3 | PNAME="coreutils" |
4 | PVER="8.17" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)." |
10 | HOMEPAGE="http://www.gnu.org/software/coreutils/coreutils.html" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/ncurses-5.9" |
14 | |
15 | SDEPEND=">= sys-dev/automake-3 |
16 | >= sys-dev/autoconf-4 |
17 | >= sys-dev/m4-1.4 |
18 | >= dev-libs/gmp-5 |
19 | >= sys-dev/gettext-0.18" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | ALX_ONLY_KEEP="usr/bin/dircolors usr/bin/install usr/bin/ls usr/bin/mktemp usr/bin/touch" |
25 | sminclude mtools cleanutils alx-split |
26 | |
27 | SRC_URI=( |
28 | gnu://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch |
31 | ) |
32 | |
33 | UP2DATE="updatecmd_gnu ${PNAME} xz" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # generic patches |
41 | mpatch ${PNAME}-5.94-more-dir-colors.patch || die |
42 | |
43 | if [[ -z $(which cvs 2>/dev/null) ]] |
44 | then |
45 | # fix issues with gettext's autopoint if cvs is not installed |
46 | export AUTOPOINT="/bin/true" |
47 | fi |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | # ignore root check |
55 | FORCE_UNSAFE_CONFIGURE=1 \ |
56 | mconfigure \ |
57 | --enable-largefile \ |
58 | --disable-nls \ |
59 | --disable-acl \ |
60 | --disable-xattr \ |
61 | || die |
62 | |
63 | mmake || die |
64 | } |
65 | |
66 | alx_generic_src_install() |
67 | { |
68 | cd ${SRCDIR} |
69 | |
70 | make DESTDIR=${BINDIR} install-root || die |
71 | make DESTDIR=${BINDIR} install || die |
72 | |
73 | mlink test /usr/bin/[ || die |
74 | |
75 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die |
76 | |
77 | # only keep binaries which are not provided by busybox |
78 | zapmost ${BINDIR}/usr/bin |
79 | chcon csplit dir dircolors factor fmt install join link ls mktemp nl nproc paste pathchk \ |
80 | pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum sha512sum \ |
81 | shuf stdbuf shred touch truncate tsort unlink vdir || die |
82 | } |