summaryrefslogtreecommitdiff
path: root/devel/semi
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-30 23:39:23 +0000
committerjlam <jlam@pkgsrc.org>2006-03-30 23:39:23 +0000
commit70800110fd220f9a31482860751c1b1440cbf5f7 (patch)
tree9479c35c5499d6755832fbd9c21745e2e32342a9 /devel/semi
parenteff0244b187fb994fde0c10d2b0c48c3e6cfa219 (diff)
downloadpkgsrc-70800110fd220f9a31482860751c1b1440cbf5f7.tar.gz
* Install info files into ${EMACS_INFOPREFIX}, which is the correct
location for both emacs and xemacs. * List the info files directly in the PLIST. * Use EMACS_MODULES to deal with a possible xemacs-packages dependency.
Diffstat (limited to 'devel/semi')
-rw-r--r--devel/semi/Makefile33
-rw-r--r--devel/semi/PLIST4
2 files changed, 21 insertions, 16 deletions
diff --git a/devel/semi/Makefile b/devel/semi/Makefile
index 47929dd541a..a6c88b9e639 100644
--- a/devel/semi/Makefile
+++ b/devel/semi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2006/03/05 16:27:25 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2006/03/30 23:39:23 jlam Exp $
#
# TODO:
# * Control ${WRKSRC}/SEMI-ELS explicitly, otherwise Emacs/XEmacs founds
@@ -20,8 +20,9 @@ MAINTAINER= uebayasi@NetBSD.org
HOMEPAGE= http://www.m17n.org/SEMI/
COMMENT= Emacs lisp library to provide MIME feature
-DEPENDS+= ${EMACS_PKGNAME_PREFIX}flim>=1.14.2:../../devel/flim
BUILD_DEPENDS+= qkc-[0-9]*:../../converters/qkc
+DEPENDS+= ${EMACS_PKGNAME_PREFIX}flim>=1.14.2:../../devel/flim
+EMACS_MODULES= base
.include "../../mk/emacs.mk"
@@ -30,27 +31,29 @@ DEPENDS+= ${EMACS_PKGNAME_PREFIX}apel>=9.22:../../devel/apel
BUILD_TARGET= elc
INSTALL_TARGET= install
.else # ${EMACS_FLAVOR} == "xemacs"
-DEPENDS+= xemacs-packages-[0-9]*:../../editors/xemacs-packages
BUILD_TARGET= package
INSTALL_TARGET= install-package
MAKEFLAGS+= PACKAGEDIR=${EMACS_LISPPREFIX:C|/lisp$||}
.endif
+EVAL_PREFIX+= QKC_PREFIX=qkc
USE_TOOLS+= makeinfo
-INFO_FILES= mime-ui-en.info mime-ui-ja.info
-
-pre-build:
- @cd ${WRKSRC}; \
- for i in mime-ui-en mime-ui-ja; do \
- ${RM} -f $${i}.info; \
- ${CP} $${i}.texi $${i}.texi.orig; \
- ${LOCALBASE}/bin/qkc -Oeu $${i}.texi.orig >$${i}.texi; \
- ${MAKEINFO} --force --no-validate --no-split $${i}.texi; \
+INFO_FILES= # PLIST
+
+.include "options.mk"
+
+post-build:
+ @cd ${WRKSRC}; for i in mime-ui-en mime-ui-ja; do \
+ ${RM} -f $${i}.info*; \
+ ${CP} $${i}.texi $${i}.texi.orig; \
+ ${QKC_PREFIX}/bin/qkc -Oeu $${i}.texi.orig >$${i}.texi; \
+ makeinfo --force --no-validate $${i}.texi; \
done
post-install:
- ${INSTALL_DATA} ${WRKSRC}/mime-ui-en.info ${PREFIX}/info
- ${INSTALL_DATA} ${WRKSRC}/mime-ui-ja.info ${PREFIX}/info
+ cd ${WRKSRC}; for f in mime-ui-*.info mime-*.info-[0-9]*; do \
+ ${TEST} ! -f "$$f" || \
+ ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \
+ done
-.include "options.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/semi/PLIST b/devel/semi/PLIST
index c2e022d458b..911d261b883 100644
--- a/devel/semi/PLIST
+++ b/devel/semi/PLIST
@@ -1,4 +1,6 @@
-@comment $NetBSD: PLIST,v 1.7 2005/09/17 16:41:23 uebayasi Exp $
+@comment $NetBSD: PLIST,v 1.8 2006/03/30 23:39:23 jlam Exp $
+${EMACS_INFOPREFIX}/mime-ui-en.info
+${EMACS_INFOPREFIX}/mime-ui-ja.info
${FOR_xemacs214}${EMACS_LISPPREFIX}/semi/auto-autoloads.el
${FOR_xemacs214}${EMACS_LISPPREFIX}/semi/auto-autoloads.elc
${FOR_xemacs214}${EMACS_LISPPREFIX}/semi/custom-load.el