Bug 184125 - [maintainer-update] Fix textproc/dictem build
Summary: [maintainer-update] Fix textproc/dictem build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 19:50 UTC by max.n.boyarov
Modified: 2013-12-02 15:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.84 KB, patch)
2013-11-20 19:50 UTC, max.n.boyarov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description max.n.boyarov 2013-11-20 19:50:02 UTC
1. Fix textproc/dictem-xemacs21-mule slave port build
2. Add LICENSE
3. Add STAGE support

Fix: Patch attached with submission follows:
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-12-02 15:12:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-12-02 15:12:27 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-12-02 15:12:30 UTC
Author: wg
Date: Mon Dec  2 15:12:22 2013
New Revision: 335504
URL: http://svnweb.freebsd.org/changeset/ports/335504

Log:
  textproc/dictem: fix textproc/dictem-xemacs21-mule slave port build
  
  - Fix textproc/dictem-xemacs21-mule slave port build
  - Add LICENSE (GPLv2)
  - Allow staging
  
  PR:		ports/184125
  Submitted by:	maintainer

Added:
  head/textproc/dictem/files/
  head/textproc/dictem/files/patch-compile.el   (contents, props changed)
Modified:
  head/textproc/dictem/Makefile

Modified: head/textproc/dictem/Makefile
==============================================================================
--- head/textproc/dictem/Makefile	Mon Dec  2 15:07:27 2013	(r335503)
+++ head/textproc/dictem/Makefile	Mon Dec  2 15:12:22 2013	(r335504)
@@ -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}/d
 .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
 

Added: head/textproc/dictem/files/patch-compile.el
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/dictem/files/patch-compile.el	Mon Dec  2 15:12:22 2013	(r335504)
@@ -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))
++
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"