mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- Update to 0.3.1
PR: ports/107995 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
000cebd64d
commit
0616a86b3c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182958
@ -6,22 +6,26 @@
|
||||
#
|
||||
|
||||
PORTNAME= qemacs
|
||||
PORTVERSION= 0.3.p.12
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.3.1
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES= http://fabrice.bellard.free.fr/qemacs/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p./pre/}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= QEmacs (for Quick Emacs) is a very small but powerful UNIX editor
|
||||
|
||||
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
||||
COMMENT= Quick Emacs - a very small but powerful UNIX editor
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_XLIB= yes
|
||||
MAKE_ARGS+= CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --prefix="${PREFIX}" --make="${GMAKE}" --cc="${CC}" \
|
||||
--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}"
|
||||
|
||||
DATADIR= ${PREFIX}/share/qe
|
||||
|
||||
MAN1= qe.1
|
||||
MLINKS= qe.1 qemacs.1
|
||||
PORTDOCS= qe-doc.html
|
||||
PLIST_FILES= bin/html2png bin/qe bin/qemacs \
|
||||
%%DATADIR%%/kmaps %%DATADIR%%/ligatures
|
||||
PLIST_DIRS= %%DATADIR%%
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -29,13 +33,45 @@ MAN1= qe.1
|
||||
IGNORE= crashes on startup
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_PNG)
|
||||
CONFIGURE_ARGS+= --disable-png
|
||||
.else
|
||||
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
||||
CFLAGS+= `libpng-config --I_opts`
|
||||
LDFLAGS= `libpng-config --L_opts`
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_X11)
|
||||
PKGNAMESUFFIX= -nox11
|
||||
CONFIGURE_ARGS+= --disable-x11
|
||||
.else
|
||||
USE_XLIB= yes
|
||||
CFLAGS+= -I${X11BASE}/include
|
||||
LDFLAGS+= -L${X11BASE}/lib
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's,HOST_CC,CC,g' ${WRKSRC}/Makefile
|
||||
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|-Wall -g|-Wall|g ; \
|
||||
s|-m.*386||g ; \
|
||||
s|-ldl||g ; \
|
||||
s|-L/usr/X11R6/lib||g ; \
|
||||
s|make -C|$$(MAKE) -C|g ; \
|
||||
s|HOST_CC|CC|g'
|
||||
@${REINPLACE_CMD} -e 's|/usr/share/doc/qemacs/|${DOCSDIR}/|g ; \
|
||||
s|README.gz|qe-doc.html|g' ${WRKSRC}/qe.1
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}; ${INSTALL_PROGRAM} qe html2png ${PREFIX}/bin
|
||||
${MKDIR} ${DATADIR:S/qemacs/qe/}
|
||||
cd ${WRKSRC}; ${INSTALL_DATA} kmaps ligatures ${DATADIR:S/qemacs/qe/}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/html2png ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/qe ${PREFIX}/bin
|
||||
${LN} -sf qe ${PREFIX}/bin/qemacs
|
||||
${INSTALL_MAN} ${WRKSRC}/qe.1 ${MANPREFIX}/man/man1
|
||||
@${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/kmaps ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ligatures ${DATADIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/qe-doc.html ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (qemacs-0.3pre12.tar.gz) = 9768b5439ab73d185e18503b0dbf337f
|
||||
SHA256 (qemacs-0.3pre12.tar.gz) = b9b00421bc463247cd77d17fc425f065069e9aaeb29894daf0cb08b31594a15f
|
||||
SIZE (qemacs-0.3pre12.tar.gz) = 775218
|
||||
MD5 (qemacs-0.3.1.tar.gz) = 74d85dee9861d494bf1f9c53bbc85298
|
||||
SHA256 (qemacs-0.3.1.tar.gz) = a3db57e09729d8c83be5ff9ab028ece173d8f5f10aaf61ca41f88aecb64996c7
|
||||
SIZE (qemacs-0.3.1.tar.gz) = 809124
|
||||
|
@ -1,35 +0,0 @@
|
||||
--- Makefile.orig Thu May 2 02:27:40 2002
|
||||
+++ Makefile Fri Nov 24 15:53:28 2006
|
||||
@@ -42,17 +42,17 @@
|
||||
#
|
||||
CONFIG_PNG_OUTPUT=y
|
||||
|
||||
-HOST_CC=gcc
|
||||
-CC=$(HOST_CC)
|
||||
+HOST_CC?=gcc
|
||||
+CC?=$(HOST_CC)
|
||||
PROFILE=
|
||||
-CFLAGS=-Wall -O2 -g $(PROFILE)
|
||||
+CFLAGS?=-Wall -O2 -g $(PROFILE)
|
||||
#CFLAGS+=-fomit-frame-pointer
|
||||
#CPU dependent flags
|
||||
-CFLAGS+=-m386 -malign-functions=0
|
||||
-LDFLAGS= $(PROFILE)
|
||||
+#CFLAGS+=-m386 -malign-functions=0
|
||||
+LDFLAGS?= $(PROFILE)
|
||||
STRIP=strip -s -R .comment -R .note
|
||||
DEFINES=
|
||||
-prefix=/usr/local
|
||||
+prefix?=/usr/local
|
||||
|
||||
########################################################
|
||||
# do not modify after this
|
||||
@@ -136,7 +136,7 @@
|
||||
DEFINES+= -DCONFIG_XFT
|
||||
LIBS+=-lXft
|
||||
endif
|
||||
-LIBS+= -L/usr/X11R6/lib -lXext -lX11
|
||||
+LIBS+= -L$(X11BASE)/lib -lXext -lX11
|
||||
endif
|
||||
|
||||
ifdef CONFIG_HTML
|
11
editors/qemacs/files/patch-charset.c
Normal file
11
editors/qemacs/files/patch-charset.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- charset.c.orig Tue Apr 22 07:01:42 2003
|
||||
+++ charset.c Thu Jan 18 13:56:10 2007
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
QECharset *first_charset = NULL;
|
||||
|
||||
-extern QECharset charset_7bit;
|
||||
+static QECharset charset_7bit;
|
||||
|
||||
/* specific tables */
|
||||
static unsigned short table_idem[256];
|
11
editors/qemacs/files/patch-configure
Normal file
11
editors/qemacs/files/patch-configure
Normal file
@ -0,0 +1,11 @@
|
||||
--- configure.orig Tue Apr 22 07:01:43 2003
|
||||
+++ configure Thu Jan 18 12:39:56 2007
|
||||
@@ -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
|
11
editors/qemacs/files/patch-tty.c
Normal file
11
editors/qemacs/files/patch-tty.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- tty.c.orig Tue Apr 22 07:01:42 2003
|
||||
+++ tty.c Thu Jan 18 13:56:41 2007
|
||||
@@ -70,7 +70,7 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
-extern QEDisplay tty_dpy;
|
||||
+static QEDisplay tty_dpy;
|
||||
|
||||
static int term_init(QEditScreen *s, int w, int h)
|
||||
{
|
11
editors/qemacs/files/patch-x11.c
Normal file
11
editors/qemacs/files/patch-x11.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- x11.c.orig Tue Apr 22 07:01:42 2003
|
||||
+++ x11.c Thu Jan 18 13:57:10 2007
|
||||
@@ -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;
|
@ -1,24 +1,23 @@
|
||||
QEmacs has features other big editors lack:
|
||||
* 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 without being slow by using a highly
|
||||
optimized internal representation and by mmaping the file.
|
||||
* Full Unicode support, including multi charset handling (8859-x, UTF8, SJIS,
|
||||
EUC-JP, ...) and 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. 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 is also supported.
|
||||
* Works on any VT100 terminals without termcap. UTF8 VT100 support included
|
||||
with double width glyphs.
|
||||
* Small! Full version (including HTML/XML/CSS2/DocBook rendering and all
|
||||
charsets): 200KB big. Basic version (without bidir/unicode
|
||||
scripts/input/X11/C/Shell/HTML/dired): 49KB.
|
||||
* 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 without being slow 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).
|
||||
* C mode: coloring with immediate update. Emacs like auto-indent.
|
||||
* Shell mode: colorized VT100 emulation so that your shell work exactly as
|
||||
you expect. 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). X Input methods supported. Xft extension supported for anti
|
||||
aliased font display.
|
||||
|
||||
WWW: http://fabrice.bellard.free.fr/qemacs/
|
||||
|
@ -1,5 +0,0 @@
|
||||
bin/html2png
|
||||
bin/qe
|
||||
share/qe/kmaps
|
||||
share/qe/ligatures
|
||||
@dirrm share/qe
|
Loading…
Reference in New Issue
Block a user