ports/107995: Update port: editors/qemacs to 0.3.1

KATO Tsuguru tkato432 at yahoo.com
Tue Jan 16 17:10:22 UTC 2007


>Number:         107995
>Category:       ports
>Synopsis:       Update port: editors/qemacs to 0.3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 16 17:10:22 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p26 i386
>Organization:
>Environment:
>Description:
- Update to version 0.3.1

Remove file:
files/patch-Makefile
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/editors/qemacs/Makefile editors/qemacs/Makefile
--- /usr/ports/editors/qemacs/Makefile	Wed Dec 20 13:08:49 2006
+++ editors/qemacs/Makefile	Thu Jan 11 02:16:31 2007
@@ -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 at 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 @@
 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' ${WRKSRC}/Makefile
+	@${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>
diff -urN /usr/ports/editors/qemacs/distinfo editors/qemacs/distinfo
--- /usr/ports/editors/qemacs/distinfo	Sun Jan 22 22:03:41 2006
+++ editors/qemacs/distinfo	Wed Jan 10 23:34:02 2007
@@ -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
diff -urN /usr/ports/editors/qemacs/files/patch-Makefile editors/qemacs/files/patch-Makefile
--- /usr/ports/editors/qemacs/files/patch-Makefile	Sat Nov 25 15:21:25 2006
+++ editors/qemacs/files/patch-Makefile	Thu Jan  1 09:00:00 1970
@@ -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
diff -urN /usr/ports/editors/qemacs/pkg-descr editors/qemacs/pkg-descr
--- /usr/ports/editors/qemacs/pkg-descr	Fri Feb 21 06:20:06 2003
+++ editors/qemacs/pkg-descr	Thu Jan 11 02:11:32 2007
@@ -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/
diff -urN /usr/ports/editors/qemacs/pkg-plist editors/qemacs/pkg-plist
--- /usr/ports/editors/qemacs/pkg-plist	Fri Feb 21 06:20:06 2003
+++ editors/qemacs/pkg-plist	Thu Jan  1 09:00:00 1970
@@ -1,5 +0,0 @@
-bin/html2png
-bin/qe
-share/qe/kmaps
-share/qe/ligatures
- at dirrm share/qe
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list