Re: [gentoo-dev] RFC: Update to elisp-common.eclass

2014-05-19 Thread Alex Xu
On 19/05/14 07:17 AM, Ulrich Mueller wrote: >> On Mon, 19 May 2014, Alex Xu wrote: > >> On 18/05/14 02:13 PM, Ulrich Mueller wrote: >>> if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then >>> ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} phase." >>> return 0 >

Re: [gentoo-dev] RFC: Update to elisp-common.eclass

2014-05-19 Thread Ulrich Mueller
> On Mon, 19 May 2014, Alex Xu wrote: > On 18/05/14 02:13 PM, Ulrich Mueller wrote: >> if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then >> ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} phase." >> return 0 >> fi >> >> +[[ -d ${sitelisp} ]] \ >> +

Re: [gentoo-dev] RFC: Update to elisp-common.eclass

2014-05-19 Thread Alex Xu
On 18/05/14 02:13 PM, Ulrich Mueller wrote: > if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then > ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} > phase." > return 0 > fi > > + [[ -d ${sitelisp} ]] \ > + |

Re: [gentoo-dev] RFC: Update to elisp-common.eclass

2014-05-18 Thread Ulrich Mueller
> On Mon, 19 May 2014, Jeroen Roovers wrote: > Are you sure this is useful? >> elisp-site-regen() { > [...] >> -if [[ ! -d ${T} ]]; then >> -eerror "elisp-site-regen: Temporary directory ${T} does not >> exist" >> -return 1 >> -fi > "The package manager must

Re: [gentoo-dev] RFC: Update to elisp-common.eclass

2014-05-18 Thread Jeroen Roovers
On Sun, 18 May 2014 20:13:07 +0200 Ulrich Mueller wrote: Are you sure this is useful? > --- a/eclass/elisp-common.eclass > +++ b/eclass/elisp-common.eclass > @@ -1,4 +1,4 @@ > -# Copyright 1999-2013 Gentoo Foundation > +# Copyright 1999-2014 Gentoo Foundation > # Distributed under the terms of

[gentoo-dev] RFC: Update to elisp-common.eclass

2014-05-18 Thread Ulrich Mueller
The patch below will introduce two changes to function elisp-site-regen (which is called in postinst and postrm phases): 1. Site-init files of Elisp packages will only be looked for in the site-gentoo.d subdirectory, but no longer in the main /usr/share/emacs/site-lisp dir. The elisp-site-fi