ports/184125: [maintainer-update] Fix textproc/dictem build
Max N. Boyarov
max.n.boyarov at gmail.com
Wed Nov 20 19:50:02 UTC 2013
>Number: 184125
>Category: ports
>Synopsis: [maintainer-update] Fix textproc/dictem build
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 20 19:50:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Max N. Boyarov
>Release: 10.0-BETA3
>Organization:
>Environment:
FreeBSD deimos 10.0-BETA3 FreeBSD 10.0-BETA3 #2 8ca6127(stable_10): Mon Nov 4 22:07:29 FET 2013 zotrix at deimos:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
1. Fix textproc/dictem-xemacs21-mule slave port build
2. Add LICENSE
3. Add STAGE support
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 334444)
+++ Makefile (working copy)
@@ -10,6 +10,8 @@
MAINTAINER= max.n.boyarov at gmail.com
COMMENT= DictEm is a dict client for [X]Emacs
+LICENSE= GPLv2
+
RUN_DEPENDS= ${LOCALBASE}/bin/dict:${PORTSDIR}/textproc/dict
USE_EMACS= yes
@@ -25,7 +27,6 @@
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS+= README AUTHORS NEWS COPYING TODO
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${EMACS_NAME} == "xemacs"
@@ -35,22 +36,20 @@
.endif
do-build:
-.for f in ${SRC_EL}
- ${EMACS_CMD} --no-site-file --no-init-file \
- -batch -L ${WRKSRC} \
- -f batch-byte-compile ${WRKSRC}/${f}
-.endfor
+ cd ${WRKSRC} && ${EMACS_CMD} --no-site-file --no-init-file -batch \
+ -l compile.el -f compile-dictem -- \
+ ${SRC_EL}
do-install:
- ${MKDIR} ${PREFIX}/${LISPDIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${LISPDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${SRC_EL} ${SRC_EL:S/.el$/.elc/} \
- ${PREFIX}/${LISPDIR}/
+ ${STAGEDIR}${PREFIX}/${LISPDIR}/
post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
Index: files/patch-compile.el
===================================================================
--- files/patch-compile.el (revision 0)
+++ files/patch-compile.el (working copy)
@@ -0,0 +1,16 @@
+--- /dev/null 2013-11-20 22:00:00.000000000 +0300
++++ compile.el 2013-11-20 21:34:57.112822385 +0300
+@@ -0,0 +1,13 @@
++;; -*- emacs-lisp -*-
++
++;;
++;; Help ports system compile for emacs and xemacs
++;;
++
++(require 'bytecomp)
++
++(add-to-list 'load-path (expand-file-name "."))
++
++(defun compile-dictem ()
++ (mapcar 'byte-compile-file command-line-args-left))
++
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list