From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-editors/qemacs/Manifest | 10 ++++ .../files/qemacs-0.4.1_pre20150916-Makefile.patch | 38 ++++++++++++ .../files/qemacs-0.4.1_pre20150916-nostrip.patch | 38 ++++++++++++ .../files/qemacs-0.4.1_pre20170225-Makefile.patch | 42 +++++++++++++ .../files/qemacs-0.4.1_pre20170225-manpage.patch | 11 ++++ .../files/qemacs-0.4.1_pre20170225-nostrip.patch | 61 +++++++++++++++++++ app-editors/qemacs/metadata.xml | 38 ++++++++++++ app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild | 70 ++++++++++++++++++++++ app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild | 64 ++++++++++++++++++++ 9 files changed, 372 insertions(+) create mode 100644 app-editors/qemacs/Manifest create mode 100644 app-editors/qemacs/files/qemacs-0.4.1_pre20150916-Makefile.patch create mode 100644 app-editors/qemacs/files/qemacs-0.4.1_pre20150916-nostrip.patch create mode 100644 app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch create mode 100644 app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch create mode 100644 app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch create mode 100644 app-editors/qemacs/metadata.xml create mode 100644 app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild create mode 100644 app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild (limited to 'app-editors/qemacs') diff --git a/app-editors/qemacs/Manifest b/app-editors/qemacs/Manifest new file mode 100644 index 000000000000..d5ecadf246c2 --- /dev/null +++ b/app-editors/qemacs/Manifest @@ -0,0 +1,10 @@ +AUX qemacs-0.4.1_pre20150916-Makefile.patch 799 BLAKE2B 1a75b0b1f6ec433bb130fa3fcd142eacfdd2665117e6efdaa28dee0d2bbf394e5c270241be5719d64f49facb115febb8f99de399b4561e6921bc7f1293ff59a0 SHA512 1bb412ffc530b8d00569618b8a7d87d65b2baa9a3aacf83b377c41ea29b976ea0f84161d979f06d79a27b6b5b1192135917772c3af2bab66fb28a58c3006dd18 +AUX qemacs-0.4.1_pre20150916-nostrip.patch 1162 BLAKE2B a84d798d0a2d97b6413b10c075daa9f28b952ee655192e01cf6fd788e003785c0ad243bacbda16be071ac2e2a3ff38e7e005a008c88e475483e74d67291f8f4f SHA512 9495ea9799a6b728a2f25545dd2216758247b70985bbf8d1d0cccff1d152ee1f14575e4ca02799cfe105ea0ac799c1865414f30270c3f2373601ac02b1e44770 +AUX qemacs-0.4.1_pre20170225-Makefile.patch 954 BLAKE2B 16fce167962370753730dbe61ee5cbfa4d1e7b208bd350e433eeeb1bfe9eef2892a4532e83675b6c40344aed04df38c8236a01a7ff3db5fa6ec5592ec1225c18 SHA512 8146d383e53df6a5c540581925d85c2eff3dafe5cd78a23a784f3fc4fd41e23804f1287dc68597b33582f9beacef57df4a80a1930399b66566c77ff5e17eb227 +AUX qemacs-0.4.1_pre20170225-manpage.patch 372 BLAKE2B 68e2d415700e576c5706788036665271cffee46a4b896573de3691c3e8cc96db9972fd0f170033b9d85fb048578c8cf3502a53a5c4ad8b7c9858c0771e195a42 SHA512 1c81e3570a2d00df04fa9a4dfae404be2f1c684b9b86ef67aa3f13a4b6f734d99d768350d41c75dc8c2874ccf853d021e497c87c751d86e2df1015f42fe97889 +AUX qemacs-0.4.1_pre20170225-nostrip.patch 1771 BLAKE2B af8ad554ea5dbdcd8e7a3df32a4ff5402e84f56642a74f228b0c5be8166895b82b90e291f043a5e18a757b6e6de69ed50af3950c719f2b40be1e3d1e031c2031 SHA512 9ad3c3cd4a7744894718099ff8df2648e11385c6926a137f3f04ed33ef449d658cfb873476276bc52de7a7cee5ed2a2319893d8f47e7a2413d00d61378123656 +DIST qemacs-0.4.1_pre20150916.tar.xz 1136592 BLAKE2B aff8875b81bd51f77bebcb4dfe60ed0d4396a05af1f42e6b8765e15f9e04e00162924c3514a9ea1e8cb8c0b9ecd2a4112b9d7a46b7d156c032d37d381f2ae0f0 SHA512 e9775ff3dfef6d6b6b263029a620e6575f9f4718b94c0acfcddc8e5da8cd835e57dfbd5fbd948778135b609ae0588924fc9a727b2e763a25148aa27886a9f467 +DIST qemacs-0.4.1_pre20170225.tar.xz 1147408 BLAKE2B 369f3c5ff1b1f7b22bbd1f70f0c150e425a5b68828e62db427e4b41c58c8ee9ae0449a83693e9354d88fc482691d7a5f3661360ef602aeaba963776c4725b894 SHA512 a17c8901c917f91401e16b4f857735957ab0d3533d9dcc7a0decf768f453b68023f45e1241225a84d35ba793beb69754e0f2caa857165f8223882d5041d56c99 +EBUILD qemacs-0.4.1_pre20150916.ebuild 1664 BLAKE2B 9bb83316a5059a92c0eb04a1c07336ac0976b11778f60b0898bc79ba1a3edc1eb722327b08ba3bf766b67cf5a5f33d3407cfe86329aca377a62234f69b083b8b SHA512 9ca5f4c41d4232051070547d8591235c1ac4d3e5dbba738d58b5668690935f9e106ce1a4921d7004cf4bbc7ef33f717b782a8246d7f402fc9c35a356baa720f9 +EBUILD qemacs-0.4.1_pre20170225.ebuild 1519 BLAKE2B 625375983bba8a8fe37511edbc3d4d07fb7fabc4bf5bf0ef9e87a4f816d7c4a6ad9cc71c24fecd9e37dc038a70c5f37fc04c08d1c4b01605f7fbe153139852fd SHA512 02d99ab6f3e2800694886d463ebcf1534b12fea705a3f5e0dc5a3d05cce43d2947edb04049979c91d55f8c2825327d3a10339078cc208d68b8a12bb691ed4907 +MISC metadata.xml 1937 BLAKE2B 1367de4b5e027102ce6a7720129bf21bd6d9556d748f0770d005ee0b9a4454f5ad0d27d0d25e8c7b97bc3c0bb796a78df636479d33bf6bd5acee36498e8a8a81 SHA512 a26f40107a0616980d3722685b1491eee4c606a685e78bbc23a62de6c9b67cf15ff3ac92cbc935a38d280844a0d15c21f92ee7bdbb28218f8ae664bbc526feac diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20150916-Makefile.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20150916-Makefile.patch new file mode 100644 index 000000000000..53c71f21580d --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20150916-Makefile.patch @@ -0,0 +1,38 @@ +Removes forced march setting and align-functions on x86, as they would +override user's CFLAGS. + +--- qemacs-orig/Makefile ++++ qemacs/Makefile +@@ -29,32 +29,6 @@ + cmd := + endif + +-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 $(DEPTH)/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 + + ######################################################## diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20150916-nostrip.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20150916-nostrip.patch new file mode 100644 index 000000000000..2ee40c6d2fdb --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20150916-nostrip.patch @@ -0,0 +1,38 @@ +Suppress stripping. + +--- qemacs-orig/Makefile ++++ qemacs/Makefile +@@ -168,7 +168,6 @@ + qe$(EXE): qe_g$(EXE) Makefile + @rm -f $@ + cp $< $@ +- -$(STRIP) $@ + @ls -l $@ + @echo `size $@` `wc -c $@` qe $(OPTIONS) \ + | cut -d ' ' -f 7-10,13,15-40 >> STATS +@@ -183,7 +182,6 @@ + tqe$(EXE): tqe_g$(EXE) Makefile + @rm -f $@ + cp $< $@ +- -$(STRIP) $@ + @ls -l $@ + @echo `size $@` `wc -c $@` tqe $(OPTIONS) \ + | cut -d ' ' -f 7-10,13,15-40 >> STATS +@@ -386,7 +384,7 @@ + $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/bin + $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1 + $(INSTALL) -m 755 -d $(DESTDIR)$(datadir)/qe +- $(INSTALL) -m 755 -s qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) ++ $(INSTALL) -m 755 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) +@@ -394,7 +392,7 @@ + $(INSTALL) -m 644 kmaps ligatures $(DESTDIR)$(datadir)/qe + $(INSTALL) -m 644 qe.1 $(DESTDIR)$(mandir)/man1 + ifdef CONFIG_HTML +- $(INSTALL) -m 755 -s html2png$(EXE) $(DESTDIR)$(prefix)/bin ++ $(INSTALL) -m 755 html2png$(EXE) $(DESTDIR)$(prefix)/bin + endif + + uninstall: diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch new file mode 100644 index 000000000000..0540bcd767c4 --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch @@ -0,0 +1,42 @@ +Removes forced march setting and align-functions on x86, as they would +override user's CFLAGS. + +--- qemacs-orig/Makefile ++++ qemacs/Makefile +@@ -29,35 +29,11 @@ + cmd := + endif + +-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 $(DEPTH)/cflags.mk +- +-ifdef TARGET_GPROF +- CFLAGS += -p +- LDFLAGS += -p +-endif +- + #TCFLAGS := -DCONFIG_TINY -m32 $(CFLAGS) -Os + #TLDFLAGS := -m32 $(LDFLAGS) +-TCFLAGS := -DCONFIG_TINY $(CFLAGS) -Os ++TCFLAGS := -DCONFIG_TINY $(CFLAGS) + 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 + + ######################################################## diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch new file mode 100644 index 000000000000..b73f3ee356b2 --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch @@ -0,0 +1,11 @@ +--- qemacs-orig/qe.1 ++++ qemacs/qe.1 +@@ -44,7 +44,7 @@ + anti aliased font display. + .PP + For more information and a list of key bindings please see +-/usr/share/doc/qemacs/README.gz. ++the README file in /usr/share/doc/@PF@/. + .SH AUTHOR + This manual page was written by Edmund GRIMLEY EVANS , + for the Debian GNU/Linux system (but may be used by others). diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch new file mode 100644 index 000000000000..60519dca5c36 --- /dev/null +++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch @@ -0,0 +1,61 @@ +Suppress stripping. + +--- qemacs-orig/Makefile ++++ qemacs/Makefile +@@ -203,7 +203,6 @@ + qe$(EXE): qe_g$(EXE) Makefile + @rm -f $@ + cp $< $@ +- -$(STRIP) $@ + @ls -l $@ + @echo `size $@` `wc -c $@` qe $(OPTIONS) \ + | cut -d ' ' -f 7-10,13,15-40 >> STATS +@@ -218,7 +217,6 @@ + xqe$(EXE): xqe_g$(EXE) Makefile + @rm -f $@ + cp $< $@ +- -$(STRIP) $@ + @ls -l $@ + @echo `size $@` `wc -c $@` xqe $(OPTIONS) \ + | cut -d ' ' -f 7-10,13,15-40 >> STATS +@@ -233,7 +231,6 @@ + tqe$(EXE): tqe_g$(EXE) Makefile + @rm -f $@ + cp $< $@ +- -$(STRIP) $@ + @ls -l $@ + @echo `size $@` `wc -c $@` tqe $(OPTIONS) \ + | cut -d ' ' -f 7-10,13,15-40 >> STATS +@@ -245,7 +242,6 @@ + t1qe$(EXE): t1qe_g$(EXE) Makefile + @rm -f $@ + cp $< $@ +- -$(STRIP) $@ + @ls -l $@ + @echo `size $@` `wc -c $@` t1qe $(OPTIONS) \ + | cut -d ' ' -f 7-10,13,15-40 >> STATS +@@ -478,12 +474,12 @@ + $(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) ++ $(INSTALL) -m 755 xqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) + else + ifdef CONFIG_TINY +- $(INSTALL) -m 755 -s tqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) ++ $(INSTALL) -m 755 tqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) + else +- $(INSTALL) -m 755 -s qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) ++ $(INSTALL) -m 755 qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) + endif + endif + ln -sf qemacs$(EXE) $(DESTDIR)$(prefix)/bin/qe$(EXE) +@@ -493,7 +489,7 @@ + $(INSTALL) -m 644 kmaps ligatures $(DESTDIR)$(datadir)/qe + $(INSTALL) -m 644 qe.1 $(DESTDIR)$(mandir)/man1 + ifdef CONFIG_HTML +- $(INSTALL) -m 755 -s html2png$(EXE) $(DESTDIR)$(prefix)/bin ++ $(INSTALL) -m 755 html2png$(EXE) $(DESTDIR)$(prefix)/bin + endif + + uninstall: diff --git a/app-editors/qemacs/metadata.xml b/app-editors/qemacs/metadata.xml new file mode 100644 index 000000000000..a725e273d20d --- /dev/null +++ b/app-editors/qemacs/metadata.xml @@ -0,0 +1,38 @@ + + + + + emacs@gentoo.org + Gentoo Emacs project + + + QEmacs (for Quick Emacs) is a very small but powerful text editor. It has + the following features: + * Full screen editor with an Emacs look and feel with all Emacs common + features: multi-buffer, multi-window, command mode, universal argument, + keyboard macros, config file with C like syntax, minibuffer with + completion and history. + * Can edit files of hundreds of megabytes quickly by using a highly + optimized internal representation and by mmaping the file. + * Full UTF8 support, including bidirectional editing respecting the Unicode + bidi algorithm. Arabic and Indic scripts handling (in progress). + * WYSIWYG HTML/XML/CSS2 mode graphical editing. Also supports lynx like + rendering on VT100 terminals. WYSIWYG DocBook mode based on XML/CSS2 + renderer. + * C mode: coloring with immediate update. Emacs like auto-indent. + * Shell mode: colorized VT100 emulation so that your shell work exactly as + you expect. You can run interactive terminal apps directly in the process + buffer: mc, MenuConfig, or even qemacs itself! Compile mode with + next/prev error. + * Input methods for most languages, including Chinese (input methods come + from the Yudit editor). + * Hexadecimal editing mode with insertion and block commands. Unicode hexa + editing of UTF8 files also supported. + * Works on any VT100 terminals without termcap. UTF8 VT100 support included + with double width glyphs. + * X11 support. Support multiple proportionnal fonts at the same time (as + XEmacs). + * Small! Full version is about 150KB. Smaller custom versions can be built + by removing modules. + + 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..e2b107ccb13f --- /dev/null +++ b/app-editors/qemacs/qemacs-0.4.1_pre20150916.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="QEmacs is a very small but powerful UNIX editor" +HOMEPAGE="https://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 +} diff --git a/app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild b/app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild new file mode 100644 index 000000000000..33bd0f7ba89a --- /dev/null +++ b/app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="QEmacs is a very small but powerful UNIX editor" +HOMEPAGE="https://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 + X? ( x11-base/xorg-proto )" + +S="${WORKDIR}/${PN}" + +src_prepare() { + eapply "${FILESDIR}/${P}-Makefile.patch" + eapply "${FILESDIR}/${P}-nostrip.patch" + eapply_user + + # Change the manpage to reference a /real/ file instead of just an + # approximation. Purely cosmetic! + eapply "${FILESDIR}/${P}-manpage.patch" + sed -i -e "s:@PF@:${PF}:" qe.1 || die +} + +src_configure() { + # 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_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 +} -- cgit v1.2.3