diff options
| author | Ian Delaney <idella4@gentoo.org> | 2015-12-24 16:30:15 +0800 |
|---|---|---|
| committer | Ian Delaney <idella4@gentoo.org> | 2015-12-24 16:31:24 +0800 |
| commit | 98b51f2c00d5f8b675f111e97e759e8eeea6125e (patch) | |
| tree | b87a9367d03c5e98613c20b0fd107f8b9be43268 /app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild | |
| parent | 3bf393ce26cc918d2da1dd69c842ba54a53c7067 (diff) | |
| parent | 6202dcf8e261f73a44bb94ba103555c3407bcbec (diff) | |
| download | gentoo-98b51f2c00d5f8b675f111e97e759e8eeea6125e.tar.gz gentoo-98b51f2c00d5f8b675f111e97e759e8eeea6125e.tar.bz2 gentoo-98b51f2c00d5f8b675f111e97e759e8eeea6125e.zip | |
Merge remote-tracking branch 'remotes/Coacher/fwknop-2.6.8-bump'
Pull request: https://github.com/gentoo/gentoo/pull/520
Diffstat (limited to 'app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild')
| -rw-r--r-- | app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild b/app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild new file mode 100644 index 000000000000..39fcf3408ba4 --- /dev/null +++ b/app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="QEmacs is a very small but powerful UNIX editor" +HOMEPAGE="http://savannah.nongnu.org/projects/qemacs" +# snapshot of http://cvs.savannah.gnu.org/viewvc/?root=qemacs +SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz" + +LICENSE="LGPL-2.1+ GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="X png unicode xv" +RESTRICT="test" + +RDEPEND=" + X? ( x11-libs/libX11 + x11-libs/libXext + xv? ( x11-libs/libXv ) ) + png? ( >=media-libs/libpng-1.2:0= )" + +DEPEND="${RDEPEND} + >=app-text/texi2html-5" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}/${P}-Makefile.patch" + epatch "${FILESDIR}/${P}-nostrip.patch" + + # Change the manpage to reference a /real/ file instead of just an + # approximation. Purely cosmetic! + sed -i -e "s,^/usr/share/doc/qemacs,&-${PVR}," qe.1 || die +} + +src_configure() { + # when using any other CFLAGS than -O0, qemacs will segfault on startup, + # see bug 92011 + replace-flags "-O?" -O0 + + # Home-grown configure script, doesn't support most standard options + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --cc="$(tc-getCC)" \ + $(use_enable X x11) \ + $(use_enable png) \ + $(use_enable xv) || die +} + +src_compile() { + # Does not support parallel building. + emake -j1 +} + +src_install() { + emake install DESTDIR="${D}" + dodoc Changelog README TODO.org config.eg + docinto html + dodoc qe-doc.html + + # Install headers so users can build their own plugins. + insinto /usr/include/qe + doins *.h + insinto /usr/include/qe/libqhtml + doins libqhtml/*.h +} |
