diff options
author | Ulrich Müller <ulm@gentoo.org> | 2015-07-25 06:53:58 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2015-07-25 06:53:58 +0000 |
commit | 742893ef4412a9e57b1648519d211f7125f1facb (patch) | |
tree | c0605927eb8c4d9cc587c5361bbaaeefa3267c58 /app-editors | |
parent | fixing missing manifest entry (diff) | |
download | historical-742893ef4412a9e57b1648519d211f7125f1facb.tar.gz historical-742893ef4412a9e57b1648519d211f7125f1facb.tar.bz2 historical-742893ef4412a9e57b1648519d211f7125f1facb.zip |
Snapshot of last revision before merging of cairo branch to master.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0x9433907D693FB5B8!
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/emacs-vcs/ChangeLog | 8 | ||||
-rw-r--r-- | app-editors/emacs-vcs/Manifest | 24 | ||||
-rw-r--r-- | app-editors/emacs-vcs/emacs-vcs-25.0.50_pre20150523.ebuild | 372 |
3 files changed, 392 insertions, 12 deletions
diff --git a/app-editors/emacs-vcs/ChangeLog b/app-editors/emacs-vcs/ChangeLog index ebbdbdb0b374..7b5179da7646 100644 --- a/app-editors/emacs-vcs/ChangeLog +++ b/app-editors/emacs-vcs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-editors/emacs-vcs # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v 1.197 2015/07/02 16:22:10 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v 1.198 2015/07/25 06:53:45 ulm Exp $ + +*emacs-vcs-25.0.50_pre20150523 (25 Jul 2015) + + 25 Jul 2015; Ulrich Müller <ulm@gentoo.org> + +emacs-vcs-25.0.50_pre20150523.ebuild: + Snapshot of last revision before merging of cairo branch to master. *emacs-vcs-25.0.50_pre20150630 (02 Jul 2015) diff --git a/app-editors/emacs-vcs/Manifest b/app-editors/emacs-vcs/Manifest index 22f725f331b6..08fa871dfac3 100644 --- a/app-editors/emacs-vcs/Manifest +++ b/app-editors/emacs-vcs/Manifest @@ -2,26 +2,28 @@ Hash: SHA256 DIST emacs-25.0.50_pre20150331.tar.xz 24800328 SHA256 b6aea078e1bc8453ce9242d30b5ab1167c72961f0f3a6a3472bae8cde8dfa193 SHA512 9f169ab06597a0fcfdc3854f42ea48adcfe6de7fb43dd2d3af24dae1ccf7bb8ff0df78ebe256a59089152ee95549170d854a90d2b0040e6518de3072cb833482 WHIRLPOOL d75319210586c40117527b5f091d52904397739d56888744e61ffd703a6465bd04dae9632b9e80b2692c4446aa27ade34a9509a523e038b76581dfa8dbb24084 +DIST emacs-25.0.50_pre20150523.tar.xz 25311384 SHA256 2dd6e7adb8e3359e00a8cbc15a28ef31b631c8363602e3be7566908f2ee2b047 SHA512 a897c4a4d7bd19c9c9a181b23240aed102295e30f1ba9a167b5c1a3231c05a4613023e6810ca0226cedea6325999a35efb0ea2a2b7e535a0338b7b688592438f WHIRLPOOL ce81ceca640c15437af427cef79090f71c8f19a78c8b2d5966f1887e88fff3bd35c00bcb266fb0d8133ee95b22cac8576f12462fa04c41feebcc7aad2f1ddb7e DIST emacs-25.0.50_pre20150531.tar.xz 26741144 SHA256 ad984201fb56ca09f48a09fa2d3ae2cc151c31b724ffd7de3926780817f0e1b7 SHA512 f9f019a9cf53a33b9c2a3374fe132d321f4e39d3d46ba83c637aaf32d02bfbb518d0b392311e47cf1eba349fcbdc6fdf3d8bbb248afed587168dd5bff110563f WHIRLPOOL b3d42367f726c0bd5e8335c4925ba3e706b7f74679c76e655db94334a761085273d2d1279d4a16867fbf462a82ad504f60a17f0c2eaaa8444b3808045acd513a DIST emacs-25.0.50_pre20150630.tar.xz 26793504 SHA256 b2bac514c9f345ff8f515d8cbcfde7dacf69644bce9a1353c42d5d7940603f3c SHA512 9bbd7afe4a8053273b06b801b70c4397d4f60365ca50cfc4677224304ca79e0acb6d709c6de2461257f61befaa21f80311f82b5ca47f739193340c7c4bfefa92 WHIRLPOOL 7a9badcfa89a53557f255bc6eb28e03d364dddf6343e56bcaf2dd9229054c41e9b7c5b23440322ccd32950b2c7d7dd1edb6cc1ae5c7c82543585d21de8c29937 EBUILD emacs-vcs-24.5.9999.ebuild 11932 SHA256 ef1c820341b46cf6e281f7c2e0e67de82c3e24c4ba2019e9095c8496a6a5a387 SHA512 9fc08bf3b1d592d6277d78e8254dbe9cdcefbe77b107ce47fcb3750925615927ec6e0148808635db9e5418229404548a905d6a7c2cf165858836e8fb65b58d63 WHIRLPOOL 7288f1afcdc67f552abc817ee0d31f56af4a28121178822308586b9606af29afaa1603b5ed5a8b69f666946d2fc7d7aba8c9099f223b45fb379743b079cadad8 EBUILD emacs-vcs-25.0.50_pre20150331.ebuild 11464 SHA256 a97b81a04655781c4c0df245ea34713842da481d39a646127a8dc8733435bd7a SHA512 d892f5e8ba489008e8dbe50cb510fcf20c28fe2da4f326cdddce9517eed80d999e13b8cb1269eba10abb74e66fc5dde410b2d282ec2ba0ad964e4b247c11efc9 WHIRLPOOL 2b37516abf6c1111ed47e06675b14bb73800c2c9e749b1fce90aaff9c74ff6db32b3c8fc2e4b11df60984e9308341d1b6f2221504cfbc78df200069bd48e0927 +EBUILD emacs-vcs-25.0.50_pre20150523.ebuild 11941 SHA256 dda68934f6ede03cdd455f77ad7de6e7b66137da7bc8431916980dad0c9cdbdb SHA512 cc4bb113d580e29aa1941950cf071f1d87fba72b48355d5503428c8c6f48680ca1e04138ef9ded19357d6660e5d0b97e925127f6cd71ded7bfb60371e835411a WHIRLPOOL 32bc4b873e48fe90412795d539e262e20a0a40f6197e45d3892c24881793abed835739524743e85c592260298e89e156a8e83b459949c9ca21cf758e22faed03 EBUILD emacs-vcs-25.0.50_pre20150531.ebuild 12016 SHA256 7102ba491e475f1e19874c6917a9ebb53f3a39c6f7073d9c15de7d3106675c7c SHA512 98cee75c7092cfd552877000041750ec6f16cf80a716f323cefa355fdae6e33f69997a3dcebf37d28d30aabd121fc325b2c4f939bf025f81ead1604c3783244b WHIRLPOOL f0542db4c7df463b50e914f7a642a33f37026898d15808d270ab32fc9c3a634fb40dce6ec076976b9c038b756d2882b43dcead17304e50d18bbfb5ee7e159e34 EBUILD emacs-vcs-25.0.50_pre20150630.ebuild 12016 SHA256 133afa21662c7b94056827dbd0e945ac8822400ad16eb415870682d4d8f170c9 SHA512 53b3d786a09bbdcc30617b77298451faf700ed3cb4bd84371f2e947f264796b4f906d925a22f4e6edb0d8c2c21a0b5363a6f7be9cbe43107c7df32f4eae53235 WHIRLPOOL 6ca6829f7eca53da27d4642c786ce548af9a20750b99e1cc40636dbfb2a1cedb3d4142766828ab0c84a6b99dd58b0c2c5f3d92dc22a551d418dd34196b7e35d4 EBUILD emacs-vcs-25.0.9999-r1.ebuild 12009 SHA256 20ba37592ec5e8c899a8526eac25591d2b81ad14fa90e2a425f69a98e5111ba5 SHA512 51d82a801a86805d66fa17b01f7db500b4df479ee7c4a98d5068c59af81e6ba1d640b3b4b4a2c7874842769d13d2c84ccd8447c25546586ea23e8243e210692f WHIRLPOOL c428448be39b7cc5073a2dcd7aea7eda7293688612f5104a328ad48f11a7dd9d81d5441bbbce223321121b59f1dec0a27052955834ea702cd7712a3bc0a87d86 -MISC ChangeLog 85615 SHA256 edd0489cc16580fa36c75999c46ae191dc9606920db0d9ec21b5cb4fadd43526 SHA512 f568273150b7179bbffa1258d53f230d70899c6ff16b4ebeee23ec2a7894a9984d5b9a7aded7e507742e0ac3ee642f5aeb2bfc0c052838c00aea83e8f58bef6d WHIRLPOOL a50ba3ee370a9507e0dbd3235b36bd4dc04f970cd1cea616b656f2646178f62639a0d88f40468dccf76c8b34fd1ecd269151690d7069109fada3e7789fe55dc4 +MISC ChangeLog 85820 SHA256 0eb4a2a6b04a21c52ff66e53a46510db0c292ddc71a16340a670527772b8a3e9 SHA512 f598fe7cbeabe9582df6432a76aea7012013fca7901cad697a1da67aa4779482aead25b7c68031d0f09efe68d1a49b8ed2e0be464f74b4c6250c596fdc3031b7 WHIRLPOOL a8f846fecc14808d515ddf20a3ef2fa1144748bc88e1d455611a5c6db108970df99d0d4575061682eeeafdfe7c7d4d765d8a14773adbde2a8b5f08682f3107ba MISC metadata.xml 2489 SHA256 21b3602d37aa25bca31b05ea810b37ee2192f4e53b8f8daeb814d9dca59d03d7 SHA512 4f3d663cd61253ae3390c55c5974dd3cc22dbf1306a823c3cb71794d09eaf28d7727c7e24f66f02dbd8d3845894f3a8cafa5ddaf330c1bbb7f99d8130ece077c WHIRLPOOL bcefdded503fa9cebea943952d3f56847002cb5ddc10f5adbd774301b648d1b12a09da7e493694f9cbbb19e8b53b66132cbd2e0141ded41b226415cfdbbcf8f6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQGcBAEBCAAGBQJVlWUNAAoJEJQzkH1pP7W4L5IL/RVAKpAIvjJrQsnr44YBZaHv -3luFN0x7esu4Cu0pjk3u+18e8EXNp66KDr9MyQF+PHv9PfE068FNMQXs+Bf9KT5w -ogR9NzV3raGD9WP1LFJ2+Ty+6P2YgkkBYJi8tsDI38fF6hx2YNBNvVW7Ac+A5d57 -d0i/OBgf2JETFB9x0Sh9pKziGn6Jd6hIi16Ov2/HMYyYLx/kRcQS/vEuHI0npJdT -Zwra7BFWF9phAH2h3Rn8tic/Y9nhCKY+YgbDdyb+v3DsxQLLnc7vkyWnLNWh4XHB -P8W0Yji77tcbo58EVKawMChenL2Aw/gUjJFDfIi6RfX/yxNqjM3eM8FuNNqTOW0I -aWEoPm0WHq0CKhTxFe0nyet9RE5yLmLJ+6En2LX3s0bKuvI9Jq/CEV63rAhKPedP -2OlEtyFcRIDfQld1Duz9aIJnYiBjkkgtxZtiVPszcyFQFbVqUlUYZ0UOwiEz33jV -KARjByC+cVJ4jyG73/IxelwY3+pI6CCK5NV2lDWNoA== -=E2aB +iQGcBAEBCAAGBQJVszJWAAoJEJQzkH1pP7W4fN0L/1LNSuvDn/fJ2RgHAh2ovh7w +V55D4ktm5+4MdMlLTJglaMGa0Gc5DQ8xX0P0R2zM4wpxu/13cmyeuYs1PJiuGH94 +Y7nVdU5fwT61LaQTB95WNqpHlwguicTP4Ly4ODMcxUmP0sOu6csaRQqfgkAR7sO6 +eK7Jm3FXNn/XisNo3BBGYbtnbE18goFFzYKQq0RovSbEJTlbG2hOWF/l7Zk2MI25 +EFusBQsmkaCJ0nTI8PeQui2l8CySeA1Dzu+KKM3DQYnuj+Sf1KJRmB6QaMuifVhh +3iy8yrz5WdIpVRkZmcwi5wL1JAT6bsIq0n15N2o/Lw2m5IvOMabhc/jgwn5MnduC +Ee6hWc6BSy5F63//5wJYsZPNtC609aOu1rgTTA2O6nTRANXIG2+wF6MoMQrERG/O +R3hgVIIL948+UpX6G0laDzuTL7jwY+1lrU9w3VQ71RubbzEYVCk9x0u89cnqFbDs +LdaIskTWleNJTi096nt6gOA1J6Jyf6sDjXTxSvHhUQ== +=fvsB -----END PGP SIGNATURE----- diff --git a/app-editors/emacs-vcs/emacs-vcs-25.0.50_pre20150523.ebuild b/app-editors/emacs-vcs/emacs-vcs-25.0.50_pre20150523.ebuild new file mode 100644 index 000000000000..1bd5066942d9 --- /dev/null +++ b/app-editors/emacs-vcs/emacs-vcs-25.0.50_pre20150523.ebuild @@ -0,0 +1,372 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-25.0.50_pre20150523.ebuild,v 1.1 2015/07/25 06:53:45 ulm Exp $ + +EAPI=5 + +inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo + +if [[ ${PV##*.} = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="git://git.sv.gnu.org/emacs.git" + EGIT_BRANCH="master" + EGIT_CHECKOUT_DIR="${WORKDIR}/emacs" + S="${EGIT_CHECKOUT_DIR}" +else + SRC_URI="http://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz + mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + # 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}" + S="${WORKDIR}/emacs" +fi + +DESCRIPTION="The extensible, customizable, self-documenting real-time display editor" +HOMEPAGE="http://www.gnu.org/software/emacs/" + +LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2" +SLOT="25" +IUSE="acl alsa aqua athena dbus games gconf gfile gif gnutls gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib" +REQUIRED_USE="?? ( aqua X )" + +RDEPEND="sys-libs/ncurses + >=app-eselect/eselect-emacs-1.16 + >=app-emacs/emacs-common-gentoo-1.5[games?,X?] + net-libs/liblockfile + acl? ( virtual/acl ) + alsa? ( media-libs/alsa-lib ) + dbus? ( sys-apps/dbus ) + gfile? ( >=dev-libs/glib-2.28.6 ) + gnutls? ( net-libs/gnutls ) + gpm? ( sys-libs/gpm ) + hesiod? ( net-dns/hesiod ) + kerberos? ( virtual/krb5 ) + libxml2? ( >=dev-libs/libxml2-2.2.0 ) + selinux? ( sys-libs/libselinux ) + zlib? ( sys-libs/zlib ) + 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:0 ) + 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} + virtual/pkgconfig + gzip-el? ( app-arch/gzip ) + pax_kernel? ( + sys-apps/attr + sys-apps/paxctl + )" + +if [[ ${PV##*.} = 9999 ]]; then + DEPEND="${DEPEND} + sys-apps/texinfo" +fi + +EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}" +SITEFILE="20${PN}-${SLOT}-gentoo.el" + +src_prepare() { + if [[ ${PV##*.} = 9999 ]]; then + FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \ + configure.ac) + [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version" + einfo "Emacs branch: ${EGIT_BRANCH}" + einfo "Commit: ${EGIT_VERSION}" + einfo "Emacs version number: ${FULL_VERSION}" + [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \ + || die "Upstream version number changed to ${FULL_VERSION}" + fi + + epatch_user + + # Fix filename reference in redirected man page + sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \ + || die "unable to sed ctags.1" + + AT_M4DIR=m4 eautoreconf +} + +src_configure() { + strip-flags + filter-flags -pie #526948 + + 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; then + use sound || ewarn \ + "USE flag \"alsa\" overrides \"-sound\"; enabling sound support." + myconf+=" --with-sound=alsa" + else + myconf+=" --with-sound=$(usex sound oss)" + 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+)" + while read line; do ewarn "${line}"; done <<-EOF + Your version of GTK+ will have problems with closing open + displays. This is no problem if you just use one display, but + if you use more than one and close one of them Emacs may crash. + See <http://bugzilla.gnome.org/show_bug.cgi?id=85715>. + If you intend to use more than one display, then it is strongly + recommended that you compile Emacs with the Athena/Lucid or the + Motif toolkit instead. + EOF + 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}" + if [[ ${PV##*.} = 9999 ]]; then + myconf+=" EGIT_BRANCH=${EGIT_BRANCH} EGIT_VERSION=${EGIT_VERSION}" + fi + + econf \ + --program-suffix="-${EMACS_SUFFIX}" \ + --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \ + --localstatedir="${EPREFIX}"/var \ + --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \ + --with-gameuser=":gamestat" \ + --without-compress-install \ + --with-file-notification=$(usev gfile || usev inotify || echo no) \ + $(use_enable acl) \ + $(use_with dbus) \ + $(use_with gnutls) \ + $(use_with gpm) \ + $(use_with hesiod) \ + $(use_with kerberos) $(use_with kerberos kerberos5) \ + $(use_with libxml2 xml2) \ + $(use_with selinux) \ + $(use_with wide-int) \ + $(use_with zlib) \ + ${myconf} +} + +src_compile() { + export SANDBOX_ON=0 # for the unbelievers, see Bug #131505 + emake +} + +src_install () { + emake DESTDIR="${D}" NO_BIN_LINK=t install + + mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \ + || die "moving emacs executable failed" + mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \ + || die "moving emacs man page failed" + + # 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/{appdata,applications,icons} + rm -rf "${ED}"/var + + # remove unused <version>/site-lisp dir + rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp + + # remove COPYING file (except for etc/COPYING used by describe-copying) + rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING + + if use gzip-el; then + # compress .el files when a corresponding .elc exists + find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \ + -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n + assert "gzip .el failed" + fi + + 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 CONTRIBUTE + + 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/Xft_support_for_GNU_Emacs + 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 + elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then + # refresh symlinks in case any installed files have changed + eselect emacs set ${EMACS_SUFFIX} + else + eselect emacs update ifunset + fi +} + +pkg_postrm() { + elisp-site-regen + eselect emacs update ifunset +} |