diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-05-03 12:11:28 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-05-03 12:11:28 +0000 |
commit | ba83174737835d64a51816021e90f4e11372a790 (patch) | |
tree | 9669f0e199063bcce5703fd960e178b16f618178 /app-admin/eselect-emacs | |
parent | etags.eselect is created from Makefile. (diff) | |
download | emacs-ba83174737835d64a51816021e90f4e11372a790.tar.gz emacs-ba83174737835d64a51816021e90f4e11372a790.tar.bz2 emacs-ba83174737835d64a51816021e90f4e11372a790.zip |
Version bump, prerelease eselect-{ctags,emacs}.
svn path=/emacs-overlay/; revision=1059
Diffstat (limited to 'app-admin/eselect-emacs')
-rw-r--r-- | app-admin/eselect-emacs/ChangeLog | 6 | ||||
-rw-r--r-- | app-admin/eselect-emacs/Manifest | 6 | ||||
-rw-r--r-- | app-admin/eselect-emacs/eselect-emacs-1.4_pre1.ebuild (renamed from app-admin/eselect-emacs/eselect-emacs-9999.ebuild) | 13 | ||||
-rwxr-xr-x | app-admin/eselect-emacs/files/emacs-updater | 122 |
4 files changed, 134 insertions, 13 deletions
diff --git a/app-admin/eselect-emacs/ChangeLog b/app-admin/eselect-emacs/ChangeLog index e5eebb6..a639930 100644 --- a/app-admin/eselect-emacs/ChangeLog +++ b/app-admin/eselect-emacs/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*eselect-emacs-1.4_pre1 (03 May 2008) + + 03 May 2008; Ulrich Mueller <ulm@gentoo.org> +files/emacs-updater, + +eselect-emacs-1.4_pre1.ebuild, -eselect-emacs-9999.ebuild: + Prerelease. + 01 May 2008; Ulrich Mueller <ulm@gentoo.org> eselect-emacs-9999.ebuild: etags.eselect is created from Makefile. diff --git a/app-admin/eselect-emacs/Manifest b/app-admin/eselect-emacs/Manifest index 0ab363c..02ca27e 100644 --- a/app-admin/eselect-emacs/Manifest +++ b/app-admin/eselect-emacs/Manifest @@ -1,3 +1,5 @@ -EBUILD eselect-emacs-9999.ebuild 905 RMD160 235e8be13739cdf373b7e48588998ef0c184fe3c SHA1 66fe06c711c08b0f5bda35edc8075578c60509cd SHA256 3bac5377ffe9054e41097a75efdcdcaecd67ae6ab9390edd72e311f85f068a43 -MISC ChangeLog 388 RMD160 1ed7c453d1633d3971b25c4c591d96b29d8c81ae SHA1 1f7982107cbeb6ffc3ef6542d8a826e7de5eee25 SHA256 81bf258821a4ca48d64e2ed5663b16775f0d861b85328d35350b52810b2e60d9 +AUX emacs-updater 2880 RMD160 670ba0b40d7c957d1ebf7a61ef6f37205569a721 SHA1 f80a4a5127f1d54494a3b1f3e842f17bd96ba0a1 SHA256 dfdf65efad666f5133e9d2cfdefae31589618de1addd2ae3057cb708ce493f5e +DIST eselect-emacs-1.4_pre1.tar.bz2 7381 RMD160 3ec4df30bc528ee931df2fdca0e843cfeaf91cee SHA1 f75c80e9c0b5af11d9a5c258c4298de9bfdbe024 SHA256 18d0359430026dddf043bc2a6db728de0e8f6cf374a36089fdf9458e542b5fbc +EBUILD eselect-emacs-1.4_pre1.ebuild 780 RMD160 01251c6ccc3a02133df04fc2bd31d99757441f86 SHA1 7cf124e21c7c12b364102dac07f84cd076e40173 SHA256 721f7747d7dfe68fb05d6fac394494d9293219484e233785ce8006100303a908 +MISC ChangeLog 573 RMD160 dbb30ad12c22cd4d62be67d316def17101c4708b SHA1 df3720754a605c6c38b03a0d4b40ae909753f7e2 SHA256 51b12cde4116db9fba456fabc717d93f3b469d9955b115a65bd769e649688b41 MISC metadata.xml 158 RMD160 415d172437ca754d24fc5ab186ba8e77934d96e4 SHA1 61f6eff9729cd87a725c2a70c81aca4270a17fc4 SHA256 1393bdef3a74343fdb40a112c7096a1af16f67e7a43413250de28dfe73810eab diff --git a/app-admin/eselect-emacs/eselect-emacs-9999.ebuild b/app-admin/eselect-emacs/eselect-emacs-1.4_pre1.ebuild index 1d72f56..42752e9 100644 --- a/app-admin/eselect-emacs/eselect-emacs-9999.ebuild +++ b/app-admin/eselect-emacs/eselect-emacs-1.4_pre1.ebuild @@ -2,12 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit subversion - DESCRIPTION="Manages Emacs versions" HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/" #SRC_URI="mirror://gentoo/${P}.tar.bz2" -ESVN_REPO_URI="svn://anonsvn.gentoo.org/emacs/${PN}" +SRC_URI="http://dev.gentoo.org/~ulm/distfiles/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" @@ -18,17 +16,10 @@ DEPEND="" RDEPEND=">=app-admin/eselect-1.0.10 ~app-admin/eselect-ctags-${PV}" -S="${WORKDIR}/${PN}" - -src_unpack() { - subversion_fetch || die - subversion_fetch "${ESVN_REPO_URI%/*}/emacs-updater" || die -} - src_install() { insinto /usr/share/eselect/modules doins {emacs,etags}.eselect || die "doins failed" doman {emacs,etags}.eselect.5 || die "doman failed" dodoc ChangeLog || die "dodoc failed" - dosbin emacs-updater || die "dosbin failed" + dosbin "${FILESDIR}/emacs-updater" || die "dosbin failed" } diff --git a/app-admin/eselect-emacs/files/emacs-updater b/app-admin/eselect-emacs/files/emacs-updater new file mode 100755 index 0000000..7f94d97 --- /dev/null +++ b/app-admin/eselect-emacs/files/emacs-updater @@ -0,0 +1,122 @@ +#!/bin/bash + +# Copyright 2007-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: emacs-updater,v 1.3 2008/03/08 06:53:06 ulm Exp $ + +# Authors: +# Christian Faulhammer <opfer@gentoo.org> +# Ulrich Mueller <ulm@gentoo.org> + +VERSION=0.6 +SITELISP=/usr/share/emacs/site-lisp +TMPFILE="$(mktemp /tmp/emacs-updater.XXXXXX)" + +cat <<-EOF + +Emacs updater version ${VERSION} +Written by the Gentoo Emacs team http://www.gentoo.org/proj/en/lisp/emacs/ +Find packages that are installed in the wrong location + +EOF + +usage() { + sed -e 's/^X//' <<-EOF + Usage: ${0##*/} [OPTION]... + X -n, --nocolour disable colour in output + X -p, --pretend don't actually emerge packages + X -h, --help display this help and exit + EOF + exit ${1} +} + +# Read in all command-line options and force English output +OPTIONS=$(LC_ALL=C getopt -o hpn --long help,pretend,nocolour \ + -n 'emacs-updater' -- "$@") +[ $? -eq 0 ] || usage 1 + +eval set -- "${OPTIONS}" + +while true +do + case "${1}" in + -h|--help) usage 0 ;; + -p|--pretend) PRETEND="true"; shift 1 ;; + -n|--nocolour) NOCOLOUR="true"; shift 1 ;; + --) shift; break ;; + esac +done + +# Only set colours if output is not redirected or the --no-colour +# option is not set +if [ -t 1 ] && [ -z "${NOCOLOUR}" ] ; then + RED=$(tput -S <<<$'setaf 1\nbold') + GREEN=$(tput -S <<<$'setaf 2\nbold') + YELLOW=$(tput -S <<<$'setaf 3\nbold') + BLUE=$(tput -S <<<$'setaf 4\nbold') + MAGENTA=$(tput -S <<<$'setaf 5\nbold') + CYAN=$(tput -S <<<$'setaf 6\nbold') + BOLD=$(tput bold) + NORMAL=$(tput sgr0) +fi + +message() { + local OUTPUT=$@ + echo "${GREEN}*${NORMAL}${BOLD} ${OUTPUT}${NORMAL}" +} + +warning() { + local OUTPUT=$@ + echo "${YELLOW}*${NORMAL}${BOLD} ${OUTPUT}${NORMAL}" +} + +failure() { + local OUTPUT=$@ + echo "${RED}*${NORMAL}${BOLD} ${OUTPUT}${NORMAL}" +} + +if ! [ -x /usr/bin/qfile ]; then + echo + failure "Please emerge app-portage/portage-utils to use this tool" + exit 1 +fi + +for sf in "${ROOT}${SITELISP}"/[0-9][0-9]*-gentoo.el +do + [ "${sf##*/}" = 00site-gentoo.el ] && continue + message "Processing ${sf##*/} ..." + qfile -qCR "${sf}" >> "${TMPFILE}" +done +echo + +if [ ! -s "${TMPFILE}" ]; then + warning "No packages to update, quitting." + exit 2 +fi + +NO_OF_PACKAGES=$(sed -n '$=' "${TMPFILE}") + +[ ${NO_OF_PACKAGES} -eq 1 ] && s= || s=s +message "${NO_OF_PACKAGES} package${s} with site files in the wrong location:" +cat "${TMPFILE}" + +if [ "${PRETEND}" ]; then + exit 3 +fi + +echo +echo -n "${BOLD}Remerge packages?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] " +read choice +echo +case "${choice}" in + y*|Y*|"") + ;; + *) + warning "Quitting." + exit 10 ;; +esac + +emerge --oneshot --ask --verbose $(cat "${TMPFILE}") + +warning "If a package is being rebuilt over and over again," +warning "please report it on http://bugs.gentoo.org/" |