pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/inputmethod/skkserv Add user-destdir support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/270cdf8bb78b
branches:  trunk
changeset: 568226:270cdf8bb78b
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue Dec 08 11:48:55 2009 +0000

description:
Add user-destdir support.

diffstat:

 inputmethod/skkserv/Makefile |  17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diffs (44 lines):

diff -r 1aea88c32f9c -r 270cdf8bb78b inputmethod/skkserv/Makefile
--- a/inputmethod/skkserv/Makefile      Tue Dec 08 10:20:43 2009 +0000
+++ b/inputmethod/skkserv/Makefile      Tue Dec 08 11:48:55 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/09/07 22:12:12 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2009/12/08 11:48:55 obache Exp $
 
 DISTNAME=      skk9.6
 PKGNAME=       skkserv-3.9.4
@@ -14,6 +14,8 @@
 HOMEPAGE=      http://skk.kuis.kyoto-u.ac.jp/
 COMMENT=       Dictionary server for Simple Kana-Kanji conversion programs
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}/skk-9.6
 
 BUILD_DEFS+=   IPV6_READY
@@ -42,6 +44,10 @@
 
 RCD_SCRIPTS=   skkserv
 
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX}
+
+INSTALLATION_DIRS=     share/skk
+
 post-build:
        :
        : Merging dictionaries....
@@ -51,10 +57,9 @@
            ${WRKSRC}/jisyo-tools/skkdic-sort >${WRKDIR}/SKK-JISYO.L
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/skk
-       ${INSTALL_DATA} ${WRKDIR}/SKK-JISYO.L ${PREFIX}/share/skk/SKK-JISYO.L
-       ${INSTALL_DATA} ${WRKSRC}/skkserv/README ${PREFIX}/share/skk/README.skkserv
-       ${INSTALL_DATA} ${WRKSRC}/jisyo-tools/README.1st ${PREFIX}/share/skk/README.1st.jisyo-tools
-       ${INSTALL_DATA} ${WRKSRC}/jisyo-tools/README ${PREFIX}/share/skk/README.jisyo-tools
+       ${INSTALL_DATA} ${WRKDIR}/SKK-JISYO.L ${DESTDIR}${PREFIX}/share/skk/SKK-JISYO.L
+       ${INSTALL_DATA} ${WRKSRC}/skkserv/README ${DESTDIR}${PREFIX}/share/skk/README.skkserv
+       ${INSTALL_DATA} ${WRKSRC}/jisyo-tools/README.1st ${DESTDIR}${PREFIX}/share/skk/README.1st.jisyo-tools
+       ${INSTALL_DATA} ${WRKSRC}/jisyo-tools/README ${DESTDIR}${PREFIX}/share/skk/README.jisyo-tools
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index