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 | 34004f51e031966e3fbd210678c5083e196bf3e6 (patch) | |
tree | 28f89f081daec07805c1f982f0bc63a420c005ba /chat/irchat-pj/Makefile | |
parent | 6bcc8c586e8d598300da44f38c8ec67a571ea234 (diff) | |
download | pkgsrc-34004f51e031966e3fbd210678c5083e196bf3e6.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 'chat/irchat-pj/Makefile')
-rw-r--r-- | chat/irchat-pj/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/chat/irchat-pj/Makefile b/chat/irchat-pj/Makefile index 960c9e04f3a..7f6c4d60d00 100644 --- a/chat/irchat-pj/Makefile +++ b/chat/irchat-pj/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2008/01/19 08:52:10 obache Exp $ +# $NetBSD: Makefile,v 1.15 2008/10/11 09:31:54 uebayasi Exp $ DISTNAME= irchat-pj-2.4.24.22 PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME} @@ -12,7 +12,10 @@ MAINTAINER= tech-pkg-ja@jp.NetBSD.org HOMEPAGE= http://gouketsu.net/irchat-pj/ COMMENT= Emacs lisp interface to Internet Relay Chat -.include "../../mk/emacs.mk" +INSTALLATION_DIRS= bin ${EMACS_LISPPREFIX:C|^${PREFIX}/||}/irchat-pj +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../editors/emacs/modules.mk" .if ${EMACS_FLAVOR} == "emacs" INSTALL_TARGET= install @@ -26,4 +29,11 @@ PKG_FAIL_REASON+= "Unknown Emacs flavor" LIBS.SunOS+= -lnsl -lsocket MAKE_ENV+= LIBS=${LIBS:M*:Q} +do-install: + cd ${WRKSRC}; \ + ${INSTALL_PROGRAM} dcc/dcc ${DESTDIR}${PREFIX}/bin; \ + for f in irchat*.el*; do \ + ${INSTALL_DATA} $$f ${DESTDIR}${EMACS_LISPPREFIX}/irchat-pj; \ + done + .include "../../mk/bsd.pkg.mk" |