From 79bdadad0f2bed0c7dd4dfc79f216c7a964b2291 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 23 Jul 2012 17:32:56 +0000 Subject: Update from Horst Günther Burkhardt III. Cleanup. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Portage version: 2.1.10.65/svn/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 0x8883FA56A308A8D7!) svn path=/xemacs-overlay/; revision=1818 --- app-editors/sxemacs/ChangeLog | 7 +- app-editors/sxemacs/Manifest | 16 +- app-editors/sxemacs/sxemacs-22.1.12.ebuild | 364 ----------------------------- app-editors/sxemacs/sxemacs-22.1.14.ebuild | 360 ---------------------------- app-editors/sxemacs/sxemacs-22.1.15.ebuild | 359 ++++++++++++++++++++++++++++ 5 files changed, 372 insertions(+), 734 deletions(-) delete mode 100644 app-editors/sxemacs/sxemacs-22.1.12.ebuild delete mode 100644 app-editors/sxemacs/sxemacs-22.1.14.ebuild create mode 100644 app-editors/sxemacs/sxemacs-22.1.15.ebuild diff --git a/app-editors/sxemacs/ChangeLog b/app-editors/sxemacs/ChangeLog index 5be3edd..2c59d9e 100644 --- a/app-editors/sxemacs/ChangeLog +++ b/app-editors/sxemacs/ChangeLog @@ -1,7 +1,12 @@ # ChangeLog for app-editors/sxemacs -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*sxemacs-22.1.15 (23 Jul 2012) + + 23 Jul 2012; Hans de Graaff +sxemacs-22.1.15.ebuild: + Update from Horst Günther Burkhardt III + *sxemacs-22.1.14 (18 Mar 2011) 18 Mar 2011; Hans de Graaff +sxemacs-22.1.14.ebuild: diff --git a/app-editors/sxemacs/Manifest b/app-editors/sxemacs/Manifest index af7f8c2..28a7293 100644 --- a/app-editors/sxemacs/Manifest +++ b/app-editors/sxemacs/Manifest @@ -2,16 +2,14 @@ Hash: SHA256 DIST NeXT_XEmacs.tar.gz 39571 RMD160 3c2cedf75e4ece412031b20a15614a78367393f4 SHA1 619912734b1a1fae5115941b904d41beb4765b47 SHA256 35a0d988fd4ee801572639a99798571aa9fad140ddbed1455565ae9d5e0086c7 -DIST sxemacs-22.1.12.tar.lzma 6999247 RMD160 eb9722af6f676bf1bb231be374e20ff37b48ef23 SHA1 1a959363ec4f35defe7ec4631674a4cc3e6987e6 SHA256 ea27cca06e948aa1c22afd55e27ba7c1ead0a785e7b6aef882619de02c89880b -DIST sxemacs-22.1.14.tar.lzma 6995552 RMD160 b3684068780d4d1bac6dbb6ff24b1992eae6f435 SHA1 f85d635687a60a6fcce84eb27231beb99ee204ff SHA256 efe05860147e47a59c5c1400c24028e2ef08c79dac1da1ffd6561367f589699f -EBUILD sxemacs-22.1.12.ebuild 10523 RMD160 0af031564e241b80c1057b1cfbb734f49404aaa3 SHA1 89fb157f65eaedc0de22a7bf26ebca16caf1f220 SHA256 cd0625816e5ac4cd6eff2e9e24aa503a4ca689957c37561df132bbe83fd790f9 -EBUILD sxemacs-22.1.14.ebuild 10872 RMD160 b1812240fd8d1a30d2df7780edda817404a0834d SHA1 b4a47669d3964ab196084435c37a6d9d8574bee8 SHA256 1732b4d70c3d175db96d28eada5f507932ad5e284e4d8a387def940c3d43d3a6 -MISC ChangeLog 871 RMD160 2ef714b95e84ef6be8f785f5b713fd3d7a9f99dd SHA1 fae1a3158390d031e54f12541c35702890fe4fe9 SHA256 b04d6ae35896d2c55c138fc4a5a1a8ff2cb70cd59058f8fa8ba1fce24b3265b9 +DIST sxemacs-22.1.15.tar.xz 6964448 RMD160 df3d931766f482caff7243dabfa790a854417e51 SHA1 d7a4469be01e83b2468d03f45a1d81bbb212a7e6 SHA256 3303817fdf27518f11671c016420156f6702a9a9f895e1099b3e70127ad5eabe +EBUILD sxemacs-22.1.15.ebuild 10636 RMD160 06342f01d319d41f2b0e3ae043acd9c9da1ec28f SHA1 c8d560c4b256b2a7c815e70d69f172bc45983eb5 SHA256 04cb00b58b26e287be96b0ed884f8f33f2714ea233c68b97fdf450a3c5d20102 +MISC ChangeLog 1022 RMD160 7978e2047a846e7475647a7235391606f1509568 SHA1 408474ceff2a04f15932e5005aebc79171ee9e31 SHA256 05a0b398d86c2aafbd30c7a8f0d91aef1b35d310d487c96f7005c5ba06e58a12 MISC metadata.xml 365 RMD160 596ab334c06c2d7c1bc8b4ba6d24d29562c82d75 SHA1 f9bf09365f9739065d4b4f52b7af47638f16277d SHA256 da449e36c4d0339e88247a8fb361c3793188d2e6f817861f74d5d64b3a61353b -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) +Version: GnuPG v2.0.19 (GNU/Linux) -iF4EAREIAAYFAk2DQuAACgkQrnu0mw69JkoLfAD/YnIsd0yflWST/l/lNs5cGgam -w+vxOHvPIS/IaIp0rZ8A/ifr9FKCaaAuvYyFWDrBnwcko4l6NaZUqaIrqqFLNx6K -=AL7f +iF4EAREIAAYFAlANisYACgkQiIP6VqMIqNc3JwEAkJMBfpZW6XFpYe0NUI03U8xL +tSdpPERk+O3mlPtwDuUA/iBzG57q4gg9DFz/ksuWhvU2mTha36c+9IfDbji/L9UX +=Tlz4 -----END PGP SIGNATURE----- diff --git a/app-editors/sxemacs/sxemacs-22.1.12.ebuild b/app-editors/sxemacs/sxemacs-22.1.12.ebuild deleted file mode 100644 index 05f2335..0000000 --- a/app-editors/sxemacs/sxemacs-22.1.12.ebuild +++ /dev/null @@ -1,364 +0,0 @@ -# Distributed under the terms of the GNU General Public License v2 - -# Note: Although this ebuild has the approval of the SXEmacs Project, -# it is not an official subset of the project and thus only limited -# support can be offered for this ebuild. - -EAPI="2" - -inherit eutils flag-o-matic - -DESCRIPTION="A text editing and development environment based on XEmacs that aims to be second to none in regards to stability, features, and innovation." -HOMEPAGE="http://www.sxemacs.org/" -SRC_URI="http://downloads.sxemacs.org/releases/${P}.tar.lzma - http://www.malfunction.de/afterstep/files/NeXT_XEmacs.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" -MAKEOPTS="-j1" - -IUSE="X alsa jack pulseaudio oss nas ao esd gif png jpeg xface tiff ffmpeg mad bdwgc - sndfile sox ssl tls ipv6 pop kerberos hesiod postgresql libffi gmp mpfr magic xpm - athena neXt Xaw3d motif xim canna freewnn gdbm berkdb tty gpm ncurses mule socks - omgoptimize warnfull" - -X_DEPEND="x11-libs/libXt x11-libs/libXmu x11-libs/libXext x11-misc/xbitmaps" - -DEPEND="virtual/libc - =sys-libs/zlib-1.2* - app-arch/bzip2 - >=media-libs/audiofile-0.2.3 - X? ( $X_DEPEND !Xaw3d? ( !neXt? ( x11-libs/libXaw ) ) ) - alsa? ( media-sound/alsa-headers ) - jack? ( media-sound/jack ) - pulseaudio? ( media-sound/pulseaudio ) - nas? ( media-libs/nas ) - ao? ( >=media-libs/libao-0.8.5 ) - esd? ( media-sound/esound ) - png? ( =media-libs/libpng-1.2* ) - jpeg? ( media-libs/jpeg ) - xface? ( media-libs/compface ) - tiff? ( media-libs/tiff ) - ffmpeg? ( media-video/ffmpeg ) - mad? ( media-libs/libmad media-sound/madplay ) - bdwgc? ( dev-libs/boehm-gc ) - sndfile? ( media-libs/libsndfile ) - sox? ( media-sound/sox ) - ssl? ( >=dev-libs/openssl-0.9.8 ) - tls? ( >=net-libs/gnutls-2.0.4 ) - kerberos? ( app-crypt/mit-krb5 ) - hesiod? ( net-dns/hesiod ) - postgresql? ( dev-db/postgresql-base ) - libffi? ( || ( - sys-devel/gcc[libffi] - dev-libs/libffi - ) ) - gmp? ( dev-libs/gmp ) - mpfr? ( dev-libs/mpfr ) - athena? ( x11-libs/libXaw ) - neXt? ( x11-libs/neXtaw ) - Xaw3d? ( x11-libs/Xaw3d ) - motif? ( >=x11-libs/openmotif-2.1.30 ) - canna? ( app-i18n/canna ) - freewnn? ( app-i18n/freewnn ) - gdbm? ( >=sys-libs/gdbm-1.8.3 ) - berkdb? ( sys-libs/db ) - gpm? ( sys-libs/gpm ) - ncurses? ( >=sys-libs/ncurses-5.2 ) - magic? ( sys-apps/file )" - -PDEPEND="app-xemacs/xemacs-base - mule? ( app-xemacs/mule-base )" - -pkg_setup() { - if use libffi ; - then - elog "You've elected to build SXEmacs with FFI support." - elog "This will allow you to view in SXEmacs any image type" - elog "supported by ImageMagick's libWand." - elog "It will also allow you to download the initial XE packages" - elog "from within SXEmacs itself. To do this, use" - elog " M-x pui-bootstrap RET" - fi - - if use bdwgc ; - then - ewarn "You've elected to compile SXEmacs with support for the" - ewarn "Boehm-Demers-Weiser Garbage Collector, or Boehm-GC." - ewarn "The BDWGC code is still in its infancy, and is known to" - ewarn "consume larger-than-average amounts of memory in an SXEmacs" - ewarn "session. You have been warned." - fi - - ewarn "Note: Although this ebuild has the approval of the SXEmacs Project," - ewarn "it is not an official subset of the project and thus only limited" - ewarn "support can be offered for this ebuild. " -} - -src_unpack() { - unpack ${P}.tar.lzma - use neXt && unpack NeXT_XEmacs.tar.gz -} - -src_prepare() { - use neXt && cp "${WORKDIR}"/NeXT.XEmacs/xemacs-icons/* "${S}"/etc/toolbar/ -} - -src_compile() { - - ##################################### - # Allow SXEmacs to decide on CFLAGS # - ##################################### - # Don't know why a higher value won't work on some Gentoo systems, but to be - # safe and ensure that users don't whinge too much, we'll arbitrate -O2 as - # the optimisation level. - # Also work around hardened compiler bugs. - if use omgoptimize ; then - echo "" - else - replace-flags -O* -O2 - fi - filter-flags -fomit-frame-pointer -fPIE - is-flag -nopie && append-flags -nopie - - ################# - # Configuration # - ################# - local myconf="" - - ####################### - # Configuration for X # - ####################### - if use X ; then - myconf="${myconf} --with-widgets=athena" - myconf="${myconf} --with-dialogs=athena" - myconf="${myconf} --with-menubars=lucid" - myconf="${myconf} --with-scrollbars=lucid" - if use motif ; then - myconf="--with-widgets=motif" - myconf="${myconf} --with-dialogs=motif" - myconf="${myconf} --with-scrollbars=motif" - myconf="${myconf} --with-menubars=lucid" - fi - if use athena ; then - myconf="--with-scrollbars=athena" - fi - if use Xaw3d ; then - myconf="${myconf} --with-athena=3d" - elif use neXt ; then - myconf="${myconf} --with-athena=next" - else - myconf="${myconf} --with-athena=xaw" - fi - - else - myconf="${myconf} --without-x" - fi - - ######################### - # Configuration for TTY # - ######################### - local ttyconf="" - if use tty ; then - ttyconf="${ttyconf} --with-tty" - if use tty ; then - if use ncurses ; then - ttyconf="${ttyconf} --with-ncurses" - else - ttyconf="${ttyconf} --without-ncurses" - fi - if use gpm ; then - ttyconf="${ttyconf} --with-gpm" - else - ttyconf="${ttyconf} --without-gpm" - fi - fi - else - ttyconf="${ttyconf} --without-tty" - fi - myconf="${myconf} ${ttyconf}" - - - ###################### - # MULE Configuration # - ###################### - if use mule ; then - myconf="${myconf} --with-mule" - if use xim ; then - if use motif ; then - myconf="${myconf} --with-xim=motif" - else - myconf="${myconf} --with-xim=xlib" - fi - else - myconf="${myconf} --with-xim=no" - fi - use canna && myconf="${myconf} --with-canna" - use freewnn && myconf="${myconf} --with-wnn" - else - myconf="${myconf} --without-mule" - fi - - ####################### - # Sound Configuration # - ####################### - local soundconf="none" - # Define what sound outputs we use - use alsa && soundconf="${soundconf},alsa" - use jack && soundconf="${soundconf},jack" - use pulseaudio && soundconf="${soundconf},pulse" - use oss && soundconf="${soundconf},oss" - use nas && soundconf="${soundconf},nas" - use arts && soundconf="${soundconf},arts" - use ao && soundconf="${soundconf},ao" - use esd && soundconf="${soundconf},esd" - # And make them work - myconf="${myconf} --with-sound=${soundconf}" - - ######################## - # Images Configuration # - ######################## - local imageconf="none" - # Define Image Types to support - use gif && imageconf="${imageconf},gif" - use png && imageconf="${imageconf},png" - use jpeg && imageconf="${imageconf},jpeg" - use xface && imageconf="${imageconf},xface" - use tiff && imageconf="${imageconf},tiff" - use xpm && imageconf="${imageconf},xpm" - # And make them work - myconf="${myconf} --with-image=${imageconf}" - # Note - If FFI useflag is set, and ImageMagick is installed, SXEmacs - # will make use of libWand and can thus display many more types of - # image. - - ########################## - # Database Configuration # - ########################## - local mydb="none" - use gdbm && mydb="${mydb},gdbm" - use berkdb && mydb="${mydb},berkdb" - myconf="${myconf} --with-database=${mydb}" - # and add support for postgre here - use postgresql && myconf="${myconf} --with-postgresql" || myconf="${myconf} --without-postgresql" - - ####################### - # Media Configuration # - ####################### - local mediaconf="none,internal" - # Define Media Types to support - use ffmpeg && mediaconf="${mediaconf},ffmpeg" - use mad && mediaconf="${mediaconf},mad" - use sndfile && mediaconf="${mediaconf},sndfile" - use magic && mediaconf="${mediaconf},magic" - use sox && mediaconf="${mediaconf},sox" - # And make them work - myconf="${myconf} --with-media=${mediaconf}" - - ######################## - # Cryptography Options # - ######################## - local crypto="" - use ssl && crypto="${crypto} --with-openssl" - use tls && crypto="${crypto} --with-gnutls" - myconf="${myconf} ${crypto}" - - ############################ - # Networking Configuration # - ############################ - local netconf="" - use pop && netconf="${netconf} --with-pop" || netconf="${netconf} --without-pop" - use kerberos && netconf="${netconf} --with-kerberos" || netconf="${netconf} --without-kerberos" - use hesiod && netconf="${netconf} --with-hesiod" - use socks && netconf="${netconf} --with-socks" - myconf="${myconf} ${netconf}" - - ####### - # FFI # - ####### - use libffi && myconf="${myconf} --with-ffi" - - ######################################### - # Boehm-Demers-Weiser Garbage Collector # - ######################################### - use bdwgc && myconf="${myconf} --with-experimental-features=all" - - ############################ - # Aggressive Optimisations # - ############################ - use omgoptimize && myconf="${myconf} --with-ridiculously-aggressive-optimisations" - - ########################## - # Maximum Warning Output # - ########################## - use warnfull && myconf="${myconf} --with-maximum-warning-output" - - #################### - # Neat Math Tricks # - #################### - # I'm going to let SXEmacs do the deciding here. - # The useflags will simply be for dependencies. - myconf="${myconf} --with-ent=all --with-ase=all" - - ################## - # Module Support # - ################## - myconf="${myconf} --with-module-support" - myconf="${myconf} --with-modules=all" - - ######################## - # End of Configuration # - ######################## - - ############### - # ./configure # - ############### - - tuple=$(configgmp.guess) - ./configure --prefix=/usr ${myconf} || die "The SXEmacs Configure Script failed to run correctly." - - ################# - # Build SXEmacs # - ################# - - emake beta check || die "The SXEmacs Build Process (compilation) failed." - -} - -src_install() { - ################### - # Install SXEmacs # - ################### - - emake prefix="${D}"/usr mandir="${D}"/usr/share/man/man1 infodir="${D}"/usr/share/info install gzip-el - - dodir /usr/share/sxemacs/xemacs-packages/ - dodir /usr/share/sxemacs/sxemacs-packages/ - dodir /usr/share/sxemacs/site-packages/ - dodir /usr/lib/sxemacs/${tuple}/modules/ - dodir /usr/lib/${P}/${tuple}/modules/ - dodir /usr/lib/sxemacs/${tuple}/site-modules/ - dodir /usr/lib/${P}/${tuple}/site-modules/ - - if use mule; - then - dodir /usr/share/sxemacs/mule-packages - fi - - insinto /usr/share/pixmaps - newins "${S}"/etc/${PN}-icon3.xpm ${PN}.xpm - - insinto /usr/share/applications - doins "${S}"/etc/${PN}.desktop - -} - - -pkg_postinst() { - eselect emacs update --if-unset -} - -pkg_postrm() { - eselect emacs update --if-unset -} diff --git a/app-editors/sxemacs/sxemacs-22.1.14.ebuild b/app-editors/sxemacs/sxemacs-22.1.14.ebuild deleted file mode 100644 index 528789b..0000000 --- a/app-editors/sxemacs/sxemacs-22.1.14.ebuild +++ /dev/null @@ -1,360 +0,0 @@ -# Distributed under the terms of the GNU General Public License v2 - -# Note: Although this ebuild has the approval of the SXEmacs Project, -# it is not an official subset of the project and thus only limited -# support can be offered for this ebuild. - -EAPI="2" - -inherit eutils flag-o-matic - -DESCRIPTION="A text editing and development environment based on XEmacs that aims to be second to none in regards to stability, features, and innovation." -HOMEPAGE="http://www.sxemacs.org/" -SRC_URI="http://downloads.sxemacs.org/releases/${P}.tar.lzma - http://www.malfunction.de/afterstep/files/NeXT_XEmacs.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" - -IUSE="X alsa jack pulseaudio oss nas ao esd gif png jpeg xface tiff ffmpeg mad bdwgc - sndfile sox ssl tls ipv6 pop kerberos hesiod postgresql libffi gmp mpfr magic xpm - athena neXt Xaw3d motif xim canna freewnn gdbm berkdb tty gpm ncurses mule socks - omgoptimize warnfull" - -X_DEPEND="x11-libs/libXt x11-libs/libXmu x11-libs/libXext x11-misc/xbitmaps" - -DEPEND="virtual/libc - =sys-libs/zlib-1.2* - app-arch/bzip2 - >=media-libs/audiofile-0.2.3 - X? ( $X_DEPEND !Xaw3d? ( !neXt? ( x11-libs/libXaw ) ) ) - alsa? ( media-sound/alsa-headers ) - jack? ( media-sound/jack ) - pulseaudio? ( media-sound/pulseaudio ) - nas? ( media-libs/nas ) - ao? ( >=media-libs/libao-0.8.5 ) - esd? ( media-sound/esound ) - png? ( =media-libs/libpng-1.2* ) - jpeg? ( media-libs/jpeg ) - xface? ( media-libs/compface ) - tiff? ( media-libs/tiff ) - ffmpeg? ( media-video/ffmpeg ) - mad? ( media-libs/libmad media-sound/madplay ) - bdwgc? ( dev-libs/boehm-gc ) - sndfile? ( media-libs/libsndfile ) - sox? ( media-sound/sox ) - ssl? ( >=dev-libs/openssl-0.9.8 ) - tls? ( >=net-libs/gnutls-2.0.4 ) - kerberos? ( app-crypt/mit-krb5 ) - hesiod? ( net-dns/hesiod ) - postgresql? ( dev-db/postgresql-base ) - libffi? ( dev-libs/libffi ) - gmp? ( dev-libs/gmp ) - mpfr? ( dev-libs/mpfr ) - athena? ( x11-libs/libXaw ) - neXt? ( x11-libs/neXtaw ) - Xaw3d? ( x11-libs/Xaw3d ) - motif? ( >=x11-libs/openmotif-2.1.30 ) - canna? ( app-i18n/canna ) - freewnn? ( app-i18n/freewnn ) - gdbm? ( >=sys-libs/gdbm-1.8.3 ) - berkdb? ( sys-libs/db ) - gpm? ( sys-libs/gpm ) - ncurses? ( >=sys-libs/ncurses-5.2 ) - magic? ( sys-apps/file )" - -PDEPEND="app-xemacs/xemacs-base - mule? ( app-xemacs/mule-base )" - -pkg_setup() { - if use libffi ; - then - elog "You've elected to build SXEmacs with FFI support." - elog "This will allow you to view in SXEmacs any image type" - elog "supported by ImageMagick's libWand." - elog "It will also allow you to download the initial XE packages" - elog "from within SXEmacs itself. To do this, use" - elog " M-x pui-bootstrap RET" - fi - - if use bdwgc ; - then - ewarn "You've elected to compile SXEmacs with support for the" - ewarn "Boehm-Demers-Weiser Garbage Collector, or Boehm-GC." - ewarn "The BDWGC code is still in its infancy, and is known to" - ewarn "consume larger-than-average amounts of memory in an SXEmacs" - ewarn "session. You have been warned." - fi - - ewarn "Note: Although this ebuild has the approval of the SXEmacs Project," - ewarn "it is not an official subset of the project and thus only limited" - ewarn "support can be offered for this ebuild. " -} - -src_unpack() { - unpack ${P}.tar.lzma - use neXt && unpack NeXT_XEmacs.tar.gz -} - -src_prepare() { - use neXt && cp "${WORKDIR}"/NeXT.XEmacs/xemacs-icons/* "${S}"/etc/toolbar/ -} - -src_compile() { - - ##################################### - # Allow SXEmacs to decide on CFLAGS # - ##################################### - # Don't know why a higher value won't work on some Gentoo systems, but to be - # safe and ensure that users don't whinge too much, we'll arbitrate -O2 as - # the optimisation level. - # Also work around hardened compiler bugs. - if use omgoptimize ; then - echo "" - else - replace-flags -O* -O2 - fi - filter-flags -fomit-frame-pointer -fPIE - is-flag -nopie && append-flags -nopie - - ################# - # Configuration # - ################# - local myconf="" - - ####################### - # Configuration for X # - ####################### - if use X ; then - myconf="${myconf} --with-widgets=athena" - myconf="${myconf} --with-dialogs=athena" - myconf="${myconf} --with-menubars=lucid" - myconf="${myconf} --with-scrollbars=lucid" - if use motif ; then - myconf="--with-widgets=motif" - myconf="${myconf} --with-dialogs=motif" - myconf="${myconf} --with-scrollbars=motif" - myconf="${myconf} --with-menubars=lucid" - fi - if use athena ; then - myconf="--with-scrollbars=athena" - fi - if use Xaw3d ; then - myconf="${myconf} --with-athena=3d" - elif use neXt ; then - myconf="${myconf} --with-athena=next" - else - myconf="${myconf} --with-athena=xaw" - fi - - else - myconf="${myconf} --without-x" - fi - - ######################### - # Configuration for TTY # - ######################### - local ttyconf="" - if use tty ; then - ttyconf="${ttyconf} --with-tty" - if use tty ; then - if use ncurses ; then - ttyconf="${ttyconf} --with-ncurses" - else - ttyconf="${ttyconf} --without-ncurses" - fi - if use gpm ; then - ttyconf="${ttyconf} --with-gpm" - else - ttyconf="${ttyconf} --without-gpm" - fi - fi - else - ttyconf="${ttyconf} --without-tty" - fi - myconf="${myconf} ${ttyconf}" - - - ###################### - # MULE Configuration # - ###################### - if use mule ; then - myconf="${myconf} --with-mule" - if use xim ; then - if use motif ; then - myconf="${myconf} --with-xim=motif" - else - myconf="${myconf} --with-xim=xlib" - fi - else - myconf="${myconf} --with-xim=no" - fi - use canna && myconf="${myconf} --with-canna" - use freewnn && myconf="${myconf} --with-wnn" - else - myconf="${myconf} --without-mule" - fi - - ####################### - # Sound Configuration # - ####################### - local soundconf="none" - # Define what sound outputs we use - use alsa && soundconf="${soundconf},alsa" - use jack && soundconf="${soundconf},jack" - use pulseaudio && soundconf="${soundconf},pulse" - use oss && soundconf="${soundconf},oss" - use nas && soundconf="${soundconf},nas" - use arts && soundconf="${soundconf},arts" - use ao && soundconf="${soundconf},ao" - use esd && soundconf="${soundconf},esd" - # And make them work - myconf="${myconf} --with-sound=${soundconf}" - - ######################## - # Images Configuration # - ######################## - local imageconf="none" - # Define Image Types to support - use gif && imageconf="${imageconf},gif" - use png && imageconf="${imageconf},png" - use jpeg && imageconf="${imageconf},jpeg" - use xface && imageconf="${imageconf},xface" - use tiff && imageconf="${imageconf},tiff" - use xpm && imageconf="${imageconf},xpm" - # And make them work - myconf="${myconf} --with-image=${imageconf}" - # Note - If FFI useflag is set, and ImageMagick is installed, SXEmacs - # will make use of libWand and can thus display many more types of - # image. - - ########################## - # Database Configuration # - ########################## - local mydb="none" - use gdbm && mydb="${mydb},gdbm" - use berkdb && mydb="${mydb},berkdb" - myconf="${myconf} --with-database=${mydb}" - # and add support for postgre here - use postgresql && myconf="${myconf} --with-postgresql" || myconf="${myconf} --without-postgresql" - - ####################### - # Media Configuration # - ####################### - local mediaconf="none,internal" - # Define Media Types to support - use ffmpeg && mediaconf="${mediaconf},ffmpeg" - use mad && mediaconf="${mediaconf},mad" - use sndfile && mediaconf="${mediaconf},sndfile" - use magic && mediaconf="${mediaconf},magic" - use sox && mediaconf="${mediaconf},sox" - # And make them work - myconf="${myconf} --with-media=${mediaconf}" - - ######################## - # Cryptography Options # - ######################## - local crypto="" - use ssl && crypto="${crypto} --with-openssl" - use tls && crypto="${crypto} --with-gnutls" - myconf="${myconf} ${crypto}" - - ############################ - # Networking Configuration # - ############################ - local netconf="" - use pop && netconf="${netconf} --with-pop" || netconf="${netconf} --without-pop" - use kerberos && netconf="${netconf} --with-kerberos" || netconf="${netconf} --without-kerberos" - use hesiod && netconf="${netconf} --with-hesiod" - use socks && netconf="${netconf} --with-socks" - myconf="${myconf} ${netconf}" - - ####### - # FFI # - ####### - use libffi && myconf="${myconf} --with-ffi" - - ######################################### - # Boehm-Demers-Weiser Garbage Collector # - ######################################### - use bdwgc && myconf="${myconf} --with-experimental-features=all" - - ############################ - # Aggressive Optimisations # - ############################ - use omgoptimize && myconf="${myconf} --with-ridiculously-aggressive-optimisations" - - ########################## - # Maximum Warning Output # - ########################## - use warnfull && myconf="${myconf} --with-maximum-warning-output" - - #################### - # Neat Math Tricks # - #################### - # I'm going to let SXEmacs do the deciding here. - # The useflags will simply be for dependencies. - myconf="${myconf} --with-ent=all --with-ase=all" - - ################## - # Module Support # - ################## - myconf="${myconf} --with-module-support" - myconf="${myconf} --with-modules=all" - - ######################## - # End of Configuration # - ######################## - - ############### - # ./configure # - ############### - - tuple=$(configgmp.guess) - ./configure --prefix=/usr ${myconf} || die "The SXEmacs Configure Script failed to run correctly." - - ################# - # Build SXEmacs # - ################# - - emake beta check || die "The SXEmacs Build Process (compilation) failed." - -} - -src_install() { - ################### - # Install SXEmacs # - ################### - - emake prefix="${D}"/usr mandir="${D}"/usr/share/man/man1 infodir="${D}"/usr/share/info install gzip-el - - dodir /usr/share/sxemacs/xemacs-packages/ - dodir /usr/share/sxemacs/sxemacs-packages/ - dodir /usr/share/sxemacs/site-packages/ - dodir /usr/lib/sxemacs/${tuple}/modules/ - dodir /usr/lib/${P}/${tuple}/modules/ - dodir /usr/lib/sxemacs/${tuple}/site-modules/ - dodir /usr/lib/${P}/${tuple}/site-modules/ - - if use mule; - then - dodir /usr/share/sxemacs/mule-packages - fi - - insinto /usr/share/pixmaps - newins "${S}"/etc/${PN}-icon3.xpm ${PN}.xpm - - insinto /usr/share/applications - doins "${S}"/etc/${PN}.desktop - -} - - -pkg_postinst() { - eselect emacs update --if-unset -} - -pkg_postrm() { - eselect emacs update --if-unset -} diff --git a/app-editors/sxemacs/sxemacs-22.1.15.ebuild b/app-editors/sxemacs/sxemacs-22.1.15.ebuild new file mode 100644 index 0000000..10d486a --- /dev/null +++ b/app-editors/sxemacs/sxemacs-22.1.15.ebuild @@ -0,0 +1,359 @@ +# Distributed under the terms of the GNU General Public License v2 + +# Note: Although this ebuild has the approval of the SXEmacs Project, +# it is not an official subset of the project and thus only limited +# support can be offered for this ebuild. + +EAPI="4" + +inherit eutils flag-o-matic + +DESCRIPTION="A text editing and development environment based on XEmacs that aims to be second to none in stability, features, and innovation." +HOMEPAGE="http://www.sxemacs.org/" +SRC_URI="http://downloads.sxemacs.org/releases/${P}.tar.xz + http://www.malfunction.de/afterstep/files/NeXT_XEmacs.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="X alsa jack pulseaudio oss nas ao gif png jpeg xface tiff ffmpeg mad bdwgc \ + sndfile sox ssl tls ipv6 pop kerberos hesiod postgresql libffi gmp mpfr magic xpm \ + athena neXt motif xim canna freewnn gdbm berkdb tty gpm ncurses mule socks \ + omgoptimize warnfull" + +X_DEPEND="x11-libs/libXt x11-libs/libXmu x11-libs/libXext x11-misc/xbitmaps" + +# The blockers at the end are because sxemacs has file conflicts with all of +# those packages and blockers are the easiest solution. +DEPEND="virtual/libc + sys-libs/zlib + >=media-libs/audiofile-0.2.3 + X? ( $X_DEPEND !neXt? ( x11-libs/libXaw ) ) + alsa? ( media-sound/alsa-headers ) + jack? ( media-sound/jack ) + pulseaudio? ( media-sound/pulseaudio ) + nas? ( media-libs/nas ) + ao? ( >=media-libs/libao-0.8.5 ) + png? ( media-libs/libpng ) + jpeg? ( virtual/jpeg ) + xface? ( media-libs/compface ) + tiff? ( media-libs/tiff ) + ffmpeg? ( media-video/ffmpeg ) + mad? ( media-libs/libmad media-sound/madplay ) + bdwgc? ( dev-libs/boehm-gc ) + sndfile? ( media-libs/libsndfile ) + sox? ( media-sound/sox ) + ssl? ( >=dev-libs/openssl-0.9.8 ) + tls? ( >=net-libs/gnutls-2.0.4 ) + kerberos? ( app-crypt/mit-krb5 ) + hesiod? ( net-dns/hesiod ) + postgresql? ( dev-db/postgresql-base ) + libffi? ( dev-libs/libffi ) + gmp? ( dev-libs/gmp ) + mpfr? ( dev-libs/mpfr ) + athena? ( x11-libs/libXaw ) + neXt? ( x11-libs/neXtaw ) + motif? ( >=x11-libs/openmotif-2.1.30 ) + canna? ( app-i18n/canna ) + freewnn? ( app-i18n/freewnn ) + gdbm? ( >=sys-libs/gdbm-1.8.3 ) + berkdb? ( sys-libs/db ) + gpm? ( sys-libs/gpm ) + ncurses? ( >=sys-libs/ncurses-5.2 ) + magic? ( sys-apps/file ) + !app-admin/eselect-ctags + !app-editors/emacs + !app-editors/emacs-vcs + !app-editors/xemacs + !dev-util/ctags" + +# app-xemacs/xemacs-base should probably be here but it causes +# app-editors/xemacs to be installed which causes file conflicts +PDEPEND="mule? ( app-xemacs/mule-base )" + +pkg_setup() { + if use libffi ; + then + elog "You've elected to build SXEmacs with FFI support." + elog "This will allow you to view in SXEmacs any image type" + elog "supported by ImageMagick's libWand." + elog "It will also allow you to download the initial XE packages" + elog "from within SXEmacs itself. To do this, use" + elog " M-x pui-bootstrap RET" + fi + + if use bdwgc ; + then + ewarn "You've elected to compile SXEmacs with support for the" + ewarn "Boehm-Demers-Weiser Garbage Collector, or Boehm-GC." + ewarn "The BDWGC code is still in its infancy, and is known to" + ewarn "consume larger-than-average amounts of memory in an SXEmacs" + ewarn "session. You have been warned." + fi + + ewarn "Note: Although this ebuild has the approval of the SXEmacs Project," + ewarn "it is not an official subset of the project and thus only limited" + ewarn "support can be offered for this ebuild. " +} + +src_unpack() { + unpack ${P}.tar.xz + use neXt && unpack NeXT_XEmacs.tar.gz +} + +src_prepare() { + use neXt && cp "${WORKDIR}"/NeXT.XEmacs/xemacs-icons/* "${S}"/etc/toolbar/ +} + +src_configure() { + + ##################################### + # Allow SXEmacs to decide on CFLAGS # + ##################################### + # Don't know why a higher value won't work on some Gentoo systems, but to be + # safe and ensure that users don't whinge too much, we'll arbitrate -O2 as + # the optimisation level. + # Also work around hardened compiler bugs. + if use omgoptimize ; then + echo "" + else + replace-flags -O* -O2 + fi + filter-flags -fomit-frame-pointer -fPIE + is-flag -nopie && append-flags -nopie + + ################# + # Configuration # + ################# + local myconf="" + + ####################### + # Configuration for X # + ####################### + if use X ; then + myconf="${myconf} --with-widgets=athena" + myconf="${myconf} --with-dialogs=athena" + myconf="${myconf} --with-menubars=lucid" + myconf="${myconf} --with-scrollbars=lucid" + if use motif ; then + myconf="--with-widgets=motif" + myconf="${myconf} --with-dialogs=motif" + myconf="${myconf} --with-scrollbars=motif" + myconf="${myconf} --with-menubars=lucid" + fi + if use athena ; then + myconf="--with-scrollbars=athena" + fi + if use neXt ; then + myconf="${myconf} --with-athena=next" + else + myconf="${myconf} --with-athena=xaw" + fi + + else + myconf="${myconf} --without-x" + fi + + ######################### + # Configuration for TTY # + ######################### + local ttyconf="" + if use tty ; then + ttyconf="${ttyconf} --with-tty" + if use tty ; then + if use ncurses ; then + ttyconf="${ttyconf} --with-ncurses" + else + ttyconf="${ttyconf} --without-ncurses" + fi + if use gpm ; then + ttyconf="${ttyconf} --with-gpm" + else + ttyconf="${ttyconf} --without-gpm" + fi + fi + else + ttyconf="${ttyconf} --without-tty" + fi + myconf="${myconf} ${ttyconf}" + + ###################### + # MULE Configuration # + ###################### + if use mule ; then + myconf="${myconf} --with-mule" + if use xim ; then + if use motif ; then + myconf="${myconf} --with-xim=motif" + else + myconf="${myconf} --with-xim=xlib" + fi + else + myconf="${myconf} --with-xim=no" + fi + use canna && myconf="${myconf} --with-canna" + use freewnn && myconf="${myconf} --with-wnn" + else + myconf="${myconf} --without-mule" + fi + + ####################### + # Sound Configuration # + ####################### + local soundconf="none" + # Define what sound outputs we use + use alsa && soundconf="${soundconf},alsa" + use jack && soundconf="${soundconf},jack" + use oss && soundconf="${soundconf},oss" + use nas && soundconf="${soundconf},nas" + use arts && soundconf="${soundconf},arts" + use ao && soundconf="${soundconf},ao" + use esd && soundconf="${soundconf},esd" + # And make them work + myconf="${myconf} --with-sound=${soundconf}" + use pulseaudio && myconf="${myconf} --with-pulseaudio" + + ######################## + # Images Configuration # + ######################## + local imageconf="none" + # Define Image Types to support + use gif && imageconf="${imageconf},gif" + use png && imageconf="${imageconf},png" + use jpeg && imageconf="${imageconf},jpeg" + use xface && imageconf="${imageconf},xface" + use tiff && imageconf="${imageconf},tiff" + use xpm && imageconf="${imageconf},xpm" + # And make them work + myconf="${myconf} --with-image=${imageconf}" + # Note - If FFI useflag is set, and ImageMagick is installed, SXEmacs + # will make use of libWand and can thus display many more types of + # image. + + ########################## + # Database Configuration # + ########################## + local mydb="none" + use gdbm && mydb="${mydb},gdbm" + use berkdb && mydb="${mydb},berkdb" + myconf="${myconf} --with-database=${mydb}" + # and add support for postgre here + use postgresql && myconf="${myconf} --with-postgresql" || myconf="${myconf} --without-postgresql" + + ####################### + # Media Configuration # + ####################### + local mediaconf="none,internal" + # Define Media Types to support + use ffmpeg && mediaconf="${mediaconf},ffmpeg" + use mad && mediaconf="${mediaconf},mad" + use sndfile && mediaconf="${mediaconf},sndfile" + use magic && mediaconf="${mediaconf},magic" + use sox && mediaconf="${mediaconf},sox" + # And make them work + myconf="${myconf} --with-media=${mediaconf}" + + ######################## + # Cryptography Options # + ######################## + local crypto="" + use ssl && crypto="${crypto} --with-openssl" + use tls && crypto="${crypto} --with-gnutls" + myconf="${myconf} ${crypto}" + + ############################ + # Networking Configuration # + ############################ + local netconf="" + use pop && netconf="${netconf} --with-pop" || netconf="${netconf} --without-pop" + use kerberos && netconf="${netconf} --with-kerberos" || netconf="${netconf} --without-kerberos" + use hesiod && netconf="${netconf} --with-hesiod" + use socks && netconf="${netconf} --with-socks" + myconf="${myconf} ${netconf}" + + ####### + # FFI # + ####### + use libffi && myconf="${myconf} --with-ffi" + + ######################################### + # Boehm-Demers-Weiser Garbage Collector # + ######################################### + use bdwgc && myconf="${myconf} --with-experimental-features=all" + + ############################ + # Aggressive Optimisations # + ############################ + use omgoptimize && myconf="${myconf} --with-ridiculously-aggressive-optimisations" + + ########################## + # Maximum Warning Output # + ########################## + use warnfull && myconf="${myconf} --with-maximum-warning-output" + + #################### + # Neat Math Tricks # + #################### + # I'm going to let SXEmacs do the deciding here. + # The useflags will simply be for dependencies. + myconf="${myconf} --with-ent=all --with-ase=all" + + ################## + # Module Support # + ################## + myconf="${myconf} --with-module-support" + myconf="${myconf} --with-modules=all" + + ######################## + # End of Configuration # + ######################## + + ############### + # ./configure # + ############### + + econf ${myconf} +} + +src_compile() +{ + ################# + # Build SXEmacs # + ################# + + emake build-report + +} + +src_install() { + ################### + # Install SXEmacs # + ################### + default + + dodir /usr/share/sxemacs-22.1.15/ + dodir /usr/share/sxemacs/xemacs-packages/ + dodir /usr/share/sxemacs/sxemacs-packages/ + dodir /usr/share/sxemacs/site-packages/ + + if use mule; + then + dodir /usr/share/sxemacs/mule-packages + fi + + insinto /usr/share/pixmaps + newins "${S}"/etc/${PN}-icon3.xpm ${PN}.xpm + + insinto /usr/share/applications + doins "${S}"/etc/${PN}.desktop + +} + +pkg_postinst() { + eselect emacs update --if-unset +} + +pkg_postrm() { + eselect emacs update --if-unset +} \ No newline at end of file -- cgit v1.2.3-18-g5258