pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8fbc59b9c742
branches:  trunk
changeset: 561166:8fbc59b9c742
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 20:41:51 2009 +0000

description:
user-destdir support

diffstat:

 textproc/subtitleripper/Makefile |  20 ++++++++++----------
 textproc/tcl-dom/Makefile        |  18 ++++++++++--------
 2 files changed, 20 insertions(+), 18 deletions(-)

diffs (86 lines):

diff -r dce8f24c5105 -r 8fbc59b9c742 textproc/subtitleripper/Makefile
--- a/textproc/subtitleripper/Makefile  Tue Jul 07 20:40:39 2009 +0000
+++ b/textproc/subtitleripper/Makefile  Tue Jul 07 20:41:51 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/09/06 09:19:02 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2009/07/07 20:43:35 joerg Exp $
 #
 
 DISTNAME=      subtitleripper-0.3-4
@@ -11,28 +11,28 @@
 HOMEPAGE=      http://sourceforge.net/projects/subtitleripper/
 COMMENT=       Subtitle ripping program
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      gocr-[0-9]*:../../graphics/gocr
 
 USE_TOOLS+=            gmake
 WRKSRC=                        ${WRKDIR}/subtitleripper
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin libdata/subtitleripper share/doc/subtitleripper
 
 CONFLICTS+=    subtitleripper-0.3-[0-9]*
 
 do-install:
        ${SED} -e "s,@PREFIX@,${PREFIX}," <${WRKSRC}/pgm2txt >${WRKDIR}/pgm2txt
-       ${INSTALL_SCRIPT} ${WRKDIR}/pgm2txt ${PREFIX}/bin
-       ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2pgm ${PREFIX}/bin
-       ${INSTALL_PROGRAM} ${WRKSRC}/srttool ${PREFIX}/bin
-       ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2vobsub ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/subtitleripper
+       ${INSTALL_SCRIPT} ${WRKDIR}/pgm2txt ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2pgm ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/srttool ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2vobsub ${DESTDIR}${PREFIX}/bin
        cd ${WRKSRC}; ${INSTALL_DATA} README README.gocr README.srttool \
                README.subtitle2pgm README.vobsub \
-               ${PREFIX}/share/doc/subtitleripper
-       ${INSTALL_DATA_DIR} ${PREFIX}/libdata/subtitleripper
+               ${DESTDIR}${PREFIX}/share/doc/subtitleripper
        cd ${WRKSRC}; ${INSTALL_DATA} gocrfilter_en.sed \
                gocrfilter_fr.sed gocrfilter_nl.sed gocrfilter_none.sed \
-               ${PREFIX}/libdata/subtitleripper
+               ${DESTDIR}${PREFIX}/libdata/subtitleripper
 
 .include "../../graphics/netpbm/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r dce8f24c5105 -r 8fbc59b9c742 textproc/tcl-dom/Makefile
--- a/textproc/tcl-dom/Makefile Tue Jul 07 20:40:39 2009 +0000
+++ b/textproc/tcl-dom/Makefile Tue Jul 07 20:41:51 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/10/04 22:01:00 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2009/07/07 20:41:51 joerg Exp $
 #
 
 DISTNAME=      TclDOM-1.6
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://tclxml.sourceforge.net/tcldom.html
 COMMENT=       DOM implementation for use with TclXML or TclExpat
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      tcl-xml-[0-9]*:../../textproc/tcl-xml
 
 # old name for this package...
@@ -19,13 +21,13 @@
 NO_CONFIGURE=  yes
 NO_BUILD=      yes
 
+INSTALLATION_DIRS=     lib/tcl/TclDOM share/doc/tcl/TclDOM
+
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/lib/tcl/TclDOM
-       ${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${PREFIX}/lib/tcl/TclDOM
-       ${INSTALL_DATA} ${WRKSRC}/dom.tcl ${PREFIX}/lib/tcl/TclDOM
-       ${INSTALL_DATA} ${WRKSRC}/dommap.tcl ${PREFIX}/lib/tcl/TclDOM
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tcl/TclDOM
-       ${INSTALL_DATA} ${WRKSRC}/docs/reference.html ${PREFIX}/share/doc/tcl/TclDOM
-       ${INSTALL_DATA} ${WRKSRC}/changes ${PREFIX}/share/doc/tcl/TclDOM
+       ${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${DESTDIR}${PREFIX}/lib/tcl/TclDOM
+       ${INSTALL_DATA} ${WRKSRC}/dom.tcl ${DESTDIR}${PREFIX}/lib/tcl/TclDOM
+       ${INSTALL_DATA} ${WRKSRC}/dommap.tcl ${DESTDIR}${PREFIX}/lib/tcl/TclDOM
+       ${INSTALL_DATA} ${WRKSRC}/docs/reference.html ${DESTDIR}${PREFIX}/share/doc/tcl/TclDOM
+       ${INSTALL_DATA} ${WRKSRC}/changes ${DESTDIR}${PREFIX}/share/doc/tcl/TclDOM
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index