summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/dictem/Makefile18
-rw-r--r--textproc/dictem/files/patch-compile.el16
2 files changed, 24 insertions, 10 deletions
diff --git a/textproc/dictem/Makefile b/textproc/dictem/Makefile
index 299b386e9622..0cde204e4012 100644
--- a/textproc/dictem/Makefile
+++ b/textproc/dictem/Makefile
@@ -10,6 +10,8 @@ PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER= max.n.boyarov@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 @@ PLIST_DIRS+= ${LISPDIR}
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,19 @@ LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/dictem
.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
diff --git a/textproc/dictem/files/patch-compile.el b/textproc/dictem/files/patch-compile.el
new file mode 100644
index 000000000000..29af6a1f931b
--- /dev/null
+++ b/textproc/dictem/files/patch-compile.el
@@ -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))
++