Annotation of /smage/trunk/core/coreutils/coreutils-8.7-r1.smage2
Parent Directory | Revision Log
Revision 857 -
(hide annotations)
(download)
Fri Dec 3 20:17:26 2010 UTC (13 years, 9 months ago) by niro
File size: 2758 byte(s)
Fri Dec 3 20:17:26 2010 UTC (13 years, 9 months ago) by niro
File size: 2758 byte(s)
auto added: ver bump to 8.7-r1
1 | niro | 853 | # $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 | niro | 854 | mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch |
32 | niro | 853 | ) |
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 | niro | 857 | |
53 | export WANT_AUTOMAKE=1.11 | ||
54 | export WANT_AUTOCONF=2.5 | ||
55 | aclocal -I m4 &>/dev/null || die | ||
56 | autoconf || die | ||
57 | automake || die | ||
58 | niro | 853 | } |
59 | |||
60 | src_compile() | ||
61 | { | ||
62 | cd ${SRCDIR} | ||
63 | |||
64 | mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die | ||
65 | mmake || die | ||
66 | } | ||
67 | |||
68 | mcore_generic_src_install() | ||
69 | { | ||
70 | cd ${SRCDIR} | ||
71 | |||
72 | # some needed directories | ||
73 | minstalldir /usr/bin || die | ||
74 | minstalldir /usr/sbin || die | ||
75 | minstalldir /bin || die | ||
76 | minstalldir /sbin || die | ||
77 | |||
78 | make DESTDIR=${BINDIR} install-root || die | ||
79 | make DESTDIR=${BINDIR} install || die | ||
80 | |||
81 | mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die | ||
82 | mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die | ||
83 | mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die | ||
84 | |||
85 | # small dirty fix, after move 'mv' will not be found anymore | ||
86 | mlink /bin/mv /usr/bin/mv || die | ||
87 | |||
88 | mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die | ||
89 | |||
90 | mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die | ||
91 | mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die | ||
92 | |||
93 | mlink test /bin/[ || die | ||
94 | mlink ../../bin/install /usr/bin || die | ||
95 | |||
96 | minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die | ||
97 | } | ||
98 | |||
99 | # preinstall() | ||
100 | # { | ||
101 | # if [[ ! -z $(magequery -n mktemp) ]] | ||
102 | # then | ||
103 | # echo -e ${COLRED} | ||
104 | # echo -e "Error: sys-apps/mktemp is installed!!" | ||
105 | # echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore." | ||
106 | # echo -e "Please uninstall sys-apps/mktemp first!" | ||
107 | # echo -e ${COLDEFAULT} | ||
108 | # die "sys-apps/mktemp found!" | ||
109 | # fi | ||
110 | # } |