Magellan Linux

Annotation of /smage/trunk/core/coreutils/coreutils-7.6-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (hide annotations) (download)
Sat Jan 2 21:30:56 2010 UTC (14 years, 4 months ago) by niro
File size: 2968 byte(s)
auto added: ver bump to 7.6-r3
1 niro 14 # $Id$
2    
3     PNAME="coreutils"
4     PVER="7.6"
5     PBUILD="r3"
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     >= dev-libs/gmp-4.3
16     >= sys-dev/gettext-0.17
17     >= sys-apps/acl-2.2
18     >= sys-apps/attr-2.4"
19    
20     SDEPEND=">= sys-dev/automake-3
21     >= sys-dev/autoconf-4
22     >= sys-dev/m4-1.4"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.gz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     sminclude mtools
28    
29     SRC_URI=(
30     gnu://${PNAME}/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     mirror://${PNAME}/patches-${PVER}/${PNAME}-5.3.0-dumbterm.patch
33     mirror://${PNAME}/patches-${PVER}/${PNAME}-5.3.0-mem.patch
34     mirror://${PNAME}/patches-${PVER}/${PNAME}-5.3.0-uname.patch
35     mirror://${PNAME}/patches-${PVER}/${PNAME}-5.94-more-dir-colors.patch
36     )
37    
38     UP2DATE="updatecmd_gnu ${PNAME} gz"
39    
40     src_prepare()
41     {
42     munpack ${SRCFILE} || die
43     cd ${SRCDIR}
44    
45     # mandrake patches
46     mpatch ${PNAME}-5.3.0-dumbterm.patch || die
47     mpatch ${PNAME}-5.3.0-mem.patch || die
48    
49     # generic patches
50     mpatch ${PNAME}-5.3.0-uname.patch || die
51     mpatch ${PNAME}-5.94-more-dir-colors.patch || die
52    
53     # fix compilation with newer versions of glibc
54     sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die
55    
56     if [[ -z $(which cvs 2>/dev/null) ]]
57     then
58     # fix issues with gettext's autopoint if cvs is not installed
59     export AUTOPOINT="/bin/true"
60     fi
61    
62     export WANT_AUTOMAKE=1.11
63     export WANT_AUTOCONF=2.5
64     aclocal -I m4 &>/dev/null || die
65     autoconf || die
66     automake || die
67     }
68    
69     src_compile()
70     {
71     cd ${SRCDIR}
72    
73     mconfigure --enable-largefile --enable-nls --enable-acl --enable-xattr || die
74     mmake || die
75     }
76    
77     src_install()
78     {
79     cd ${SRCDIR}
80    
81     # some needed directories
82     minstalldir /usr/bin || die
83     minstalldir /usr/sbin || die
84     minstalldir /bin || die
85     minstalldir /sbin || die
86    
87     make DESTDIR=${BINDIR} install-root || die
88     make DESTDIR=${BINDIR} install || die
89    
90     mv ${BINDIR}/usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} ${BINDIR}/bin || die
91     mv ${BINDIR}/usr/bin/{dir,dircolors,du,date,echo,false,head} ${BINDIR}/bin || die
92     mv ${BINDIR}/usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} ${BINDIR}/bin || die
93    
94     # small dirty fix, after move 'mv' will not be found anymore
95     mlink /bin/mv /usr/bin/mv || die
96    
97     mv ${BINDIR}/usr/bin/{rm,rmdir,shred,sync,sleep,stty,test} ${BINDIR}/bin || die
98    
99     mv ${BINDIR}/usr/bin/{touch,true,uname,vdir} ${BINDIR}/bin || die
100     mv ${BINDIR}/usr/bin/chroot ${BINDIR}/sbin || die
101    
102     mlink test /bin/[ || die
103     mlink ../../bin/install /usr/bin || die
104    
105     minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die
106     }
107    
108     preinstall()
109     {
110     if [[ ! -z $(magequery -n mktemp) ]]
111     then
112     echo -e ${COLRED}
113     echo -e "Error: sys-apps/mktemp is installed!!"
114     echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore."
115     echo -e "Please uninstall sys-apps/mktemp first!"
116     echo -e ${COLDEFAULT}
117     die "sys-apps/mktemp found!"
118     fi
119     }

Properties

Name Value
svn:keywords Id