pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7e2a91a43921
branches:  trunk
changeset: 395394:7e2a91a43921
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 22:17:24 2009 +0000

description:
user-destdir support

diffstat:

 audio/snd/Makefile                  |   9 +++++++--
 textproc/detex/Makefile             |   8 +++++---
 textproc/dict-dictionaries/Makefile |  15 +++++++++------
 textproc/dict-server/Makefile       |   9 +++++----
 4 files changed, 26 insertions(+), 15 deletions(-)

diffs (144 lines):

diff -r 45d99f55704f -r 7e2a91a43921 audio/snd/Makefile
--- a/audio/snd/Makefile        Tue Jul 07 22:16:12 2009 +0000
+++ b/audio/snd/Makefile        Tue Jul 07 22:17:24 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2008/04/28 12:47:44 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2009/07/07 22:19:01 joerg Exp $
 #
 
 DISTNAME=              snd-9.9
@@ -9,6 +9,8 @@
 HOMEPAGE=              http://ccrma.stanford.edu/software/snd/
 COMMENT=               X based sound editor
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=              flac-[0-9]*:../../audio/flac
 DEPENDS+=              speex-[0-9]*:../../audio/speex
 DEPENDS+=              vorbis-tools-[0-9]*:../../audio/vorbis-tools
@@ -21,9 +23,12 @@
 MAKE_FILE=             makefile
 WRKSRC=                        ${WRKDIR}/snd-9
 
+INSTALLATION_DIRS=     ${PKGLOCALEDIR}/locale/de/LC_MESSAGES
+INSTALL_MAKE_FLAGS+=   localedir=${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/po/de.gmo \
-               ${PREFIX}/${PKGLOCALEDIR}/locale/de/LC_MESSAGES/snd.mo
+           ${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/de/LC_MESSAGES/snd.mo
 
 .include "options.mk"
 
diff -r 45d99f55704f -r 7e2a91a43921 textproc/detex/Makefile
--- a/textproc/detex/Makefile   Tue Jul 07 22:16:12 2009 +0000
+++ b/textproc/detex/Makefile   Tue Jul 07 22:17:24 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/11/20 02:19:26 chuck Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/07 22:20:41 joerg Exp $
 #
 
 DISTNAME=      detex-2.8
@@ -10,12 +10,14 @@
 HOMEPAGE=      http://www.cs.purdue.edu/homes/trinkle/detex/
 COMMENT=       Remove LaTeX commands
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=    lex
 
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/detex ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/detex.1l ${PREFIX}/${PKGMANDIR}/man1/detex.1
+       ${INSTALL_PROGRAM} ${WRKSRC}/detex ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/detex.1l ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/detex.1
 
 .include "../../mk/bsd.pkg.mk"
diff -r 45d99f55704f -r 7e2a91a43921 textproc/dict-dictionaries/Makefile
--- a/textproc/dict-dictionaries/Makefile       Tue Jul 07 22:16:12 2009 +0000
+++ b/textproc/dict-dictionaries/Makefile       Tue Jul 07 22:17:24 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2007/11/17 12:04:14 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2009/07/07 22:17:24 joerg Exp $
 
 DISTNAME=      #
 PKGNAME=       dict-data-1.8.0
@@ -16,6 +16,8 @@
 HOMEPAGE=      http://www.dict.org/
 COMMENT=       Dictionary data for DICTD
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      dict-server>=1.8.0nb1:../../textproc/dict-server
 
 USE_TOOLS+=    gmake lex yacc
@@ -70,23 +72,24 @@
                fi; \
        done
 
+INSTALLATION_DIRS=     share/dictd
+
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
        for f in ${LEXICONS}; do \
                ${INSTALL_DATA} ${WRKDIR}/dict-misc-1.5/$$f \
-                   ${PREFIX}/share/dictd; \
+                   ${DESTDIR}${PREFIX}/share/dictd; \
        done
        for f in ${GAZETTEER}; do \
                ${INSTALL_DATA} ${WRKDIR}/dict-gazetteer-1.3/$$f \
-                   ${PREFIX}/share/dictd; \
+                   ${DESTDIR}${PREFIX}/share/dictd; \
        done
        for f in ${WEB1913}; do \
                ${INSTALL_DATA} ${WRKDIR}/dict-web1913-1.4/$$f \
-                   ${PREFIX}/share/dictd; \
+                   ${DESTDIR}${PREFIX}/share/dictd; \
        done
        for f in ${WN}; do \
                ${INSTALL_DATA} ${WRKDIR}/dict-wn-1.5/$$f \
-                   ${PREFIX}/share/dictd; \
+                   ${DESTDIR}${PREFIX}/share/dictd; \
        done
 
 .include "../../mk/bsd.pkg.mk"
diff -r 45d99f55704f -r 7e2a91a43921 textproc/dict-server/Makefile
--- a/textproc/dict-server/Makefile     Tue Jul 07 22:16:12 2009 +0000
+++ b/textproc/dict-server/Makefile     Tue Jul 07 22:17:24 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2006/11/24 23:04:15 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2009/07/07 22:19:53 joerg Exp $
 
 DISTNAME=      dictd-1.9.15
 PKGNAME=       dict-server-1.9.15
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.dict.org/
 COMMENT=       Dictionary Service Protocol server
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            gmake lex yacc
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-cflags=${CFLAGS:M*:Q}
@@ -18,6 +20,7 @@
 
 BUILD_TARGET=  dictd dictzip
 INSTALL_TARGET=        install.dictd install.dictzip install.dictfmt
+INSTALLATION_DIRS=     ${EGDIR} share/dictd
 
 EGDIR=         ${PREFIX}/share/examples/dict-server
 CONF_FILES=    ${EGDIR}/dictd.conf \
@@ -33,10 +36,8 @@
        done
 
 post-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
        ${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
-               ${WRKSRC}/dictd.conf >${EGDIR}/dictd.conf
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
+               ${WRKSRC}/dictd.conf >${DESTDIR}${EGDIR}/dictd.conf
 
 .include "../../devel/libltdl/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index