diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2007-09-22 16:23:00 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2007-09-22 16:23:00 +0000 |
commit | 8d865906925ca0596e7f13a83a77621ff6d1b3fb (patch) | |
tree | d5e33f4cb5c127efbc4d0d824257889b774daf4f /app-editors/qemacs | |
parent | clean up (diff) | |
download | gentoo-2-8d865906925ca0596e7f13a83a77621ff6d1b3fb.tar.gz gentoo-2-8d865906925ca0596e7f13a83a77621ff6d1b3fb.tar.bz2 gentoo-2-8d865906925ca0596e7f13a83a77621ff6d1b3fb.zip |
clean up
(Portage version: 2.1.3.9)
Diffstat (limited to 'app-editors/qemacs')
13 files changed, 14 insertions, 441 deletions
diff --git a/app-editors/qemacs/ChangeLog b/app-editors/qemacs/ChangeLog index b6bc12b75f39..967abb7db286 100644 --- a/app-editors/qemacs/ChangeLog +++ b/app-editors/qemacs/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for app-editors/qemacs # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/ChangeLog,v 1.32 2007/09/22 15:48:21 angelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/qemacs/ChangeLog,v 1.33 2007/09/22 16:23:00 opfer Exp $ + + 22 Sep 2007; Christian Faulhammer <opfer@gentoo.org> + -files/qemacs-0.3.1-Makefile-gentoo.patch, + -files/qemacs-0.3.1-configure-gentoo.patch, + -files/qemacs-0.3.1-gcc-3.4.patch, + -files/qemacs-0.3.1-gcc4_charset_c.patch, + -files/qemacs-0.3.1-gcc4_tty_c.patch, + -files/qemacs-0.3.1-gcc4_x11_c.patch, + -files/qemacs-0.3.1-make_backup.patch, + -files/qemacs-0.3.1-manpage-ref-fix.patch, + -files/qemacs-0.3.1-qemacs-datadir.patch, + -files/qemacs-0.3.1-tty_utf8.patch, -qemacs-0.3.1-r3.ebuild: + clean up 22 Sep 2007; Christoph Mende <angelos@gentoo.org> qemacs-0.3.2_pre20070226.ebuild: diff --git a/app-editors/qemacs/files/digest-qemacs-0.3.1-r3 b/app-editors/qemacs/files/digest-qemacs-0.3.1-r3 deleted file mode 100644 index 52039e47f4ea..000000000000 --- a/app-editors/qemacs/files/digest-qemacs-0.3.1-r3 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 74d85dee9861d494bf1f9c53bbc85298 qemacs-0.3.1.tar.gz 809124 -RMD160 05eaddf872cbf6c187a63c80ed1eb02a23a1a13d qemacs-0.3.1.tar.gz 809124 -SHA256 a3db57e09729d8c83be5ff9ab028ece173d8f5f10aaf61ca41f88aecb64996c7 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 deleted file mode 100644 index c2cbd7355587..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-Makefile-gentoo.patch +++ /dev/null @@ -1,79 +0,0 @@ ---- 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-configure-gentoo.patch b/app-editors/qemacs/files/qemacs-0.3.1-configure-gentoo.patch deleted file mode 100644 index c7c230941b2a..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-configure-gentoo.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur qemacs-0.3.1.orig/configure qemacs-0.3.1/configure ---- qemacs-0.3.1.orig/configure 2003-12-11 22:24:37.607928696 -0500 -+++ qemacs-0.3.1/configure 2003-12-11 22:27:07.656117904 -0500 -@@ -311,7 +311,7 @@ - head $source_path/VERSION >>config.mak - echo "" >>config.mak - echo -n "#define QE_VERSION \"" >> $TMPH --head $source_path/VERSION >> $TMPH -+echo -n `head $source_path/VERSION` >> $TMPH - echo "\"" >> $TMPH - if test "$network" = "yes" ; then - echo "#define CONFIG_NETWORK 1" >> $TMPH diff --git a/app-editors/qemacs/files/qemacs-0.3.1-gcc-3.4.patch b/app-editors/qemacs/files/qemacs-0.3.1-gcc-3.4.patch deleted file mode 100644 index 4506b9e3ab5a..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-gcc-3.4.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- unicode_join.c 2005-03-06 13:20:10.849453136 +1100 -+++ unicode_join.c.new 2005-03-06 13:20:05.472270592 +1100 -@@ -182,6 +182,7 @@ - *q++ = l1; - i++; - found: -+ break; - } - } - return q - buf_out; diff --git a/app-editors/qemacs/files/qemacs-0.3.1-gcc4_charset_c.patch b/app-editors/qemacs/files/qemacs-0.3.1-gcc4_charset_c.patch deleted file mode 100644 index 5c8942bc2318..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-gcc4_charset_c.patch +++ /dev/null @@ -1,14 +0,0 @@ -# This patch has been taken from the Debian bug tracker found at -# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288175 -# resolving compile problems with GCC 4, see bug #141292 ---- /tmp/charset.c 2006-07-25 09:30:28.000000000 +0200 -+++ charset.c 2006-07-25 09:31:18.000000000 +0200 -@@ -20,7 +20,7 @@ - - QECharset *first_charset = NULL; - --extern QECharset charset_7bit; -+static QECharset charset_7bit; - - /* specific tables */ - static unsigned short table_idem[256]; diff --git a/app-editors/qemacs/files/qemacs-0.3.1-gcc4_tty_c.patch b/app-editors/qemacs/files/qemacs-0.3.1-gcc4_tty_c.patch deleted file mode 100644 index f7fe13f7d1bb..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-gcc4_tty_c.patch +++ /dev/null @@ -1,14 +0,0 @@ -# This patch has been taken from the Debian bug tracker found at -# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288175 -# resolving compile problems with GCC 4, see bug #141292 ---- /tmp/tty.c 2006-07-25 09:26:08.000000000 +0200 -+++ tty.c 2006-07-25 09:26:28.000000000 +0200 -@@ -69,7 +69,7 @@ - return 1; - } - --extern QEDisplay tty_dpy; -+static QEDisplay tty_dpy; - - static int term_init(QEditScreen *s, int w, int h) - { diff --git a/app-editors/qemacs/files/qemacs-0.3.1-gcc4_x11_c.patch b/app-editors/qemacs/files/qemacs-0.3.1-gcc4_x11_c.patch deleted file mode 100644 index 9dc8b011c306..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-gcc4_x11_c.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- /tmp/x11.c 2006-07-25 09:30:34.000000000 +0200 -+++ x11.c 2006-07-25 09:31:13.000000000 +0200 -@@ -76,7 +76,7 @@ - static CSSRect update_rects[UPDATE_MAX_REGIONS]; - #endif - --extern QEDisplay x11_dpy; -+static QEDisplay x11_dpy; - static int visual_depth; - - static int force_tty = 0; diff --git a/app-editors/qemacs/files/qemacs-0.3.1-make_backup.patch b/app-editors/qemacs/files/qemacs-0.3.1-make_backup.patch deleted file mode 100644 index c8839bff58a2..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-make_backup.patch +++ /dev/null @@ -1,69 +0,0 @@ -diff -ruN qemacs-0.3.1/buffer.c qemacs-0.3.1-aon1/buffer.c ---- qemacs-0.3.1/buffer.c 2003-04-22 01:01:42.000000000 +0300 -+++ qemacs-0.3.1-aon1/buffer.c 2004-11-12 18:53:18.510488192 +0200 -@@ -1437,11 +1437,12 @@ - if (stat(filename, &st) == 0) - mode = st.st_mode & 0777; - -- /* backup old file if present */ -- strcpy(buf1, filename); -- strcat(buf1, "~"); -- rename(filename, buf1); -- -+ /* backup old file if present and make-backup-files is on */ -+ if(mbf == 1) { -+ strcpy(buf1, filename); -+ strcat(buf1, "~"); -+ rename(filename, buf1); -+ } - ret = b->data_type->buffer_save(b, filename); - if (ret < 0) - return ret; -diff -ruN qemacs-0.3.1/qe.c qemacs-0.3.1-aon1/qe.c ---- qemacs-0.3.1/qe.c 2003-04-22 01:01:42.000000000 +0300 -+++ qemacs-0.3.1-aon1/qe.c 2004-11-12 18:53:52.524317304 +0200 -@@ -61,7 +61,7 @@ - static QEditScreen global_screen; - static int screen_width = 0; - static int screen_height = 0; -- -+mbf = 1; - /* mode handling */ - - void qe_register_mode(ModeDef *m) -@@ -4319,6 +4319,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) - { -diff -ruN qemacs-0.3.1/qe.h qemacs-0.3.1-aon1/qe.h ---- qemacs-0.3.1/qe.h 2003-04-22 01:01:42.000000000 +0300 -+++ qemacs-0.3.1-aon1/qe.h 2004-11-12 18:53:18.516487280 +0200 -@@ -1140,3 +1140,5 @@ - int qe_bitmap_format_to_pix_fmt(int format); - - #endif -+ -+int mbf; -diff -ruN qemacs-0.3.1/qeconfig.h qemacs-0.3.1-aon1/qeconfig.h ---- qemacs-0.3.1/qeconfig.h 2003-04-22 01:01:42.000000000 +0300 -+++ qemacs-0.3.1-aon1/qeconfig.h 2004-11-12 18:53:18.516487280 +0200 -@@ -68,5 +68,7 @@ - CMD1( KEY_CTRLX(KEY_CTRL('u')), KEY_NONE, "upcase-region", - do_changecase_region, 1) - -+ CMD0( KEY_NONE, KEY_NONE, "make-backup-files", make_backup_files) -+ - /* keyboard macros */ - CMD0( KEY_CTRLX('('), KEY_NONE, "start-kbd-macro", do_start_macro) - CMD0( KEY_CTRLX(')'), KEY_NONE, "end-kbd-macro", do_end_macro) 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 deleted file mode 100644 index 0dca195bd2eb..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-manpage-ref-fix.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- 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 deleted file mode 100644 index 437389204808..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-qemacs-datadir.patch +++ /dev/null @@ -1,76 +0,0 @@ ---- 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/files/qemacs-0.3.1-tty_utf8.patch b/app-editors/qemacs/files/qemacs-0.3.1-tty_utf8.patch deleted file mode 100644 index 6ca528074975..000000000000 --- a/app-editors/qemacs/files/qemacs-0.3.1-tty_utf8.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- qemacs-0.3.1/tty.c 2003-04-22 00:01:42.000000000 +0200 -+++ qemacs-0.3.1-tty_utf8/tty.c 2004-03-14 17:38:58.000000000 +0100 -@@ -53,7 +53,6 @@ - /* input handling */ - enum InputState input_state; - int input_param; -- int utf8_state; - int utf8_index; - unsigned char buf[10]; - } TTYState; -@@ -211,15 +210,20 @@ - - /* charset handling */ - if (s->charset == &charset_utf8) { -- if (ts->utf8_state == 0) { -+ -+ /* Make sure utf8 input works correctly 20040314 <damm@opensource.se> */ -+ -+ ts->utf8_index++; -+ -+ if (utf8_length[ts->buf[0]] == ts->utf8_index) {; - const char *p; - p = ts->buf; - ch = utf8_decode(&p); -- } else { -- ts->utf8_state = utf8_length[ts->buf[0]] - 1; -- ts->utf8_index = 0; -- return; -- } -+ ts->utf8_index = 0; -+ } -+ else { -+ return; -+ } - } else { - ch = ts->buf[0]; - } diff --git a/app-editors/qemacs/qemacs-0.3.1-r3.ebuild b/app-editors/qemacs/qemacs-0.3.1-r3.ebuild deleted file mode 100644 index a85e4ba0dccc..000000000000 --- a/app-editors/qemacs/qemacs-0.3.1-r3.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2007 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-r3.ebuild,v 1.9 2007/07/22 18:47:18 ulm Exp $ - -inherit eutils versionator flag-o-matic - -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="amd64 ppc x86" -IUSE="X png unicode xv" - -DEPEND="X? ( x11-libs/libX11 - x11-libs/libXext - xv? ( x11-libs/libXv ) ) - png? ( =media-libs/libpng-1.2* )" - -RDEPEND="${DEPEND}" -PROVIDE="virtual/editor" - -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" - # Patches to avoid compilation errors with GCC 4, see bug #141292 - epatch "${FILESDIR}/${P}-gcc4_tty_c.patch" - epatch "${FILESDIR}/${P}-gcc4_x11_c.patch" - epatch "${FILESDIR}/${P}-gcc4_charset_c.patch" - # port to new libpng API, see bug #141566 - useq png && epatch "${FILESDIR}/${P}-libpng-1_2.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 $(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." -} |