summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-09-19 06:48:56 +0000
committerUlrich Müller <ulm@gentoo.org>2013-09-19 06:48:56 +0000
commit604d9c1ed1af014a8476c27c3e3c88ecc3f5028b (patch)
tree83b72165247b72c2af2a2cdaeeea778b16a55612 /app-editors
parentmask old gtk+-1 packages for removal (diff)
downloadhistorical-604d9c1ed1af014a8476c27c3e3c88ecc3f5028b.tar.gz
historical-604d9c1ed1af014a8476c27c3e3c88ecc3f5028b.tar.bz2
historical-604d9c1ed1af014a8476c27c3e3c88ecc3f5028b.zip
Remove old.
Package-Manager: portage-2.2.6/cvs/Linux x86_64 Manifest-Sign-Key: 0x9433907D693FB5B8!
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/emacs/ChangeLog5
-rw-r--r--app-editors/emacs/Manifest24
-rw-r--r--app-editors/emacs/emacs-24.3-r1.ebuild333
3 files changed, 15 insertions, 347 deletions
diff --git a/app-editors/emacs/ChangeLog b/app-editors/emacs/ChangeLog
index c3ca57f37bf8..6558c6c062f3 100644
--- a/app-editors/emacs/ChangeLog
+++ b/app-editors/emacs/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-editors/emacs
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.598 2013/08/21 21:07:48 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.599 2013/09/19 06:48:28 ulm Exp $
+
+ 19 Sep 2013; Ulrich Müller <ulm@gentoo.org> -emacs-24.3-r1.ebuild:
+ Remove old.
21 Aug 2013; Ulrich Müller <ulm@gentoo.org> emacs-18.59-r8.ebuild:
Add ncurses[abi_x86_32] as alternative dependency on amd64.
diff --git a/app-editors/emacs/Manifest b/app-editors/emacs/Manifest
index 7429e4488590..be0600e97b03 100644
--- a/app-editors/emacs/Manifest
+++ b/app-editors/emacs/Manifest
@@ -12,7 +12,6 @@ DIST emacs-23.4-patches-8.tar.bz2 4742 SHA256 ec48d5186aa31240d5740a02949f5ac536
DIST emacs-23.4.tar.bz2 38646508 SHA256 26576f9e664397c729f78f5ffcd092969251988461896fe8793062346ee988b9 SHA512 def7a95ecaefae24d8102b96b1d575a23def1b11a8f0bb17b68f7913bd118e2ea4449a8feee76c1bd649f099b70419f0d494ddd9bb32b26f92720cda842b0296 WHIRLPOOL 2384c3f63ff153c3975e373334d6021d46b23ad3cab448ed2e1180501236453a61d13bf1dfbb2e6075bb141dd8511d85f77e37c763b39769f98de48eacc56f3b
DIST emacs-24.2-patches-3.tar.xz 3884 SHA256 cf2de3291f8dd09c8073300e2395182d51761055c67818a390cd7b052e764f44 SHA512 c424580bc9b93af3b99e5fcf0189a711314857019594ea90c42317f72cedf552bb3af93ce8394dd4af888d98395ff09a372535b7b58b98b8831adf165919e561 WHIRLPOOL 2eeb7a6b441626584ae2b9fd9eba231ef8b87e7ce017f703f8fe23b2cf2cb8e251dfb041c7affe73484d20916ea3fa341b583b23ffdf59948f66121a2613f63b
DIST emacs-24.2.tar.xz 34712012 SHA256 1f11b65520611d108eceea886cc1d2573704e18b19aded8a09b75fdea7eb0ddd SHA512 7627d985e9691dd5b5f2a14472592bc1da96ce90823ff50457bb5c20b6e746912b319befff5fb1dac024e1f150df6b7c687ee2cc785f5b7387885244f511bdbd WHIRLPOOL 37a2f8e45a7b3364728f9f99b0661a60355b93f19d745de505dc71b9d8a2ab4de6b4b75a104830da2bcc8d1b3d22539e5f52c85d2f104d8de0dcd0dd69dc9924
-DIST emacs-24.3-patches-1.tar.xz 1032 SHA256 6c783653ad86df30b36c7b5642d81e69403d8a18f3554bec2cd777ab3b91888e SHA512 2ec32c02d8db1c0fb6843367714375500e2e21059d9460617094c3a08febaca6ec2d7d8b1f98462500f9beb77b302d7ca34588d3e7109965af0855f5aa304797 WHIRLPOOL 98f66e3f37ff51706b411f045256caa8f15854dcdcd968f3a454f5b858784e40693b57b9251b9876fa5f9aeed44af7264c8cdfe92744b9e79b6e78e1c8aafef3
DIST emacs-24.3-patches-3.tar.xz 2108 SHA256 225e49dea51f913abf0f98800451a2c61acf52a4abdd72ddb63634d2d2795b08 SHA512 2d1ff6cbc799658e520a56c87a9ea7d40bf233698130fd65e4142fb9a0d2a71492e1af76501ed08d1bd014db41331ecabe443400cb84b09a395ad7362a207d50 WHIRLPOOL 11946a808bd8bd830f9f31dcc1cadb7282fe901855f8a65425524878ab9299b42ff9938a822ec2cb531bc885ec10e36b0e59fb6d388ef3330a77332bbf03c7fc
DIST emacs-24.3.tar.xz 35565352 SHA256 70aa2942e9ae689ed17eddedfca5027c364ffbcc8b59968b1645e935f4c7058d SHA512 a1300fa10a9fba2db9735db3d01382bcda89ceec033976c4622796dfdf6d2748ed5fa73edf229182b368190c8acbf706810dd5f344542d2c0d294154bc2d0ca9 WHIRLPOOL 687ad4c7d69b41884bf28269bdea1808e03cdcec5a5218d0bac23c07cca3ced341ef98b4d5892149e2dbe899774a5e60edde9931d6c0fe41687995f530fb61d8
DIST leim-21.4.tar.gz 3291433 SHA256 db24946985dd644bfed18815d6e991dad27f8ab1fd5823dd6dc4eb8dcd04333b SHA512 c361996f7a3fcc550e7af30a7df3f692071ded2c9dce998e72f537b0e8011f319cfae1742d0be463608a86852046cba23037a29c3ecdcbaf5976807e1d1a1e2c WHIRLPOOL d7f25d5d491f323b80609567ce5cbcb5f20109cdd4671e9972c79279a3ca5338bbf67d35ae8f0bc627bc06917f545d71ab1f66a09c647f47ddaea26772bfc5c1
@@ -21,21 +20,20 @@ EBUILD emacs-21.4-r24.ebuild 5286 SHA256 564082d9d96421342ec92f1d303ea07fb44ccf4
EBUILD emacs-22.3-r10.ebuild 7738 SHA256 5a219fa5f170f33347f07f4fcd8f52e8290bb3cd0c0be2c4abdadefd311511f3 SHA512 35a1450f8cbaeee5a14b7a8fb5e428e473b86e3b31481fad0144168a07b5f3158c9b2c3e68e244f1c14b8b044b1d0736d66e249239482ca3aa4b8be4ad8cfdbd WHIRLPOOL ace481ef8a33d517cb153545fd310761658d592da4232ab8d58c79e4c42bb742436a44fbc99ad91f472b9586bd62c20549347cbca7418c133a7a5b92ee66ba0b
EBUILD emacs-23.4-r6.ebuild 10664 SHA256 23f281f4a84f70d0af8505fe55c06db51f2cb37dba030946afdff6a188660383 SHA512 1b38b8063103b5f1e2ad44a3731cc496a118eaa4d9151b5119ee84279fcd701ef45c8f2abc154ecb0f029633fdfa12103e43145fb5b043d735315b6c51eaa747 WHIRLPOOL 0e99ea5838535c69f2ac72957c557051ff86a49bab69afd51a62e46d141d72807982450c5bcf174cf4ae957abcaf8e2be3bb15ace17cb5f510af78d328ff4f5e
EBUILD emacs-24.2-r1.ebuild 11000 SHA256 c482a3c0e91ffc14241a7576fbe99342831f5aeb11ae8f714bb239b9cb416b7e SHA512 93ddb550c0fdc801206588f7009401305877c93e7c03ab72a53c8b44763dc5b078f272e10631949a189476a12677d6e2c0f6f69c793f93efff80607591bd74e4 WHIRLPOOL 3d058a2fc9d74e247f9b90028e8b0e7976a3de28ba51252e4da311761d5196094cf0295d020f4d02c9caa14a35f2535fdd36495694c73b10a4e9c0c766da070d
-EBUILD emacs-24.3-r1.ebuild 10602 SHA256 f982e45c73886d257c8fb55329306d5ac2bbd7aeabfa7d0fad99be8830dc1ed6 SHA512 e929f5344ff227d4ba3d49efe5702a5e7cb8a0f67c98946609c2e08d05ed51e60c62ab1692b748ad7a39e11ccc60d1948870c2925dd59590c6e3c7b6a0668fba WHIRLPOOL c7f680fe421f7eeed51a3b592d7115ccc8c00881e575b8b4ffaeff4ad6958586dd712bee275172d19b276e6c51cdab2462989dad4290794b277a3214d983baea
EBUILD emacs-24.3-r2.ebuild 10650 SHA256 df393015777ce3bda50f05d1c5a7f78687b9a2e428a19f0fc826d38814f8f8cc SHA512 d61735653b1004a1433632c522b61dfece209d8e97e3632af5632e865287a850794127493e0395d7f1b57486f07e6efe90a7735a5d28fd7d60f70bfbd8543344 WHIRLPOOL edb594efeca7e1e996c05b892b636ae5c4c35a3edae17fc34a509284cd32817458d8a470cc4d37558df9b96c9741f95cd73818d549aa415abb8bdaaf3e68e31e
-MISC ChangeLog 82757 SHA256 85046d1cd7ff9e7c1cbe40e51bbece2d40c90b660d83f4e2cbbea68d722a2408 SHA512 7874abbe0a30eca42c03b391c62524635c73c3868db790a28fef3eb5a9d0a1075eb68b80d9b859ff28632f8c54521698282a60ad908340ba8036f0a5a2581559 WHIRLPOOL 06a34399738cb9457a11abc570c831442a0730cdb807114e40088dbb82c3ee113f752ca18fe51c5785d09e1f9ecf063f3a664e079f9bc66ad178bec563cacd6f
+MISC ChangeLog 82842 SHA256 4ce8f2d3a149c44a35d86ff282d63dea12d4e824c4546ea2f66beeb3e3e4e684 SHA512 75f8f51b9bf4efbe2781217515377363f01d06a291081008e38c2614b16bb464936e0cbfb6c117c0462950c4149dca9c2a5c69fd63f5d854f4e1cacf4562992a WHIRLPOOL 463c098fbb6a5cc33d0a885bfdaaac7565d1321f83021e26cee342fb03dcbccf134590cd57a0d4456b3fa0e9496bff9e7351eb49803fe101f371b527fc0259de
MISC metadata.xml 2554 SHA256 94ab92fa323dcb5747564f95bfd1e2a3eca2511cd3e95b48e4ca95ea40ac8238 SHA512 24207b2227969f1d87126bbca5046f10f848f22584fa9c2a23a88ebb854e4344cc564902be1e6e1b86ae8b9da416f65ccf6172d4595633d6063f78893f9ae0c1 WHIRLPOOL db5cb9f87e4804152bf0a41807497733f4a4c382dd634b2ba7cc41fb6bda07191adca7e68b11dcac79d681b3b17dc9a4d629d0b8d152cd8c148883e754385155
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)
-iQGcBAEBCAAGBQJSFSyzAAoJEJQzkH1pP7W4kRoMAJr0NU0QYDm7SBpFRhmRLPRg
-rBw+FAeDyoR48/Hmd/HoM2ruG1X4UOvlh6HHMaorP+IXQ++XEBnKtr70gJKQR7p1
-KsrmDeyPr5Hac0xg8dpxOj5KhTFkUqiI4tf4bHPTnVTIoKK8ScDbYjgVhoSMEYUw
-gSfmFBUTYUAGFk0rGKkPgcMWtJVfxYcgs2R3btZFgfoCWsi4ZxqKjcP1w/H0iEAb
-PSgltQi9vJjyu5Qd6rFJ90MNX6s1ELUsagA4E6DxsEFlI9FwL3rJ1FvgiOPL7UHm
-hQcbs/1TtdMBRshY5YYWb6eTixErPIHNHO2gNzIHU5ftqAXW0yJC5vi281m7GjXR
-meCcuwImdD/o/dBIHpDfpRYPLh6HS0OSWYtu5eHc5mWcb/yt8lFaoESbxuhQoCUC
-SAIgwwYcpRXbPShKBCGQ2LuZJvuigvcjxjt+MeZtV5y2QgCO15aRfyoPopN+BVzM
-C368OF/mH+534Ras/y9gSx4aYLFv5uR9lnhZxrsilA==
-=GIED
+iQGcBAEBCAAGBQJSOp5eAAoJEJQzkH1pP7W4bwIL/3FKuV0sctdSP1zrPljUEHfQ
+yFZp1meVyTXBwysb7uFGVqDdnEGvZD8EL1s8r25b8u0x5CbWizoWI5SdmtObczR8
+ZiF0iSneLx4zO5+h698usNIjQgiJXC7FayD5qANDcwQU703SX/sBkzZP0M2EHxNs
+7uKTnFS5/c/NdAu/OUu3RUU1MdXuo+f/8cLelBr+tePpg+FinzIifnLv1xC0ak7s
+YII+RwGdRQB+jzlxJISp2y/T3JNQjCFXvGZItbC7l/nE7WDCACfFBHEBpjoHAPb1
+1qdocVnRFfJcpy1X3Rw7EYHu4vaoI0yEJJ9b7iUBYbVJSWrrsmFY3JcHA7UUXl4p
+R9HoHgrW3dh1NWP/PZNz2LX7M8xU3Ce2KqhSPm8+1grPkRycwX6nnsaZtrLaeCde
+uVRr7rKIpGazYNakAMOziF6xHEN0CHpusuePaqbp7qUijGzgBbDQE02fy7v2CI4h
+bMvRwh+ycEysYwzkyJk10WQgTANf33kzUuMbs7rm1g==
+=NtHr
-----END PGP SIGNATURE-----
diff --git a/app-editors/emacs/emacs-24.3-r1.ebuild b/app-editors/emacs/emacs-24.3-r1.ebuild
deleted file mode 100644
index e9b40d98c786..000000000000
--- a/app-editors/emacs/emacs-24.3-r1.ebuild
+++ /dev/null
@@ -1,333 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-24.3-r1.ebuild,v 1.16 2013/08/02 16:32:56 ulm Exp $
-
-EAPI=5
-
-inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
-
-DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
-HOMEPAGE="http://www.gnu.org/software/emacs/"
-SRC_URI="mirror://gnu/emacs/${P}.tar.xz
- mirror://gentoo/${P}-patches-1.tar.xz"
-
-LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
-SLOT="24"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="alsa aqua athena dbus games gconf gif gnutls gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm"
-REQUIRED_USE="?? ( aqua X )"
-
-RDEPEND="sys-libs/ncurses
- >=app-admin/eselect-emacs-1.2
- >=app-emacs/emacs-common-gentoo-1.3-r3[games?,X?]
- net-libs/liblockfile
- hesiod? ( net-dns/hesiod )
- kerberos? ( virtual/krb5 )
- alsa? ( media-libs/alsa-lib )
- gpm? ( sys-libs/gpm )
- dbus? ( sys-apps/dbus )
- gnutls? ( net-libs/gnutls )
- libxml2? ( >=dev-libs/libxml2-2.2.0 )
- selinux? ( sys-libs/libselinux )
- X? (
- x11-libs/libXmu
- x11-libs/libXt
- x11-misc/xbitmaps
- gconf? ( >=gnome-base/gconf-2.26.2 )
- gsettings? ( >=dev-libs/glib-2.28.6 )
- gif? ( media-libs/giflib )
- jpeg? ( virtual/jpeg:0= )
- png? ( >=media-libs/libpng-1.4:0= )
- svg? ( >=gnome-base/librsvg-2.0 )
- tiff? ( media-libs/tiff )
- xpm? ( x11-libs/libXpm )
- imagemagick? ( >=media-gfx/imagemagick-6.6.2 )
- xft? (
- media-libs/fontconfig
- media-libs/freetype
- x11-libs/libXft
- m17n-lib? (
- >=dev-libs/libotf-0.9.4
- >=dev-libs/m17n-lib-1.5.1
- )
- )
- gtk? (
- gtk3? ( x11-libs/gtk+:3 )
- !gtk3? ( x11-libs/gtk+:2 )
- )
- !gtk? (
- motif? ( >=x11-libs/motif-2.3:0 )
- !motif? (
- Xaw3d? ( x11-libs/libXaw3d )
- !Xaw3d? ( athena? ( x11-libs/libXaw ) )
- )
- )
- )"
-
-DEPEND="${RDEPEND}
- app-arch/xz-utils
- alsa? ( virtual/pkgconfig )
- dbus? ( virtual/pkgconfig )
- gnutls? ( virtual/pkgconfig )
- libxml2? ( virtual/pkgconfig )
- X? ( virtual/pkgconfig )
- gzip-el? ( app-arch/gzip )
- pax_kernel? ( sys-apps/paxctl )"
-
-RDEPEND="${RDEPEND}
- !<app-editors/emacs-vcs-${PV}"
-
-EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
-SITEFILE="20${PN}-${SLOT}-gentoo.el"
-# FULL_VERSION keeps the full version number, which is needed in
-# order to determine some path information correctly for copy/move
-# operations later on
-FULL_VERSION="${PV%%_*}"
-S="${WORKDIR}/emacs-${FULL_VERSION}"
-
-src_prepare() {
- EPATCH_SUFFIX=patch epatch
- epatch_user
-
- if ! use alsa; then
- # ALSA is detected even if not requested by its USE flag.
- # Suppress it by supplying pkg-config with a wrong library name.
- sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.ac \
- || die "unable to sed configure.ac"
- fi
- if ! use gzip-el; then
- # Emacs' build system automatically detects the gzip binary and
- # compresses el files. We don't want that so confuse it with a
- # wrong binary name
- sed -i -e "/AC_PATH_PROG/s/gzip/PrEvEnTcOmPrEsSiOn/" configure.ac \
- || die "unable to sed configure.ac"
- fi
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
- strip-flags
-
- if use sh; then
- replace-flags "-O[1-9]" -O0 #262359
- elif use ia64; then
- replace-flags "-O[2-9]" -O1 #325373
- else
- replace-flags "-O[3-9]" -O2
- fi
-
- local myconf
-
- if use alsa && ! use sound; then
- einfo "Although sound USE flag is disabled you chose to have alsa,"
- einfo "so sound is switched on anyway."
- myconf+=" --with-sound"
- else
- myconf+=" $(use_with sound)"
- fi
-
- if use X; then
- myconf+=" --with-x --without-ns"
- myconf+=" $(use_with gconf)"
- myconf+=" $(use_with gsettings)"
- myconf+=" $(use_with toolkit-scroll-bars)"
- myconf+=" $(use_with gif)"
- myconf+=" $(use_with jpeg)"
- myconf+=" $(use_with png)"
- myconf+=" $(use_with svg rsvg)"
- myconf+=" $(use_with tiff)"
- myconf+=" $(use_with xpm)"
- myconf+=" $(use_with imagemagick)"
-
- if use xft; then
- myconf+=" --with-xft"
- myconf+=" $(use_with m17n-lib libotf)"
- myconf+=" $(use_with m17n-lib m17n-flt)"
- else
- myconf+=" --without-xft"
- myconf+=" --without-libotf --without-m17n-flt"
- use m17n-lib && ewarn \
- "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
- fi
-
- local f
- if use gtk; then
- einfo "Configuring to build with GIMP Toolkit (GTK+)"
- myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
- for f in motif Xaw3d athena; do
- use ${f} && ewarn \
- "USE flag \"${f}\" has no effect if \"gtk\" is set."
- done
- elif use motif; then
- einfo "Configuring to build with Motif toolkit"
- myconf+=" --with-x-toolkit=motif"
- for f in Xaw3d athena; do
- use ${f} && ewarn \
- "USE flag \"${f}\" has no effect if \"motif\" is set."
- done
- elif use athena || use Xaw3d; then
- einfo "Configuring to build with Athena/Lucid toolkit"
- myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
- else
- einfo "Configuring to build with no toolkit"
- myconf+=" --with-x-toolkit=no"
- fi
- elif use aqua; then
- einfo "Configuring to build with Nextstep (Cocoa) support"
- myconf+=" --with-ns --disable-ns-self-contained"
- myconf+=" --without-x"
- else
- myconf+=" --without-x --without-ns"
- fi
-
- # Save version information in the Emacs binary. It will be available
- # in variable "system-configuration-options".
- myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
-
- # According to configure, this option is only used for GNU/Linux
- # (x86_64 and s390). For Gentoo Prefix we have to explicitly spell
- # out the location because $(get_libdir) does not necessarily return
- # something that matches the host OS's libdir naming (e.g. RHEL).
- local crtdir=$($(tc-getCC) -print-file-name=crt1.o)
- crtdir=${crtdir%/*}
-
- econf \
- --program-suffix="-${EMACS_SUFFIX}" \
- --program-transform-name="s/^\(emacs\)-[0-9].*-\1/\1/" \
- --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
- --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
- --with-crt-dir="${crtdir}" \
- --with-gameuser="${GAMES_USER_DED:-games}" \
- --without-compress-info \
- $(use_with hesiod) \
- $(use_with kerberos) $(use_with kerberos kerberos5) \
- $(use_with gpm) \
- $(use_with dbus) \
- $(use_with gnutls) \
- $(use_with libxml2 xml2) \
- $(use_with selinux) \
- $(use_with wide-int) \
- ${myconf}
-}
-
-src_compile() {
- export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
- emake
-}
-
-src_install () {
- emake DESTDIR="${D}" NO_BIN_LINK=t install
-
- # move info dir to avoid collisions with the dir file generated by portage
- mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
- || die "moving info dir failed"
- touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
- docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
-
- # avoid collision between slots, see bug #169033 e.g.
- rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
- rm -rf "${ED}"/usr/share/{applications,icons}
- rm -rf "${ED}"/var
-
- # remove unused <version>/site-lisp dir
- rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
-
- local cdir
- if use source; then
- cdir="/usr/share/emacs/${FULL_VERSION}/src"
- insinto "${cdir}"
- # This is not meant to install all the source -- just the
- # C source you might find via find-function
- doins src/*.{c,h,m}
- elif has installsources ${FEATURES}; then
- cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
- fi
-
- sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF
- X
- ;;; ${PN}-${SLOT} site-lisp configuration
- X
- (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
- Y (setq find-function-C-source-directory
- Y "${EPREFIX}${cdir}")
- X (let ((path (getenv "INFOPATH"))
- X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
- X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
- X (and path
- X ;; move Emacs Info dir before anything else in /usr/share/info
- X (let* ((p (cons nil (split-string path ":" t))) (q p))
- X (while (and (cdr q) (not (string-match re (cadr q))))
- X (setq q (cdr q)))
- X (setcdr q (cons dir (delete dir (cdr q))))
- X (setq Info-directory-list (prune-directory-list (cdr p)))))))
- EOF
- elisp-site-file-install "${T}/${SITEFILE}" || die
-
- dodoc README BUGS
-
- if use aqua; then
- dodir /Applications/Gentoo
- rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
- mv nextstep/Emacs.app \
- "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
- fi
-
- DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
- through the Emacs eselect module, which also redirects man and info
- pages. Therefore, several Emacs versions can be installed at the
- same time. \"man emacs.eselect\" for details.
- \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
- strongly recommended that you use app-admin/emacs-updater to rebuild
- all byte-compiled elisp files of the installed Emacs packages."
- use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
- Installing media-fonts/font-adobe-{75,100}dpi on the X server's
- machine would satisfy basic Emacs requirements under X11.
- See also https://wiki.gentoo.org/wiki/Project:Emacs/Xft_support
- for how to enable anti-aliased fonts."
- use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
- \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
- it into /Applications by yourself."
- readme.gentoo_create_doc
-}
-
-pkg_preinst() {
- # move Info dir file to correct name
- local infodir=/usr/share/info/${EMACS_SUFFIX} f
- if [[ -f ${ED}${infodir}/dir.orig ]]; then
- mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
- elif [[ -d "${ED}"${infodir} ]]; then
- # this should not happen in EAPI 4
- ewarn "Regenerating Info directory index in ${infodir} ..."
- rm -f "${ED}"${infodir}/dir{,.*}
- for f in "${ED}"${infodir}/*; do
- if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
- install-info --info-dir="${ED}"${infodir} "${f}" \
- || die "install-info failed"
- fi
- done
- fi
-}
-
-pkg_postinst() {
- elisp-site-regen
-
- local pvr
- for pvr in ${REPLACING_VERSIONS}; do
- [[ ${pvr%%[-_]*} = 24.[12] ]] && FORCE_PRINT_ELOG=1
- done
- readme.gentoo_print_elog
-
- if use livecd; then
- # force an update of the emacs symlink for the livecd/dvd,
- # because some microemacs packages set it with USE=livecd
- eselect emacs update
- else
- eselect emacs update ifunset
- fi
-}
-
-pkg_postrm() {
- elisp-site-regen
- eselect emacs update ifunset
-}