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