pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/98e88eec70b6
branches:  trunk
changeset: 571417:98e88eec70b6
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Feb 12 00:00:45 2010 +0000

description:
DESTDIR support

diffstat:

 print/cjk-lyx/Makefile         |   4 +++-
 print/foomatic-ppds/Makefile   |  10 +++++++---
 print/ja-jsclasses/Makefile    |  11 +++++++----
 print/rlpr/Makefile            |   4 +++-
 print/rtf2latex/Makefile       |   6 +++++-
 print/rtf2latex/files/Makefile |  12 ++++++------
 print/rtf2latex2e/Makefile     |  14 ++++++++------
 7 files changed, 39 insertions(+), 22 deletions(-)

diffs (186 lines):

diff -r 8b6417407161 -r 98e88eec70b6 print/cjk-lyx/Makefile
--- a/print/cjk-lyx/Makefile    Thu Feb 11 22:57:40 2010 +0000
+++ b/print/cjk-lyx/Makefile    Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2010/02/10 19:17:44 joerg Exp $
+# $NetBSD: Makefile,v 1.31 2010/02/12 00:00:45 joerg Exp $
 
 DISTNAME=      lyx-${LYX_VERS}
 PKGNAME=       cjk-${DISTNAME}
@@ -15,6 +15,8 @@
 HOMEPAGE=      http://cellular.phys.pusan.ac.kr/cjk.html
 COMMENT=       Multibyte version of LyX
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 LYX_VERS=      1.2.0
 
 CONFLICTS=     lyx-[0-9]*
diff -r 8b6417407161 -r 98e88eec70b6 print/foomatic-ppds/Makefile
--- a/print/foomatic-ppds/Makefile      Thu Feb 11 22:57:40 2010 +0000
+++ b/print/foomatic-ppds/Makefile      Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2009/06/16 15:25:32 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2010/02/12 00:06:13 joerg Exp $
+
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 .include "Makefile.common"
 
@@ -28,9 +30,11 @@
          ${FIND} ppd -type f -print | ${SORT} -u |                     \
          ${SED} -e "s|^|share/foomatic/|" );
 
-do-build:      # nothing
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    share/foomatic
 
 do-install:
-       ${CP} -R ${WRKSRC}/share/ppd ${PREFIX}/share/foomatic/ppd
+       ${CP} -R ${WRKSRC}/share/ppd ${DESTDIR}${PREFIX}/share/foomatic
 
 .include "../../mk/bsd.pkg.mk"
diff -r 8b6417407161 -r 98e88eec70b6 print/ja-jsclasses/Makefile
--- a/print/ja-jsclasses/Makefile       Thu Feb 11 22:57:40 2010 +0000
+++ b/print/ja-jsclasses/Makefile       Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2009/09/02 08:34:14 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2010/02/12 00:04:36 joerg Exp $
 
 DISTNAME=      jsclasses-071024
 PKGNAME=       ja-${DISTNAME}
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://oku.edu.mie-u.ac.jp/~okumura/jsclasses/
 COMMENT=       New document class files for pLaTeX
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      ja-ptex-bin>=3.1.9:../../print/ja-ptex-bin
 
 WRKSRC=                ${WRKDIR}/jsclasses
@@ -27,9 +29,10 @@
        @cd ${WRKSRC}; \
        ${MV} ../*.* .
 
+INSTALLATION_DIRS+=    ${PLATEX_DIR}/js
+
 do-install:
-       @cd ${WRKSRC}; \
-       ${INSTALL_DATA_DIR} ${PLATEX_DIR}/js; \
-       ${INSTALL_DATA} *.cls *.dtx *.ins *.sty ${PLATEX_DIR}/js
+       @cd ${WRKSRC} && \
+       ${INSTALL_DATA} *.cls *.dtx *.ins *.sty ${DESTDIR}${PLATEX_DIR}/js
 
 .include "../../mk/bsd.pkg.mk"
diff -r 8b6417407161 -r 98e88eec70b6 print/rlpr/Makefile
--- a/print/rlpr/Makefile       Thu Feb 11 22:57:40 2010 +0000
+++ b/print/rlpr/Makefile       Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/10/04 21:56:34 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2010/02/12 00:08:02 joerg Exp $
 
 DISTNAME=              rlpr-2.06
 PKGREVISION=           2
@@ -9,6 +9,8 @@
 HOMEPAGE=              http://truffula.com/rlpr/
 COMMENT=               lpr work-alike to print directly to remote printer
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         YES
 
 .include "../../devel/gettext-lib/buildlink3.mk"
diff -r 8b6417407161 -r 98e88eec70b6 print/rtf2latex/Makefile
--- a/print/rtf2latex/Makefile  Thu Feb 11 22:57:40 2010 +0000
+++ b/print/rtf2latex/Makefile  Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/03/04 21:30:31 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2010/02/12 00:08:35 joerg Exp $
 
 DISTNAME=      rtf2LaTeX.1.5
 PKGNAME=       rtf2latex-1.5
@@ -8,6 +8,8 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 COMMENT=       Filter that converts RTF (MS's Rich Text Format) into LaTeX
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/rtf2LaTeX
 NO_CONFIGURE=  yes
 
@@ -20,4 +22,6 @@
 MAKE_ENV+=     XCFLAGS="${CPPFLAGS} -DSYSV" CC=${CC:Q}
 .endif
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
 .include "../../mk/bsd.pkg.mk"
diff -r 8b6417407161 -r 98e88eec70b6 print/rtf2latex/files/Makefile
--- a/print/rtf2latex/files/Makefile    Thu Feb 11 22:57:40 2010 +0000
+++ b/print/rtf2latex/files/Makefile    Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/12/30 18:00:03 tron Exp $
+# $NetBSD: Makefile,v 1.3 2010/02/12 00:08:35 joerg Exp $
 
 SHELL=/bin/sh
 INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM}
@@ -25,7 +25,7 @@
 
 # This is where executables, man-pages and support files are installed
 BINDIR = ${PREFIX}/bin
-MANDIR = ${PREFIX}/man/man1
+MANDIR = ${PREFIX}/${PKGMANDIR}/man1
 RTFDIR = ${PREFIX}/share/rtf
 
 ############### No configuration parameters below this line ###############
@@ -45,10 +45,10 @@
 rtf2LaTeX: $(LATEXOBJS)
        $(LD) $(LDFLAGS) -o $@ $(LATEXOBJS)
 install: rtf2LaTeX $(DOCFILS) $(SUPPORT)
-       $(INSTALL_PROGRAM) rtf2LaTeX $(BINDIR)
-       $(INSTALL_MAN) rtf2LaTeX.man $(MANDIR)/rtf2LaTeX.1
-       -mkdir $(RTFDIR)
-       $(INSTALL_DATA) ansi.code mac.code german.land english.land $(RTFDIR)
+       $(INSTALL_PROGRAM) rtf2LaTeX ${DESTDIR}$(BINDIR)
+       $(INSTALL_MAN) rtf2LaTeX.man ${DESTDIR}$(MANDIR)/rtf2LaTeX.1
+       -mkdir ${DESTDIR}$(RTFDIR)
+       $(INSTALL_DATA) ansi.code mac.code german.land english.land ${DESTDIR}$(RTFDIR)
 tags:
        etags -et *.[ch]
 clean::
diff -r 8b6417407161 -r 98e88eec70b6 print/rtf2latex2e/Makefile
--- a/print/rtf2latex2e/Makefile        Thu Feb 11 22:57:40 2010 +0000
+++ b/print/rtf2latex2e/Makefile        Fri Feb 12 00:00:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/05/26 02:13:23 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2010/02/12 00:10:15 joerg Exp $
 #
 
 # fix install so it uses ${prefix}
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://sourceforge.net/projects/rtf2latex2e/
 COMMENT=       RTF to LaTeX2e converter
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 # ImageMagick is an optional component
 
 WRKSRC=        ${WRKDIR}/rtf2latex2eUnix-1.0fc1/
@@ -25,11 +27,11 @@
 INSTALLATION_DIRS+=    bin share/doc/rtf2latex2e share/rtf2latex2e
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/rtf2latex2e.bin ${PREFIX}/bin/rtf2latex2e
-       ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/rtf2latex2e/
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/rtf2latex2e/
-       ${INSTALL_DATA} ${WRKSRC}/doc/rtf2LaTeX2eDoc.html ${PREFIX}/share/doc/rtf2latex2e/
-       cd ${WRKSRC} && pax -rw pref ${PREFIX}/share/rtf2latex2e
+       ${INSTALL_PROGRAM} ${WRKSRC}/rtf2latex2e.bin ${DESTDIR}${PREFIX}/bin/rtf2latex2e
+       ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${PREFIX}/share/doc/rtf2latex2e/
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/rtf2latex2e/
+       ${INSTALL_DATA} ${WRKSRC}/doc/rtf2LaTeX2eDoc.html ${DESTDIR}${PREFIX}/share/doc/rtf2latex2e/
+       cd ${WRKSRC} && pax -rw pref ${DESTDIR}${PREFIX}/share/rtf2latex2e
 
 # install other docs and examples too?
 



Home | Main Index | Thread Index | Old Index