Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id