diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2008-10-11 09:31:54 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2008-10-11 09:31:54 +0000 |
commit | b887f5681b4a4a2ce89af874eb1f9c822306ac8d (patch) | |
tree | 28f89f081daec07805c1f982f0bc63a420c005ba /inputmethod | |
parent | 5382ccf1d8130e9becd9b52c424e302b2acaf056 (diff) | |
download | pkgsrc-b887f5681b4a4a2ce89af874eb1f9c822306ac8d.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 'inputmethod')
-rw-r--r-- | inputmethod/anthy-elisp/Makefile | 4 | ||||
-rw-r--r-- | inputmethod/iiimecf/Makefile | 4 | ||||
-rw-r--r-- | inputmethod/prime-el/Makefile | 4 | ||||
-rw-r--r-- | inputmethod/skk/Makefile | 19 | ||||
-rw-r--r-- | inputmethod/skk/files/SKK-CFG | 19 | ||||
-rw-r--r-- | inputmethod/tc/Makefile | 4 |
6 files changed, 28 insertions, 26 deletions
diff --git a/inputmethod/anthy-elisp/Makefile b/inputmethod/anthy-elisp/Makefile index 8583b40c14c..ccbe28235cf 100644 --- a/inputmethod/anthy-elisp/Makefile +++ b/inputmethod/anthy-elisp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2008/03/04 15:55:13 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2008/10/11 09:31:57 uebayasi Exp $ .include "../../inputmethod/anthy/Makefile.common" PKGNAME= ${EMACS_PKGNAME_PREFIX}anthy-elisp-${ANTHY_VERSION} @@ -16,7 +16,7 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= EMACS=${EMACS_BIN:Q} EMACS_MODULES+= base leim -.include "../../mk/emacs.mk" +.include "../../editors/emacs/modules.mk" do-build: cd ${WRKSRC}/src-util && ${MAKE} elc-stamp diff --git a/inputmethod/iiimecf/Makefile b/inputmethod/iiimecf/Makefile index 65f06a76944..c9037f2ab11 100644 --- a/inputmethod/iiimecf/Makefile +++ b/inputmethod/iiimecf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2008/03/04 15:55:13 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2008/10/11 09:31:57 uebayasi Exp $ # DISTNAME= IIIMECF-0.6 @@ -23,7 +23,7 @@ do-install: ${INSTALL_DATA} $$f ${DESTDIR}${EMACS_LISPPREFIX}/iiimecf; \ done -.include "../../mk/emacs.mk" +.include "../../editors/emacs/modules.mk" .include "../../editors/mule-ucs/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/prime-el/Makefile b/inputmethod/prime-el/Makefile index 7782a773d7f..b3cc19a824f 100644 --- a/inputmethod/prime-el/Makefile +++ b/inputmethod/prime-el/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/03/02 02:51:51 obache Exp $ +# $NetBSD: Makefile,v 1.2 2008/10/11 09:31:57 uebayasi Exp $ # DISTNAME= prime-el-1.5.1.3 @@ -28,5 +28,5 @@ CONF_FILES+= ${PREFIX}/share/doc/prime/examples/Custom_prime-el.el \ .include "../../devel/apel/buildlink3.mk" .include "../../devel/mell/buildlink3.mk" .include "../../inputmethod/prime/buildlink3.mk" -.include "../../mk/emacs.mk" +.include "../../editors/emacs/modules.mk" .include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/skk/Makefile b/inputmethod/skk/Makefile index b973eb52e02..89939c379c5 100644 --- a/inputmethod/skk/Makefile +++ b/inputmethod/skk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2008/05/30 16:03:17 brook Exp $ +# $NetBSD: Makefile,v 1.18 2008/10/11 09:31:57 uebayasi Exp $ # DISTNAME= ddskk-20080309 @@ -11,32 +11,29 @@ MAINTAINER= uebayasi@NetBSD.org HOMEPAGE= http://openlab.ring.gr.jp/skk/index.html COMMENT= Japanese input methods for Emacs +PKG_DESTDIR_SUPPORT= user-destdir + CONFLICTS= ddskk-[0-9]* EMACS_MODULES+= base leim MAKEFLAGS+= EMACS=${EMACS_BIN:Q} +MAKE_ENV= prefix=${DESTDIR:Q}${PREFIX:Q} \ + EMACS_INFOPREFIX=${DESTDIR:Q}${EMACS_INFOPREFIX:Q} \ + EMACS_LISPPREFIX=${DESTDIR:Q}${EMACS_LISPPREFIX:Q} BUILD_TARGET= elc INFO_FILES= # PLIST -# SKK-CFG was copied from ${FILESDIR} during post-extract. -SUBST_CLASSES+= cfg -SUBST_STAGE.cfg= do-configure -SUBST_FILES.cfg= SKK-CFG -SUBST_SED.cfg= -e 's|@PREFIX@|${PREFIX}|g' \ - -e 's|@EMACS_INFOPREFIX@|${EMACS_INFOPREFIX}|g' \ - -e 's|@EMACS_LISPPREFIX@|${EMACS_LISPPREFIX}|g' - # Substitute directory definitions during do-configure. post-extract: @${MV} ${WRKSRC}/SKK-CFG ${WRKSRC}/SKK-CFG.orig @${CP} ${FILESDIR}/SKK-CFG ${WRKSRC} - @${CHMOD} +w ${WRKSRC}/doc/skk.texi + @${CHMOD} +w ${WRKSRC}/skk-dic.* ${WRKSRC}/doc/skk.texi .include "options.mk" -.include "../../mk/emacs.mk" +.include "../../editors/emacs/modules.mk" .include "../../devel/apel/buildlink3.mk" .include "../../editors/mule-ucs/buildlink3.mk" diff --git a/inputmethod/skk/files/SKK-CFG b/inputmethod/skk/files/SKK-CFG index e483124818e..bb424a3d41c 100644 --- a/inputmethod/skk/files/SKK-CFG +++ b/inputmethod/skk/files/SKK-CFG @@ -1,12 +1,17 @@ -;;; $NetBSD: SKK-CFG,v 1.2 2006/04/08 19:29:52 jlam Exp $ +;;; $NetBSD: SKK-CFG,v 1.3 2008/10/11 09:31:57 uebayasi Exp $ ;;; from inputmethods/ddskk/files/SKK-CFG ;;; NetBSD: SKK-CFG,v 1.1.1.1 2002/09/16 13:20:44 uebayasi Exp ;;; -(setq APEL_SPECIFIC_LISPDIR "@EMACS_LISPPREFIX@/apel") -(setq LISPDIR "@EMACS_LISPPREFIX@") + +(setq pkgsrc-prefix (getenv "prefix")) +(setq pkgsrc-emacs-infoprefix (getenv "EMACS_INFOPREFIX")) +(setq pkgsrc-emacs-lispprefix (getenv "EMACS_LISPPREFIX")) + +(setq APEL_SPECIFIC_LISPDIR (concat pkgsrc-emacs-lispprefix "/apel")) +(setq LISPDIR pkgsrc-emacs-lispprefix) ;;; XXX We avoid *.{el,elc} files installed under .../emacs/2?.?/site-lisp/... -(setq VERSION_SPECIFIC_LISPDIR "@EMACS_LISPPREFIX@") +(setq VERSION_SPECIFIC_LISPDIR pkgsrc-emacs-lispprefix) (setq EMU_PREFIX "emu") -(setq SKK_DATADIR "@PREFIX@/share/skk") -(setq SKK_INFODIR "@EMACS_INFOPREFIX@") -(setq SKK_LISPDIR "@EMACS_LISPPREFIX@/skk") +(setq SKK_DATADIR (concat pkgsrc-prefix "/share/skk")) +(setq SKK_INFODIR pkgsrc-emacs-infoprefix) +(setq SKK_LISPDIR (concat pkgsrc-emacs-lispprefix "/skk")) diff --git a/inputmethod/tc/Makefile b/inputmethod/tc/Makefile index cbf571057ad..d1919ad6f3b 100644 --- a/inputmethod/tc/Makefile +++ b/inputmethod/tc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/06/20 01:09:23 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2008/10/11 09:31:57 uebayasi Exp $ # DISTNAME= tc-2.3.1 @@ -13,7 +13,7 @@ COMMENT= T-Code driver for Emacs PKG_DESTDIR_SUPPORT= user-destdir -.include "../../mk/emacs.mk" +.include "../../editors/emacs/modules.mk" .if ${EMACS_FLAVOR} == "xemacs" CONFIGURE_ARGS+=--with-emacs=xemacs |