summaryrefslogtreecommitdiff
path: root/devel/semi
diff options
context:
space:
mode:
authoruebayasi <uebayasi>2008-10-11 09:31:54 +0000
committeruebayasi <uebayasi>2008-10-11 09:31:54 +0000
commitb96889b1354fc2db619e890c37d47726128607e1 (patch)
tree28f89f081daec07805c1f982f0bc63a420c005ba /devel/semi
parent82bb21f245fe7a2dee3f10a3aec11ffd03c27e07 (diff)
downloadpkgsrc-b96889b1354fc2db619e890c37d47726128607e1.tar.gz
Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the version matching EMACS_TYPE set by users. Be DEPENDS to it. This should address pkg/37146 by Aleksey Cheusov. While here convert some emacs lisp packages to user-destdir.
Diffstat (limited to 'devel/semi')
-rw-r--r--devel/semi/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/devel/semi/Makefile b/devel/semi/Makefile
index 0f0f6be6903..265747ff708 100644
--- a/devel/semi/Makefile
+++ b/devel/semi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2007/11/12 05:34:10 uebayasi Exp $
+# $NetBSD: Makefile,v 1.27 2008/10/11 09:31:55 uebayasi Exp $
#
DISTNAME= semi-1.14.6
@@ -18,6 +18,10 @@ COMMENT= Emacs lisp library to provide MIME feature
BUILD_DEPENDS+= qkc-[0-9]*:../../converters/qkc
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS+= ${EMACS_LISPPREFIX:C|^${PREFIX}/||}/semi \
+ ${EMACS_INFOPREFIX:C|^${PREFIX}/||}
+
BUILD_TARGET= ${BUILD_TARGET.${EMACS_FLAVOR}}
INSTALL_TARGET= ${INSTALL_TARGET.${EMACS_FLAVOR}}
MAKEFLAGS= ${MAKEFLAGS.${EMACS_FLAVOR}}
@@ -43,15 +47,24 @@ post-build:
makeinfo --force --no-validate $${i}.texi; \
done
+do-install: plist
+ cd ${WRKSRC}; \
+ grep -v '^@' ${PLIST} | grep '/site-lisp/semi/' | \
+ while read file; do \
+ file=$$( basename $$file ); \
+ ${INSTALL_DATA} $$file \
+ ${DESTDIR}${EMACS_LISPPREFIX}/semi/$$file; \
+ done
+
post-install:
cd ${WRKSRC}; for f in mime-ui-*.info mime-*.info-[0-9]*; do \
${TEST} ! -f "$$f" || \
- ${INSTALL_DATA} "$$f" ${EMACS_INFOPREFIX}; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${EMACS_INFOPREFIX}; \
done
.include "options.mk"
-.include "../../mk/emacs.mk"
+.include "../../editors/emacs/modules.mk"
.include "../../devel/apel/buildlink3.mk"
.include "../../devel/flim/buildlink3.mk"