# $Id$ PNAME="coreutils" PVER="8.17" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)." HOMEPAGE="http://www.gnu.org/software/coreutils/coreutils.html" DEPEND=">= virtual/glibc >= sys-libs/ncurses-5.9" SDEPEND=">= sys-dev/automake-3 >= sys-dev/autoconf-4 >= sys-dev/m4-1.4 >= dev-libs/gmp-5 >= sys-dev/gettext-0.18" SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" ALX_ONLY_KEEP="usr/bin/dircolors usr/bin/install usr/bin/ls usr/bin/mktemp usr/bin/touch" sminclude mtools cleanutils alx-split SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-5.94-more-dir-colors.patch ) UP2DATE="updatecmd_gnu ${PNAME} xz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # generic patches mpatch ${PNAME}-5.94-more-dir-colors.patch || die if [[ -z $(which cvs 2>/dev/null) ]] then # fix issues with gettext's autopoint if cvs is not installed export AUTOPOINT="/bin/true" fi } src_compile() { cd ${SRCDIR} mconfigure --enable-largefile --disable-nls --disable-acl --disable-xattr || die mmake || die } alx_generic_src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install-root || die make DESTDIR=${BINDIR} install || die mlink test /usr/bin/[ || die minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO || die # only keep binaries which are not provided by busybox zapmost ${BINDIR}/usr/bin chcon csplit dir dircolors factor fmt install join link ls mktemp nl nproc paste pathchk \ pinky pr ptx runcon sha1sum sha224sum sha256sum sha384sum sha512sum \ shuf stdbuf shred touch truncate tsort unlink vdir || die }