Package Details: qemacs-cvs 0.3.2.r2016.06.26-1

Git Clone URL: https://aur.archlinux.org/qemacs-cvs.git (read-only)
Package Base: qemacs-cvs
Description: A very small but powerful UNIX editor.
Upstream URL: http://bellard.org/qemacs/
Licenses: LGPL2.1
Conflicts: qemacs
Provides: qemacs
Submitter: noonov
Maintainer: aksr
Last Packager: aksr
Votes: 13
Popularity: 0.000006
First Submitted: 2008-04-30 16:41
Last Updated: 2016-07-10 04:55

Dependencies (4)

Required by (0)

Sources (0)

Latest Comments

cmsigler commented on 2016-07-06 00:39

@aksr:

Upstream made patches to x11 stuff as well as Makefile and my last build worked OK with PKGBUILD not disabling x11. I use `--enable-xshm' instead of `--disable-x11' on the ./configure command line, and comment out the `sed -i' edit of Makefile which AFAICS is deprecated. HTH :)

Clemmitt

cmsigler commented on 2016-06-10 18:46

@aksr: Glad you're around and up-to-date :) Thank you for maintaining the package!

Clemmitt

cmsigler commented on 2016-06-09 23:40

Hi,

For any other users following along....

Recently, upstream has been making fixes in the CVS repository, in part to fix the build problems in Makefile. Some of these solve problems fixed in my previous Makefile.patch.

However, ATM makepkg builds a .pkg.tar.xz which includes the non-X11 version of qemacs even though X11 support is enabled. I've sent a patch to Makefile for this upstream, and also to x11.c for Shift modifier keys not working (disabling keysym input when Shift keys are depressed). Hoping these patches will be applied soon by dev.

In addition, IIRC PKGBUILD needs to be updated to change the build() routine name to prepare(), and to add a separate build() routine which just cd's to the build subdirectory then does configure and make. I've found it's necessary to run configure as `./configure --prefix=/usr --enable-xshm', adding the --enable-xshm flag. This gets things to build.

As things settle down I'll post my personal updated PKGBUILD. I'm not sure if aksr is following this AUR any more. It's been flagged out-of-date for almost three months :^( HTH.

Clemmitt

cmsigler commented on 2016-05-05 16:56

Hi,

Succeeded in getting this to build X11 version of qemacs. Upstream's Makefile seems to be causing problems, or am I missing something? Patches:

========
--- PKGBUILD.orig 2015-07-06 11:58:32.000000000 -0400
+++ PKGBUILD 2016-05-05 12:43:08.538555431 -0400
@@ -1,7 +1,7 @@
# Contributor: noonov <noonov@gmail.com>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=qemacs-cvs
-pkgver=20131223
+pkgver=20160505
pkgrel=1
pkgdesc="A very small but powerful UNIX editor."
arch=('i686' 'x86_64')
@@ -11,14 +11,14 @@
makedepends=('cvs' 'texi2html')
provides=('qemacs')
conflicts=('qemacs')
-source=()
-md5sums=('SKIP')
+source=('Makefile.patch')
+md5sums=('45987b2d11c7de740d5b8ae7e88c3fd6')

_cvsroot=":pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemacs"
_cvsmod="qemacs"
pkgver() { date +'%Y%m%d'; }

-build() {
+prepare() {
cd ${srcdir}

msg "Connecting to CVS server..."
@@ -35,9 +35,14 @@

cd ${srcdir}/${_cvsmod}-build

- sed -i 's|texi2html -monolithic -number|texi2html -monolithic|' Makefile
+# sed -i 's|texi2html -monolithic -number|texi2html -monolithic|' Makefile
+ patch -p2 < ${srcdir}/Makefile.patch
+}
+
+build() {
+ cd ${srcdir}/${_cvsmod}-build

- ./configure --prefix=/usr
+ ./configure --prefix=/usr --enable-xshm
make -j1
}

========

========
--- src/qemacs-build/Makefile.orig 2016-05-05 10:48:11.561111448 -0400
+++ src/qemacs-build/Makefile 2016-05-05 11:34:50.964431333 -0400
@@ -62,7 +62,7 @@
# do not modify after this

TARGETLIBS:=
-TARGETS+= qe$(EXE) tqe$(EXE) kmaps ligatures
+TARGETS+= qe$(EXE) kmaps ligatures

OBJS:= qe.o util.o cutils.o charset.o buffer.o search.o parser.o input.o display.o hex.o \
list.o
@@ -151,6 +151,10 @@
TARGETS+= ffplay$(EXE)
endif

+ifdef CONFIG_TINY
+ TARGETS += tqe$(EXE)
+endif
+
ifdef CONFIG_X11
TARGETS += xqe$(EXE)
XOBJS := x11.o
@@ -164,7 +168,7 @@
ifdef CONFIG_XSHM
XLIBS += -lXext
endif
- XLIBS += -lX11
+ XLIBS += -lX11 -ldl
XLDFLAGS := $(LDFLAGS)
ifdef CONFIG_DARWIN
XLDFLAGS += -L/opt/X11/lib/
@@ -458,8 +462,16 @@
$(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/bin
$(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 755 -d $(DESTDIR)$(datadir)/qe
+ifdef CONFIG_X11
+ $(INSTALL) -m 755 -s xqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE)
+else
+ ifdef CONFIG_TINY
+ $(INSTALL) -m 755 -s tqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE)
+ else
$(INSTALL) -m 755 -s qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE)
- ln -sf qemacs $(DESTDIR)$(prefix)/bin/qe$(EXE)
+ endif
+endif
+ ln -sf qemacs$(EXE) $(DESTDIR)$(prefix)/bin/qe$(EXE)
ifdef CONFIG_FFMPEG
ln -sf qemacs$(EXE) $(DESTDIR)$(prefix)/bin/ffplay$(EXE)
endif
========

HTH.

Clemmitt

cmsigler commented on 2013-12-23 23:09

Hi,

Build failed for me, problems with man and share dirs being put under ${pkgdir}/usr/local during build. Here's a PKGBUILD patch that I believe does The Right Thing:
================
--- qemacs-cvs/PKGBUILD.orig 2013-12-22 20:39:51.000000000 -0500
+++ qemacs-cvs/PKGBUILD 2013-12-23 17:56:51.606478816 -0500
@@ -46,7 +46,9 @@

make -j1 DESTDIR=${pkgdir} install

- mv ${pkgdir}/usr/man ${pkgdir}/usr/share/man
+ mv ${pkgdir}/usr/local/man ${pkgdir}/usr/local/share/man
+ mv ${pkgdir}/usr/local/share ${pkgdir}/usr/share
+ rmdir ${pkgdir}/usr/local
ln -s qe.1.gz ${pkgdir}/usr/share/man/man1/qemacs.1.gz
install -D -m644 config.eg ${pkgdir}/usr/share/qe/config.eg
}
================
HTH.

Clemmitt

xyproto commented on 2011-05-31 20:51

Please depend on cvs.

xyproto commented on 2011-05-18 09:02

This package built here when changing "make" to "make || make".

Anonymous comment on 2011-01-18 13:02

please, add 'cvs' to makedepends