pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46d7e1f912bf
branches:  trunk
changeset: 570255:46d7e1f912bf
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 27 15:55:58 2010 +0000

description:
DESTDIR support.

diffstat:

 print/tex-abc/Makefile |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 925b6db1d472 -r 46d7e1f912bf print/tex-abc/Makefile
--- a/print/tex-abc/Makefile    Wed Jan 27 15:14:00 2010 +0000
+++ b/print/tex-abc/Makefile    Wed Jan 27 15:55:58 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2009/07/22 09:01:43 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2010/01/27 15:55:58 joerg Exp $
 
 DISTNAME=      abc
 PKGNAME=       tex-${DISTNAME}-1.0
@@ -10,23 +10,25 @@
 HOMEPAGE=      http://tug.ctan.org/tex-archive/macros/latex/contrib/
 COMMENT=       Support ABC music notation in LaTeX
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      abcm2ps-[0-9]*:../../print/abcm2ps
 DEPENDS+=      ps2eps-[0-9]*:../../graphics/ps2eps
 
+.include "../../print/teTeX/module.mk"
 
-.include "../../print/teTeX/module.mk"
+INSTALLATION_DIRS+=    ${PKG_LOCALTEXMFPREFIX}/doc/latex/abc \
+                       ${PKG_LOCALTEXMFPREFIX:Q}/tex/latex/abc
 
 do-build:
        cd ${WRKSRC} && latex abc.ins
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/doc/latex/abc
        ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/abc.pdf \
-               ${PKG_LOCALTEXMFPREFIX}/doc/latex/abc
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/doc/latex/abc
        ${INSTALL_DATA} ${WRKSRC}/example.tex \
-               ${PKG_LOCALTEXMFPREFIX}/doc/latex/abc
-       ${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX:Q}/tex/latex/abc
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/doc/latex/abc
        ${INSTALL_DATA} ${WRKSRC}/abc.sty \
-               ${PKG_LOCALTEXMFPREFIX}/tex/latex/abc
+               ${DESTDIR}${PKG_LOCALTEXMFPREFIX}/tex/latex/abc
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index