pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/tex-fixme DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b78790740e86
branches:  trunk
changeset: 570257:b78790740e86
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 27 16:14:26 2010 +0000

description:
DESTDIR support.

diffstat:

 print/tex-fixme/Makefile |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 17d5a8bdc50c -r b78790740e86 print/tex-fixme/Makefile
--- a/print/tex-fixme/Makefile  Wed Jan 27 16:06:46 2010 +0000
+++ b/print/tex-fixme/Makefile  Wed Jan 27 16:14:26 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/07/22 09:01:44 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/27 16:14:26 joerg Exp $
 
 DISTNAME=      fixme
 PKGNAME=       tex-${DISTNAME}-3.2
@@ -10,19 +10,22 @@
 HOMEPAGE=      http://tug.ctan.org/tex-archive/macros/latex/contrib/fixme/
 COMMENT=       Insert "fixme" notes into draft documents
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DIST_SUBDIR=   ${PKGNAME}
 
 .include "../../print/teTeX/module.mk"
 
+INSTALLATION_DIRS+=    ${PKG_LOCALTEXMFPREFIX}/doc/latex/fixme \
+                       ${PKG_LOCALTEXMFPREFIX}/tex/latex/fixme
+
 do-build:
        cd ${WRKSRC} && latex fixme.ins
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/doc/latex/fixme
        ${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/README ${WRKSRC}/fixme.pdf \
-               ${WRKSRC}/fixme.el ${PKG_LOCALTEXMFPREFIX}/doc/latex/fixme
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/fixme
+           ${WRKSRC}/fixme.el ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/doc/latex/fixme
        ${INSTALL_DATA} ${WRKSRC}/fixme.sty \
-               ${PKG_LOCALTEXMFPREFIX}/tex/latex/fixme
+           ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/fixme
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index