Contents of /smage/trunk/core/coreutils/coreutils-8.7-r1.smage2
Parent Directory | Revision Log
Revision 856 -
(show annotations)
(download)
Fri Dec 3 20:16:00 2010 UTC (13 years, 9 months ago) by niro
File size: 2636 byte(s)
Fri Dec 3 20:16:00 2010 UTC (13 years, 9 months ago) by niro
File size: 2636 byte(s)
auto added: ver bump to 8.7-r1
1 | # $Id: coreutils-7.6-r3.smage2 3616 2009-10-27 13:57:05Z niro $ |
2 | |
3 | PNAME="coreutils" |
4 | PVER="8.7" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)." |
11 | HOMEPAGE="http://www.gnu.org/software/coreutils/coreutils.html" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= sys-libs/ncurses-5.7" |
15 | |
16 | SDEPEND=">= sys-dev/automake-3 |
17 | >= sys-dev/autoconf-4 |
18 | >= sys-dev/m4-1.4 |
19 | >= dev-libs/gmp-5 |
20 | >= sys-dev/gettext-0.18" |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
24 | |
25 | MCORE_ONLY_KEEP="bin/dircolors bin/install bin/ls usr/bin/mktemp bin/touch" |
26 | sminclude mtools mcore-split |
27 | |
28 | SRC_URI=( |
29 | gnu://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # generic patches |
42 | mpatch ${PNAME}-5.94-more-dir-colors.patch || die |
43 | |
44 | # fix compilation with newer versions of glibc |
45 | sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die |
46 | |
47 | if [[ -z $(which cvs 2>/dev/null) ]] |
48 | then |
49 | # fix issues with gettext's autopoint if cvs is not installed |
50 | export AUTOPOINT="/bin/true" |
51 | fi |
52 | } |
53 | |
54 | src_compile() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die |
59 | mmake || die |
60 | } |
61 | |
62 | mcore_generic_src_install() |
63 | { |
64 | cd ${SRCDIR} |
65 | |
66 | # some needed directories |
67 | minstalldir /usr/bin || die |
68 | minstalldir /usr/sbin || die |
69 | minstalldir /bin || die |
70 | minstalldir /sbin || die |
71 | |
72 | make DESTDIR=${BINDIR} install-root || die |
73 | make DESTDIR=${BINDIR} install || die |
74 | |
75 | mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die |
76 | mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die |
77 | mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die |
78 | |
79 | # small dirty fix, after move 'mv' will not be found anymore |
80 | mlink /bin/mv /usr/bin/mv || die |
81 | |
82 | mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die |
83 | |
84 | mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die |
85 | mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die |
86 | |
87 | mlink test /bin/[ || die |
88 | mlink ../../bin/install /usr/bin || die |
89 | |
90 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die |
91 | } |
92 | |
93 | # preinstall() |
94 | # { |
95 | # if [[ ! -z $(magequery -n mktemp) ]] |
96 | # then |
97 | # echo -e ${COLRED} |
98 | # echo -e "Error: sys-apps/mktemp is installed!!" |
99 | # echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore." |
100 | # echo -e "Please uninstall sys-apps/mktemp first!" |
101 | # echo -e ${COLDEFAULT} |
102 | # die "sys-apps/mktemp found!" |
103 | # fi |
104 | # } |