From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-emacs/emacs-common-gentoo/Manifest | 1 + .../emacs-common-gentoo-1.5.ebuild | 123 +++++++++++++++++++++ app-emacs/emacs-common-gentoo/metadata.xml | 8 ++ 3 files changed, 132 insertions(+) create mode 100644 app-emacs/emacs-common-gentoo/Manifest create mode 100644 app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.5.ebuild create mode 100644 app-emacs/emacs-common-gentoo/metadata.xml (limited to 'app-emacs/emacs-common-gentoo') diff --git a/app-emacs/emacs-common-gentoo/Manifest b/app-emacs/emacs-common-gentoo/Manifest new file mode 100644 index 000000000000..ca19f69fa9b4 --- /dev/null +++ b/app-emacs/emacs-common-gentoo/Manifest @@ -0,0 +1 @@ +DIST emacs-common-gentoo-1.5.tar.xz 40844 SHA256 fbec52de8552c6b22f56382a28d469d9346c02c7569c05cdb0db6a54b39995a1 SHA512 61ac2a1bb8bc449480137789f4d93228d81d2a7ea87a255a7fd82072ce98eecf5f585d102db95f0deda06102e27efbd5d9fce8cd21d6b58239f7a2b6d4ee4d55 WHIRLPOOL bb6d58d8afb55c9d6204f82553962190cd50f64d25ea5fb50308827f88ea3b1c42dc0e072155567391ffc7745b8871c733c9aee5042b57bfcbef5e5419d0b6cf diff --git a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.5.ebuild b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.5.ebuild new file mode 100644 index 000000000000..74f83d773a87 --- /dev/null +++ b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.5.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit elisp-common eutils fdo-mime gnome2-utils readme.gentoo user + +DESCRIPTION="Common files needed by all GNU Emacs versions" +HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Emacs" +SRC_URI="http://dev.gentoo.org/~ulm/emacs/${P}.tar.xz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="games X" + +PDEPEND="virtual/emacs" + +pkg_setup() { + use games && enewgroup gamestat 36 +} + +src_install() { + insinto "${SITELISP}" + doins subdirs.el + newins site-gentoo.el{,.orig} + + keepdir /etc/emacs + insinto /etc/emacs + doins site-start.el + + if use games; then + keepdir /var/games/emacs + fowners 0:gamestat /var/games/emacs + fperms g+w /var/games/emacs + fi + + if use X; then + local i + domenu emacs.desktop emacsclient.desktop || die + + pushd icons || die + newicon sink.png emacs-sink.png + newicon emacs_48.png emacs.png + newicon emacs22_48.png emacs22.png + for i in 16 24 32 48 128; do + newicon -s ${i} emacs_${i}.png emacs.png + done + for i in 16 24 32 48; do + newicon -s ${i} emacs22_${i}.png emacs22.png + done + doicon -s scalable emacs.svg + popd + + gnome2_icon_savelist + fi + + DOC_CONTENTS="All site initialisation for Gentoo-installed packages is + added to ${SITELISP}/site-gentoo.el. In order for this site + initialisation to be loaded for all users automatically, a default + site startup file /etc/emacs/site-start.el is installed. You are + responsible for maintenance of this file. + \n\nAlternatively, individual users can add the following command: + \n\n(require 'site-gentoo) + \n\nto their ~/.emacs initialisation files, or, for greater + flexibility, users may load single package-specific initialisation + files from the ${SITELISP}/site-gentoo.d/ directory." + readme.gentoo_create_doc +} + +pkg_preinst() { + # make sure that site-gentoo.el exists since site-start.el requires it + if [[ ! -f ${ED}${SITELISP}/site-gentoo.el ]]; then #554518 + mv "${ED}${SITELISP}"/site-gentoo.el{.orig,} || die + fi + if [[ -d ${EROOT}${SITELISP} ]]; then + elisp-site-regen + cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die + fi + + if use games; then + local f + for f in /var/games/emacs/{snake,tetris}-scores; do + if [[ -e ${EROOT}${f} ]]; then + cp "${EROOT}${f}" "${ED}${f}" || die + elif [[ -e ${EROOT}/var/lib${f#/var} ]]; then + # backwards compatibility + cp "${EROOT}/var/lib${f#/var}" "${ED}${f}" || die + fi + touch "${ED}${f}" || die + chgrp gamestat "${ED}${f}" || die + chmod g+w "${ED}${f}" || die + done + + if [[ -d ${EROOT}/var/games && -z $(find "${EROOT}"/var/games \ + -maxdepth 0 -uid 0 -gid 0 -perm 755 -print) ]]; then + chown 0:0 "${EROOT}"/var/games || die + chmod 755 "${EROOT}"/var/games || die + fi + if has 1.4-r1 ${REPLACING_VERSIONS} \ + && [[ -d ${EROOT}/var/games/emacs ]]; then + elog "Updating owner and permissions of score file directory." + chown 0:gamestat "${EROOT}"/var/games/emacs || die + chmod 775 "${EROOT}"/var/games/emacs || die + fi + fi +} + +pkg_postinst() { + if use X; then + fdo-mime_desktop_database_update + gnome2_icon_cache_update + fi + readme.gentoo_print_elog +} + +pkg_postrm() { + if use X; then + fdo-mime_desktop_database_update + gnome2_icon_cache_update + fi +} diff --git a/app-emacs/emacs-common-gentoo/metadata.xml b/app-emacs/emacs-common-gentoo/metadata.xml new file mode 100644 index 000000000000..dce592051146 --- /dev/null +++ b/app-emacs/emacs-common-gentoo/metadata.xml @@ -0,0 +1,8 @@ + + + +emacs + + Support shared score files for games + + -- cgit v1.2.3-65-gdbad