summaryrefslogtreecommitdiff
path: root/graphics/artist
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2008-10-11 09:31:54 +0000
committeruebayasi <uebayasi@pkgsrc.org>2008-10-11 09:31:54 +0000
commit34004f51e031966e3fbd210678c5083e196bf3e6 (patch)
tree28f89f081daec07805c1f982f0bc63a420c005ba /graphics/artist
parent6bcc8c586e8d598300da44f38c8ec67a571ea234 (diff)
downloadpkgsrc-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 'graphics/artist')
-rw-r--r--graphics/artist/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/graphics/artist/Makefile b/graphics/artist/Makefile
index 060f491d63a..786138ca199 100644
--- a/graphics/artist/Makefile
+++ b/graphics/artist/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/03/04 21:29:46 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2008/10/11 09:31:56 uebayasi Exp $
DISTNAME= artist-1.2.6
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
@@ -10,20 +10,21 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.lysator.liu.se/~tab/artist/
COMMENT= Elisp drawing package with mouse and keyboard support
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS+= ${DOCDIR} \
+ ${EMACS_LISPPREFIX:C|^${PREFIX}/||}/artist
+
GNU_CONFIGURE= yes
-.include "../../mk/emacs.mk"
+.include "../../editors/emacs/modules.mk"
-.if ${EMACS_FLAVOR} == "xemacs"
-MAKE_FLAGS+= EMACS=xemacs
-MAKE_FLAGS+= lispdir=${EMACS_LISPPREFIX}/artist
-.endif
+MAKE_FLAGS+= EMACS=${EMACS_FLAVOR} \
+ lispdir=${DESTDIR}${EMACS_LISPPREFIX}/artist
DOCS= BUGS COPYING ChangeLog INSTALL README TODO
-DOCDIR= ${PREFIX}/share/doc/artist
+DOCDIR= share/doc/artist
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DESTDIR}${PREFIX}/${DOCDIR}
.include "../../mk/bsd.pkg.mk"