diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-08-21 22:53:25 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-08-21 22:53:25 +0000 |
commit | c39e0b7303b8ff952a2c09f1a137d6f5ab46e161 (patch) | |
tree | fa4b004b4df5f79dc4d21bf9163d0669b0f5b80a /app-editors | |
parent | Corrected some typos in the post-install message and updated it. (diff) | |
download | gentoo-2-c39e0b7303b8ff952a2c09f1a137d6f5ab46e161.tar.gz gentoo-2-c39e0b7303b8ff952a2c09f1a137d6f5ab46e161.tar.bz2 gentoo-2-c39e0b7303b8ff952a2c09f1a137d6f5ab46e161.zip |
Generate score files in pkg_postinst; other minor changes.
(Portage version: 2.1.3.6)
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/emacs-cvs/ChangeLog | 7 | ||||
-rw-r--r-- | app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild | 9 | ||||
-rw-r--r-- | app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild | 25 |
3 files changed, 30 insertions, 11 deletions
diff --git a/app-editors/emacs-cvs/ChangeLog b/app-editors/emacs-cvs/ChangeLog index e256014de035..ed8100fe5e6f 100644 --- a/app-editors/emacs-cvs/ChangeLog +++ b/app-editors/emacs-cvs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-editors/emacs-cvs # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.144 2007/07/30 23:08:32 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.145 2007/08/21 22:53:25 ulm Exp $ + + 21 Aug 2007; Ulrich Mueller <ulm@gentoo.org> emacs-cvs-22.1.50.ebuild, + emacs-cvs-23.0.0-r6.ebuild: + Check for change of upstream version number. Sync suffix handling. Generate + score files in pkg_postinst. 30 Jul 2007; Ulrich Mueller <ulm@gentoo.org> emacs-cvs-23.0.0-r6.ebuild: Update licence info to GPL-3. diff --git a/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild index 4a56d4a8133f..657266d442bc 100644 --- a/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild,v 1.22 2007/07/25 05:59:30 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild,v 1.23 2007/08/21 22:53:25 ulm Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -69,7 +69,7 @@ src_unpack() { | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/') [ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version" echo - einfo "Emacs CVS trunk" + einfo "Emacs CVS branch: ${ECVS_BRANCH}" einfo "Emacs version number: ${FULL_VERSION}" [ "${FULL_VERSION}" = ${PV} ] \ || die "Upstream version number changed to ${FULL_VERSION}" @@ -216,6 +216,11 @@ pkg_postinst() { test -f ${ROOT}/usr/share/emacs/site-lisp/subdirs.el || cp ${ROOT}/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el + local f + for f in ${ROOT}/var/lib/games/emacs/{snake,tetris}-scores; do + test -e ${f} || touch ${f} + done + elisp-site-regen emacs-infodir-rebuild eselect emacs update --if-unset diff --git a/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild b/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild index 96e007da8697..1b0dcd45da43 100644 --- a/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild,v 1.28 2007/07/30 23:08:32 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild,v 1.29 2007/08/21 22:53:25 ulm Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -57,6 +57,8 @@ PROVIDE="virtual/editor" S="${WORKDIR}/${ECVS_LOCALNAME}" +EMACS_SUFFIX="emacs-${SLOT}" + src_unpack() { cvs_src_unpack @@ -70,6 +72,8 @@ src_unpack() { echo einfo "Emacs CVS branch: ${ECVS_BRANCH}" einfo "Emacs version number: ${FULL_VERSION}" + [ "${FULL_VERSION}" = ${PV} ] \ + || die "Upstream version number changed to ${FULL_VERSION}" echo sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \ @@ -149,8 +153,8 @@ src_compile() { myconf="${myconf} $(use_with gpm)" econf \ - --program-suffix=-emacs-${SLOT} \ - --infodir=/usr/share/info/emacs-${SLOT} \ + --program-suffix=-${EMACS_SUFFIX} \ + --infodir=/usr/share/info/${EMACS_SUFFIX} \ --without-carbon \ ${myconf} || die "econf emacs failed" @@ -160,21 +164,21 @@ src_compile() { src_install () { emake install DESTDIR="${D}" || die "make install failed" - rm "${D}"/usr/bin/emacs-${FULL_VERSION}-emacs-${SLOT} \ + rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \ || die "removing duplicate emacs executable failed" - mv "${D}"/usr/bin/emacs-emacs-${SLOT} "${D}"/usr/bin/emacs-${SLOT} \ + mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \ || die "moving Emacs executable failed" # move info documentation to the correct place einfo "Fixing info documentation ..." - for i in "${D}"/usr/share/info/emacs-${SLOT}/*; do + for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do mv ${i} ${i}.info || die "mv info failed" done # move man pages to the correct place einfo "Fixing manpages ..." for m in "${D}"/usr/share/man/man1/* ; do - mv ${m} ${m%.1}-emacs-${SLOT}.1 || die "mv man failed" + mv ${m} ${m%.1}-${EMACS_SUFFIX}.1 || die "mv man failed" done # avoid collision between slots, see bug #169033 e.g. @@ -203,7 +207,7 @@ emacs-infodir-rebuild() { # or removed. It is only rebuilt by Portage if our directory is in # INFOPATH, which is not guaranteed. So we rebuild it ourselves. - local infodir=/usr/share/info/emacs-${SLOT} f + local infodir=/usr/share/info/${EMACS_SUFFIX} f einfo "Regenerating Info directory index in ${infodir} ..." rm -f ${ROOT}${infodir}/dir{,.*} for f in ${ROOT}${infodir}/*.info*; do @@ -217,6 +221,11 @@ pkg_postinst() { test -f ${ROOT}/usr/share/emacs/site-lisp/subdirs.el || cp ${ROOT}/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el + local f + for f in ${ROOT}/var/lib/games/emacs/{snake,tetris}-scores; do + test -e ${f} || touch ${f} + done + elisp-site-regen emacs-infodir-rebuild eselect emacs update --if-unset |