summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2009-03-07 20:33:46 +0000
committerChristian Faulhammer <fauli@gentoo.org>2009-03-07 20:33:46 +0000
commite0ca9ee4f77baf49244e1e6cbe086020a70e7978 (patch)
tree66ef3b8e4915e1d3b83b35e3dfec769462a9015e /app-editors
parentBump to 4.3.1. (diff)
downloadgentoo-2-e0ca9ee4f77baf49244e1e6cbe086020a70e7978.tar.gz
gentoo-2-e0ca9ee4f77baf49244e1e6cbe086020a70e7978.tar.bz2
gentoo-2-e0ca9ee4f77baf49244e1e6cbe086020a70e7978.zip
version bump with snapshot from upstream CVS
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/qemacs/ChangeLog13
-rw-r--r--app-editors/qemacs/files/qemacs-0.4.0_pre20080605-Makefile-gentoo.patch56
-rw-r--r--app-editors/qemacs/files/qemacs-0.4.0_pre20080605-make_backup.patch64
-rw-r--r--app-editors/qemacs/files/qemacs-0.4.0_pre20080605-qemacs-datadir.patch96
-rw-r--r--app-editors/qemacs/qemacs-0.4.0_pre20080605.ebuild84
5 files changed, 311 insertions, 2 deletions
diff --git a/app-editors/qemacs/ChangeLog b/app-editors/qemacs/ChangeLog
index a005de96ddf5..203c0fd017df 100644
--- a/app-editors/qemacs/ChangeLog
+++ b/app-editors/qemacs/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-editors/qemacs
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/ChangeLog,v 1.38 2008/10/24 17:36:11 ulm Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/ChangeLog,v 1.39 2009/03/07 20:33:46 fauli Exp $
+
+*qemacs-0.4.0_pre20080605 (07 Mar 2009)
+
+ 07 Mar 2009; Christian Faulhammer <fauli@gentoo.org>
+ +files/qemacs-0.4.0_pre20080605-Makefile-gentoo.patch,
+ +files/qemacs-0.4.0_pre20080605-make_backup.patch,
+ +files/qemacs-0.4.0_pre20080605-qemacs-datadir.patch,
+ +qemacs-0.4.0_pre20080605.ebuild:
+ version bump with snapshot from upstream CVS
24 Oct 2008; Ulrich Mueller <ulm@gentoo.org>
qemacs-0.3.2_pre20070226.ebuild:
diff --git a/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-Makefile-gentoo.patch b/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-Makefile-gentoo.patch
new file mode 100644
index 000000000000..a3571518851b
--- /dev/null
+++ b/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-Makefile-gentoo.patch
@@ -0,0 +1,56 @@
+--- Makefile.orig 2009-03-07 21:27:48.000000000 +0100
++++ Makefile 2009-03-07 21:28:43.000000000 +0100
+@@ -19,32 +19,6 @@
+
+ include config.mak
+
+-ifeq ($(CC),gcc)
+- CFLAGS := -Wall -g -O2 -funsigned-char
+- # do not warn about zero-length formats.
+- CFLAGS += -Wno-format-zero-length
+- LDFLAGS := -g
+-endif
+-
+-#include local compiler configuration file
+--include cflags.mk
+-
+-ifdef TARGET_GPROF
+- CFLAGS += -p
+- LDFLAGS += -p
+-endif
+-
+-TLDFLAGS := $(LDFLAGS)
+-
+-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
+
+ ########################################################
+@@ -354,16 +328,16 @@
+ install: $(TARGETS) qe.1
+ $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/bin
+ $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/man/man1
+- $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/share/qe
++ $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/share/qemacs
+ $(INSTALL) -m 755 -s qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE)
+- ln -sf qemacs $(DESTDIR)$(prefix)/bin/qe$(EXE)
+ ifdef CONFIG_FFMPEG
+ ln -sf qemacs$(EXE) $(DESTDIR)$(prefix)/bin/ffplay$(EXE)
+ endif
+- $(INSTALL) -m 644 kmaps ligatures $(DESTDIR)$(prefix)/share/qe
+- $(INSTALL) -m 644 qe.1 $(DESTDIR)$(prefix)/man/man1
++ $(INSTALL) -m 644 kmaps ligatures $(DESTDIR)$(prefix)/share/qemacs
++ $(INSTALL) -m 644 qe.1 $(DESTDIR)$(prefix)/man/man1/qemacs.1
+ ifdef CONFIG_HTML
+ $(INSTALL) -m 755 -s html2png$(EXE) $(DESTDIR)$(prefix)/bin
++ $(INSTALL) -m 755 libqhtml/csstoqe $(DESTDIR)$(prefix)/bin/csstoqe
+ endif
+
+ uninstall:
diff --git a/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-make_backup.patch b/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-make_backup.patch
new file mode 100644
index 000000000000..9eb5f57c4ede
--- /dev/null
+++ b/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-make_backup.patch
@@ -0,0 +1,64 @@
+--- buffer.c.orig 2009-03-07 21:14:02.000000000 +0100
++++ buffer.c 2009-03-07 21:15:40.000000000 +0100
+@@ -1657,12 +1657,14 @@
+ if (stat(filename, &st) == 0)
+ mode = st.st_mode & 0777;
+
+- /* backup old file if present */
+- if (strlen(filename) < MAX_FILENAME_SIZE - 1) {
++ /* backup old file if present and make-backup-files is on */
++ if(mbf == 1) {
++ if (strlen(filename) < MAX_FILENAME_SIZE - 1) {
+ if (snprintf(buf1, sizeof(buf1), "%s~", filename) < ssizeof(buf1)) {
+ // should check error code
+ rename(filename, buf1);
+ }
++ }
+ }
+
+ /* CG: should pass mode to buffer_save */
+--- qe.c.orig 2009-03-07 21:14:09.000000000 +0100
++++ qe.c 2009-03-07 21:17:01.000000000 +0100
+@@ -71,6 +71,7 @@
+ static int screen_height = 0;
+ static int no_init_file;
+ static const char *user_option;
++mbf = 1;
+
+ /* mode handling */
+
+@@ -5316,6 +5317,14 @@
+ do_refresh(qs->first_window);
+ }
+
++static void make_backup_files(EditState *s) {
++ if(mbf == 1) {
++ mbf = 0;
++ } else {
++ mbf = 1;
++ }
++}
++
+ /* compute default path for find/save buffer */
+ static void get_default_path(EditState *s, char *buf, int buf_size)
+ {
+--- qeconfig.h.orig 2009-03-07 21:14:19.000000000 +0100
++++ qeconfig.h 2009-03-07 21:17:37.000000000 +0100
+@@ -192,6 +192,7 @@
+ "downcase-region", do_changecase_region, ESi, -1, "*v")
+ CMD3( KEY_CTRLX(KEY_CTRL('u')), KEY_NONE,
+ "upcase-region", do_changecase_region, ESi, 1, "*v")
++ CMD0( KEY_NONE, KEY_NONE, "make-backup-files", make_backup_files)
+
+ /*---------------- Command handling ----------------*/
+
+--- qe.h.orig 2009-03-07 21:14:26.000000000 +0100
++++ qe.h 2009-03-07 21:17:53.000000000 +0100
+@@ -1765,6 +1765,7 @@
+ /* image.c */
+ void fill_border(EditState *s, int x, int y, int w, int h, int color);
+ int qe_bitmap_format_to_pix_fmt(int format);
++int mbf;
+
+ /* shell.c */
+ EditBuffer *new_shell_buffer(EditBuffer *b0, const char *name,
diff --git a/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-qemacs-datadir.patch b/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-qemacs-datadir.patch
new file mode 100644
index 000000000000..84a001f65eb7
--- /dev/null
+++ b/app-editors/qemacs/files/qemacs-0.4.0_pre20080605-qemacs-datadir.patch
@@ -0,0 +1,96 @@
+--- qe.c.orig 2009-03-07 21:00:39.000000000 +0100
++++ qe.c 2009-03-07 21:10:50.000000000 +0100
+@@ -7505,15 +7505,15 @@
+ /* compute resources path */
+ qs->res_path[0] = '\0';
+
+- /* put source directory first if qe invoked as ./qe */
++ /* put source directory first if qe invoked as ./qemacs */
+ // should use actual directory
+- if (stristart(qs->argv[0], "./qe", NULL)) {
++ if (stristart(qs->argv[0], "./qemacs", NULL)) {
+ pstrcat(qs->res_path, sizeof(qs->res_path), ".:");
+ }
+
+ /* put user directory before standard list */
+ if (user) {
+- /* use ~USER/.qe instead of ~/.qe */
++ /* use ~USER/.qemacs instead of ~/.qemacs */
+ /* CG: should get user homedir */
+ snprintf(path, sizeof(path), "/home/%s", user);
+ home_path = path;
+@@ -7522,14 +7522,14 @@
+ }
+ if (home_path) {
+ pstrcat(qs->res_path, sizeof(qs->res_path), home_path);
+- pstrcat(qs->res_path, sizeof(qs->res_path), "/.qe:");
++ pstrcat(qs->res_path, sizeof(qs->res_path), "/.qemacs:");
+ }
+
+ pstrcat(qs->res_path, sizeof(qs->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");
+ }
+
+ void set_tty_charset(const char *name)
+@@ -7545,7 +7545,7 @@
+ { .int_ptr = &no_init_file }},
+ { "ttycharset", "c", "CHARSET", CMD_OPT_ARG, "specify tty charset",
+ { .func_arg = set_tty_charset }},
+- { "user", "u", "USER", CMD_OPT_ARG, "load ~USER/.qe/config instead of your own",
++ { "user", "u", "USER", CMD_OPT_ARG, "load ~USER/.qemacs/config instead of your own",
+ { .func_arg = set_user_option }},
+ { "version", "V", NULL, 0, "display version information and exit",
+ { .func_noarg = show_version }},
+--- qe-doc.texi.orig 2009-03-07 21:00:56.000000000 +0100
++++ qe-doc.texi 2009-03-07 21:08:49.000000000 +0100
+@@ -274,11 +274,11 @@
+ @section Resource path
+
+ All resources and configuration files are looked in the following paths:
+-@file{/usr/share/qe:/usr/local/share/qe:/usr/lib/qe:/usr/local/lib/qe:~/.qe}
++@file{/usr/share/qemacs:/usr/local/share/qemacs:/usr/lib/qemacs:/usr/local/lib/qemacs:~/.qemacs}
+
+ @section Configuration file
+
+-QEmacs tries to load a configuration file in @file{~/.qe/config}. Each
++QEmacs tries to load a configuration file in @file{~/.qemacs/config}. Each
+ line of the configuration file is a QEmacs command with a C like syntax
+ ('-' in command name can be replaced by '_').
+
+--- qe-doc.html.orig 2009-03-07 21:01:02.000000000 +0100
++++ qe-doc.html 2009-03-07 21:08:49.000000000 +0100
+@@ -619,7 +619,7 @@
+ <h2 class="section"> 4.1 Resource path </h2>
+
+ <p>All resources and configuration files are looked in the following paths:
+-&lsquo;<tt>/usr/share/qe:/usr/local/share/qe:/usr/lib/qe:/usr/local/lib/qe:~/.qe</tt>&rsquo;
++&lsquo;<tt>/usr/share/qemacs:/usr/local/share/qemacs:/usr/lib/qemacs:/usr/local/lib/qemacs:~/.qemacs</tt>&rsquo;
+ </p>
+ <hr size="6">
+ <a name="SEC19"></a>
+@@ -641,7 +641,7 @@
+ </tr></table>
+ <h2 class="section"> 4.2 Configuration file </h2>
+
+-<p>QEmacs tries to load a configuration file in &lsquo;<tt>~/.qe/config</tt>&rsquo;. Each
++<p>QEmacs tries to load a configuration file in &lsquo;<tt>~/.qemacs/config</tt>&rsquo;. Each
+ line of the configuration file is a QEmacs command with a C like syntax
+ ('-' in command name can be replaced by '_').
+ </p>
+--- config.eg.orig 2009-03-07 21:00:21.000000000 +0100
++++ config.eg 2009-03-07 21:08:49.000000000 +0100
+@@ -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.
+ //
diff --git a/app-editors/qemacs/qemacs-0.4.0_pre20080605.ebuild b/app-editors/qemacs/qemacs-0.4.0_pre20080605.ebuild
new file mode 100644
index 000000000000..53b06f509ea4
--- /dev/null
+++ b/app-editors/qemacs/qemacs-0.4.0_pre20080605.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/qemacs-0.4.0_pre20080605.ebuild,v 1.1 2009/03/07 20:33:46 fauli Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="QEmacs is a very small but powerful UNIX editor"
+HOMEPAGE="http://fabrice.bellard.free.fr/qemacs/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="X png unicode xv"
+RESTRICT="strip"
+
+DEPEND="X? ( x11-libs/libX11
+ x11-libs/libXext
+ xv? ( x11-libs/libXv ) )
+ png? ( =media-libs/libpng-1.2* )"
+
+RDEPEND="${DEPEND}"
+
+DEPEND="${DEPEND}
+ app-text/texi2html"
+
+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}/${PN}-0.3.1-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}-make_backup.patch"
+
+ useq unicode && epatch "${FILESDIR}/${PN}-0.3.2_pre20070226-tty_utf8.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() {
+ # when using any other CFLAGS than -O0, qemacs will segfault on startup, see bug #92011
+ replace-flags -O? -O0
+ econf --cc="$(tc-getCC)" \
+ $(use_enable X x11) \
+ $(use_enable png) \
+ $(use_enable xv) \
+ || die "econf failed"
+ # Does not support parallel building
+ 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() {
+ emake install DESTDIR="${D}" || die
+ dodoc Changelog README TODO config.eg
+ dohtml *.html
+
+ # 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
+}