Magellan Linux

Annotation of /trunk/core/coreutils/coreutils-8.17-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12753 - (hide annotations) (download)
Mon Jul 2 14:37:15 2012 UTC (11 years, 11 months ago) by niro
File size: 1846 byte(s)
-marked unstable
1 niro 12633 # $Id$
2    
3     PNAME="coreutils"
4     PVER="8.17"
5     PBUILD="r2"
6    
7     PCAT="sys-apps"
8 niro 12753 STATE="unstable"
9 niro 12633
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.9
15     >= dev-libs/gmp-5
16     >= sys-dev/gettext-0.18
17     >= sys-apps/acl-2.2
18     >= sys-apps/attr-2.4
19     >= sys-libs/libcap-2.22"
20    
21     SDEPEND=">= sys-dev/automake-3
22     >= sys-dev/autoconf-4
23     >= sys-dev/m4-1.4"
24    
25     SRCFILE="${PNAME}-${PVER}.tar.xz"
26     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27    
28     sminclude mtools
29    
30     SRC_URI=(
31     gnu://${PNAME}/${SRCFILE}
32     mirror://${PNAME}/${SRCFILE}
33     mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch
34     )
35    
36     UP2DATE="updatecmd_gnu ${PNAME} xz"
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41     cd ${SRCDIR}
42    
43     # generic patches
44     mpatch ${PNAME}-5.94-more-dir-colors.patch || die
45    
46     if [[ -z $(which cvs 2>/dev/null) ]]
47     then
48     # fix issues with gettext's autopoint if cvs is not installed
49     export AUTOPOINT="/bin/true"
50     fi
51     }
52    
53     src_compile()
54     {
55     cd ${SRCDIR}
56    
57     # ignore root check
58     FORCE_UNSAFE_CONFIGURE=1 \
59     mconfigure \
60     --libexecdir=/usr/$(mlibdir)/${PNAME} \
61     --enable-largefile \
62     --enable-nls \
63     --enable-acl \
64     --enable-xattr \
65     --enable-libcap \
66     --enable-install-program=arch \
67     || die
68    
69     mmake || die
70     }
71    
72     src_install()
73     {
74     cd ${SRCDIR}
75    
76     make DESTDIR=${BINDIR} install-root || die
77     make DESTDIR=${BINDIR} install || die
78    
79     mlink test /usr/bin/[ || die
80    
81     minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die
82     }
83    
84     preinstall()
85     {
86     if [[ ! -z $(magequery -n mktemp) ]]
87     then
88     echo -e ${COLRED}
89     echo -e "Error: sys-apps/mktemp is installed!!"
90     echo -e "mktemp is now provided by coreutils and doesn't need an extra package anymore."
91     echo -e "Please uninstall sys-apps/mktemp first!"
92     echo -e ${COLDEFAULT}
93     die "sys-apps/mktemp found!"
94     fi
95     }