diff options
author | Mamoru Komachi <usata@gentoo.org> | 2005-04-23 07:50:20 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2005-04-23 07:50:20 +0000 |
commit | 4e742547170f3ef1accb71b1b367680b6b05283a (patch) | |
tree | 2d415032bbad4ae3633be12b85ac1633bcbbd0ea /app-editors/qemacs | |
parent | Added menubar USE flag and tidied up. Thanks to James Rowe <jnrowe@ukfsn.org>... (diff) | |
download | gentoo-2-4e742547170f3ef1accb71b1b367680b6b05283a.tar.gz gentoo-2-4e742547170f3ef1accb71b1b367680b6b05283a.tar.bz2 gentoo-2-4e742547170f3ef1accb71b1b367680b6b05283a.zip |
Various patches from James Rowe <jnrowe@ukfsn.org>; bug #82915.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-editors/qemacs')
-rw-r--r-- | app-editors/qemacs/ChangeLog | 10 | ||||
-rw-r--r-- | app-editors/qemacs/files/digest-qemacs-0.3.1-r2 | 1 | ||||
-rw-r--r-- | app-editors/qemacs/files/qemacs-0.3.1-Makefile-gentoo.patch | 79 | ||||
-rw-r--r-- | app-editors/qemacs/files/qemacs-0.3.1-manpage-ref-fix.patch | 15 | ||||
-rw-r--r-- | app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch | 76 | ||||
-rw-r--r-- | app-editors/qemacs/metadata.xml | 5 | ||||
-rw-r--r-- | app-editors/qemacs/qemacs-0.3.1-r2.ebuild | 87 |
7 files changed, 272 insertions, 1 deletions
diff --git a/app-editors/qemacs/ChangeLog b/app-editors/qemacs/ChangeLog index 8a835d78f322..b9f09c2e248a 100644 --- a/app-editors/qemacs/ChangeLog +++ b/app-editors/qemacs/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-editors/qemacs # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/ChangeLog,v 1.15 2005/04/21 18:27:01 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/ChangeLog,v 1.16 2005/04/23 07:50:20 usata Exp $ + +*qemacs-0.3.1-r2 (23 Apr 2005) + + 23 Apr 2005; Mamoru KOMACHI <usata@gentoo.org> + +files/qemacs-0.3.1-Makefile-gentoo.patch, + +files/qemacs-0.3.1-manpage-ref-fix.patch, + +files/qemacs-0.3.1-qemacs-datadir.patch, +qemacs-0.3.1-r2.ebuild: + Various patches from James Rowe <jnrowe@ukfsn.org>; bug #82915. 21 Apr 2005; Simon Stelling <blubb@gentoo.org> qemacs-0.3.1.ebuild: stable on amd64 diff --git a/app-editors/qemacs/files/digest-qemacs-0.3.1-r2 b/app-editors/qemacs/files/digest-qemacs-0.3.1-r2 new file mode 100644 index 000000000000..86ccf24a3138 --- /dev/null +++ b/app-editors/qemacs/files/digest-qemacs-0.3.1-r2 @@ -0,0 +1 @@ +MD5 74d85dee9861d494bf1f9c53bbc85298 qemacs-0.3.1.tar.gz 809124 diff --git a/app-editors/qemacs/files/qemacs-0.3.1-Makefile-gentoo.patch b/app-editors/qemacs/files/qemacs-0.3.1-Makefile-gentoo.patch new file mode 100644 index 000000000000..c2cbd7355587 --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.3.1-Makefile-gentoo.patch @@ -0,0 +1,79 @@ +--- qemacs-0.3.1/Makefile 2005-02-21 10:04:00.000000000 +0000 ++++ qemacs-0.3.1/Makefile 2005-02-21 10:04:00.000000000 +0000 +@@ -29,14 +29,6 @@ ifdef TARGET_GPROF + CFLAGS+= -p + LDFLAGS+= -p + endif +-ifdef TARGET_ARCH_X86 +-#CFLAGS+=-fomit-frame-pointer +-ifeq ($(GCC_MAJOR),2) +-CFLAGS+=-m386 -malign-functions=0 +-else +-CFLAGS+=-march=i386 -falign-functions=0 +-endif +-endif + DEFINES=-DHAVE_QE_CONFIG_H + + ######################################################## +@@ -190,15 +182,17 @@ distclean: clean + rm -f config.h config.mak + + install: qe qe.1 kmaps ligatures html2png +- install -m 755 qe $(prefix)/bin/qemacs +- ln -sf qemacs $(prefix)/bin/qe ++ mkdir -p $(DESTDIR)$(prefix)/bin ++ install -m 755 qe $(DESTDIR)$(prefix)/bin/qemacs ++ install -m 755 libqhtml/csstoqe $(DESTDIR)$(prefix)/bin/csstoqe + ifdef CONFIG_FFMPEG +- ln -sf qemacs $(prefix)/bin/ffplay ++ ln -sf qemacs $(DESTDIR)$(prefix)/bin/qemacs-ffplay + endif +- mkdir -p $(prefix)/share/qe +- install kmaps ligatures $(prefix)/share/qe +- install qe.1 $(prefix)/man/man1 +- install -m 755 -s html2png $(prefix)/bin ++ mkdir -p $(DESTDIR)$(prefix)/share/qemacs ++ install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qe ++ mkdir -p $(DESTDIR)$(prefix)/share/man/man1 ++ install -m644 qe.1 $(DESTDIR)$(prefix)/share/man/man1/qemacs.1 ++ install -m 755 -s html2png $(DESTDIR)$(prefix)/bin + + TAGS: force + etags *.[ch] +--- qemacs-0.3.1/plugin-example/Makefile 2005-02-21 03:24:37.000000000 +0000 ++++ qemacs-0.3.1/plugin-example/Makefile 2005-02-21 03:24:37.000000000 +0000 +@@ -6,7 +6,7 @@ + # + + # modify to get the path of the qemacs sources +-QEMACS_PATH=../ ++QEMACS_PATH=/usr/include/qemacs + # define the name of your plugin + LIB=my_plugin.so + # define the object files it contains +@@ -20,7 +20,7 @@ CFLAGS=-O2 -Wall -g -fPIC $(INCLUDES) $( + + # by default, the plugin is copied in ~/.qe/ some that qemacs can load + # it automatically. +-all: $(DIST_LIB) ++all: $(LIB) + + $(DIST_LIB): $(LIB) + install -s -m 644 $< $@ +--- qemacs-0.3.1/libqhtml/Makefile 2005-02-21 03:24:37.000000000 +0000 ++++ qemacs-0.3.1/libqhtml/Makefile 2005-02-21 03:24:37.000000000 +0000 +@@ -5,14 +5,6 @@ ifdef TARGET_GPROF + CFLAGS+= -p + LDFLAGS+= -p + endif +-ifdef TARGET_ARCH_X86 +-#CFLAGS+=-fomit-frame-pointer +-ifeq ($(GCC_MAJOR),2) +-CFLAGS+=-m386 -malign-functions=0 +-else +-CFLAGS+=-march=i386 -falign-functions=0 +-endif +-endif + CFLAGS+=-I.. + + OBJS=css.o xmlparse.o cssparse.o html_style.o docbook_style.o diff --git a/app-editors/qemacs/files/qemacs-0.3.1-manpage-ref-fix.patch b/app-editors/qemacs/files/qemacs-0.3.1-manpage-ref-fix.patch new file mode 100644 index 000000000000..0dca195bd2eb --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.3.1-manpage-ref-fix.patch @@ -0,0 +1,15 @@ +--- qemacs-0.3.1/qe.1 2005-02-03 03:47:34.000000000 +0000 ++++ qemacs-0.3.1/qe.1 2005-02-03 03:47:34.000000000 +0000 +@@ -1,10 +1,10 @@ + .\" Hey, EMACS: -*- nroff -*- +-.TH QE 1 "October 21, 2001" ++.TH QEMACS 1 "October 21, 2001" + .\" Please adjust this date whenever revising the manpage. + .SH NAME + QEmacs \- tiny full-screen editor + .SH SYNOPSIS +-.B qe ++.B qemacs + .RB [options] + .RI file... + .SH DESCRIPTION diff --git a/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch b/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch new file mode 100644 index 000000000000..437389204808 --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch @@ -0,0 +1,76 @@ +--- qemacs-0.3.1/qe-doc.html 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/qe-doc.html 2005-02-21 12:10:35.000000000 +0000 +@@ -382,7 +382,7 @@ C-x C-d : dired + + <P> + All resources and configuration files are looked in the following paths: +-<TT>`/usr/share/qe:/usr/local/share/qe:/usr/lib/qe:/usr/local/lib/qe:~/.qe'</TT> ++<TT>`/usr/share/qemacs:/usr/local/share/qemacs:/usr/lib/qemacs:/usr/local/lib/qemacs:~/.qemacs'</TT> + + + +@@ -390,7 +390,7 @@ All resources and configuration files ar + <H2><A NAME="SEC16" HREF="qe-doc.html#TOC16">4.2 Configuration file</A></H2> + + <P> +-QEmacs tries to load a configuration file in <TT>`~/.qe/config'</TT>. Each ++QEmacs tries to load a configuration file in <TT>`~/.qemacs/config'</TT>. Each + line of the configuration file is a QEmacs command with a C like syntax + ('-' in command name can be replaced by '_'). + +--- qemacs-0.3.1/qe.c 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/qe.c 2005-02-21 12:10:35.000000000 +0000 +@@ -6250,13 +6250,13 @@ void qe_init(void *opaque) + + /* compute resources path */ + strcpy(qe_state.res_path, +- CONFIG_QE_PREFIX "/share/qe:" CONFIG_QE_PREFIX "/lib/qe:" +- "/usr/share/qe:/usr/lib/qe"); ++ CONFIG_QE_PREFIX "/share/qemacs:" CONFIG_QE_PREFIX "/lib/qemacs:" ++ "/usr/share/qemacs:/usr/lib/qemacs"); + home_path = getenv("HOME"); + if (home_path) { + pstrcat(qe_state.res_path, sizeof(qe_state.res_path), ":"); + pstrcat(qe_state.res_path, sizeof(qe_state.res_path), home_path); +- pstrcat(qe_state.res_path, sizeof(qe_state.res_path), "/.qe"); ++ pstrcat(qe_state.res_path, sizeof(qe_state.res_path), "/.qemacs"); + } + qe_state.macro_key_index = -1; /* no macro executing */ + qe_state.ungot_key = -1; /* no unget key */ +--- qemacs-0.3.1/config.eg 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/config.eg 2005-02-21 12:10:35.000000000 +0000 +@@ -1,6 +1,6 @@ + // Sample qemacs config file + // +-// copy it in ~/.qe/config ++// copy it in ~/.qemacs/config + // + // You can call any Qemacs command with a C like syntax. + // +--- qemacs-0.3.1/Makefile 2005-02-21 12:10:35.000000000 +0000 ++++ qemacs-0.3.1/Makefile 2005-02-21 12:10:35.000000000 +0000 +@@ -189,7 +189,7 @@ ifdef CONFIG_FFMPEG + ln -sf qemacs $(DESTDIR)$(prefix)/bin/ffplay + endif + mkdir -p $(DESTDIR)$(prefix)/share/qemacs +- install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qe ++ install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qemacs + mkdir -p $(DESTDIR)$(prefix)/share/man/man1 + install -m644 qe.1 $(DESTDIR)$(prefix)/share/man/man1/qemacs.1 + install -m 755 -s html2png $(DESTDIR)$(prefix)/bin +--- qemacs-0.3.1/plugin-example/Makefile 2005-02-21 12:11:08.000000000 +0000 ++++ qemacs-0.3.1/plugin-example/Makefile 2005-02-21 12:11:08.000000000 +0000 +@@ -14,11 +14,11 @@ OBJS=my_plugin.o + + INCLUDES=-I$(QEMACS_PATH) + DEFINES=-DQE_MODULE +-DIST_LIB:=$(HOME)/.qe/$(LIB) ++DIST_LIB:=$(HOME)/.qemacs/$(LIB) + CC=gcc + CFLAGS=-O2 -Wall -g -fPIC $(INCLUDES) $(DEFINES) + +-# by default, the plugin is copied in ~/.qe/ some that qemacs can load ++# by default, the plugin is copied in ~/.qemacs/ some that qemacs can load + # it automatically. + all: $(LIB) + diff --git a/app-editors/qemacs/metadata.xml b/app-editors/qemacs/metadata.xml new file mode 100644 index 000000000000..bc306fe58224 --- /dev/null +++ b/app-editors/qemacs/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>emacs</herd> +</pkgmetadata> diff --git a/app-editors/qemacs/qemacs-0.3.1-r2.ebuild b/app-editors/qemacs/qemacs-0.3.1-r2.ebuild new file mode 100644 index 000000000000..2051c7047682 --- /dev/null +++ b/app-editors/qemacs/qemacs-0.3.1-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/qemacs-0.3.1-r2.ebuild,v 1.1 2005/04/23 07:50:20 usata Exp $ + +inherit eutils + +DESCRIPTION="QEmacs (for Quick Emacs) is a very small but powerful UNIX editor." +HOMEPAGE="http://fabrice.bellard.free.fr/qemacs/" +SRC_URI="http://fabrice.bellard.free.fr/qemacs/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="X png unicode xv" + +DEPEND="X? ( virtual/x11 ) + png? ( =media-libs/libpng-1.2* )" + +src_unpack() { + unpack ${A} + cd ${S} + # Add a patch to install to DESTDIR, make directories during install + # and install the binary/man page using the qemacs name to avoid clash + # with app-editors/qe. + # Also removes forced march setting and align-functions on x86, as + # they would override user's CFLAGS.. + epatch ${FILESDIR}/${P}-Makefile-gentoo.patch + # Change the references to the qe binary to reflect the installed name + # qemacs. + epatch ${FILESDIR}/${P}-manpage-ref-fix.patch + # Set the datadir to qemacs, upstream installs in to qe which conflicts + # with files installed in app-editors/qe. Currently no breakage + # occurs, but it makes sense to change before that happens. + epatch ${FILESDIR}/${P}-qemacs-datadir.patch + epatch ${FILESDIR}/${P}-configure-gentoo.patch + epatch ${FILESDIR}/${P}-make_backup.patch + useq unicode && epatch ${FILESDIR}/${P}-tty_utf8.patch + epatch ${FILESDIR}/${P}-gcc-3.4.patch + # Change the manpage to reference a /real/ file instead of just an + # approximation. Purely cosmetic! + sed -i "s,^/usr/share/doc/qemacs,&-${PVR}," qe.1 +} + +src_compile() { + econf $(use_enable X x11) \ + $(use_enable png) \ + $(use_enable xv) \ + || die "econf failed" + emake -j1 || die +} + +src_test() { + # There are some files purporting to be tests in the tarball, however + # there is no defined way to use them and I imagine even if there was + # it would require user interaction. + # The toplevel Makefile calls the test target from the non-existant + # tests/Makefile, so just noop to stop errors if maketest is set. + : +} + +src_install() { + make install DESTDIR=${D} || die + dodoc Changelog README TODO config.eg + dohtml *.html + + insinto /usr/share/doc/${PF}/plugin-example/ + doins plugin-example/* + + # Install headers so users can build their own plugins. + insinto /usr/include/qemacs + doins cfb.h config.h cutils.h display.h fbfrender.h libfbf.h qe.h \ + qeconfig.h qestyles.h qfribidi.h + cd libqhtml + insinto /usr/include/qemacs/libqhtml + doins {css{,id},htmlent}.h +} + +pkg_postinst() { + einfo "This version of qemacs is not entirely backwards compatible with" + einfo "versions prior to 0.3.1-r1." + echo + einfo "The name of the binary has been changed to qemacs, to fix a name" + einfo "clash with app-editors/qe." + echo + einfo "The location of user config files have been changed to ~/.qemacs, to" + einfo "remove some ambiguity." +} |