pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/drupal PKG_DESTDIR_SUPPORT



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57c939e47c78
branches:  trunk
changeset: 568757:57c939e47c78
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Dec 17 21:15:06 2009 +0000

description:
PKG_DESTDIR_SUPPORT

diffstat:

 www/drupal/Makefile |  44 ++++++++++++++++++++++----------------------
 1 files changed, 22 insertions(+), 22 deletions(-)

diffs (82 lines):

diff -r 98afa1eab2cb -r 57c939e47c78 www/drupal/Makefile
--- a/www/drupal/Makefile       Thu Dec 17 21:04:41 2009 +0000
+++ b/www/drupal/Makefile       Thu Dec 17 21:15:06 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2009/09/29 13:39:58 taca Exp $
+# $NetBSD: Makefile,v 1.42 2009/12/17 21:15:06 abs Exp $
 
 DISTNAME=      drupal-5.20
 CATEGORIES=    www
@@ -23,6 +23,7 @@
 
 BUILD_DEFS+=           APACHE_USER APACHE_GROUP
 USE_TOOLS+=            perl:run pax
+USE_LANGUAGES=         c
 REPLACE_PERL=          scripts/code-style.pl
 
 OWN_DIRS+=             ${DRUPAL}/sites/default
@@ -43,6 +44,8 @@
 SUBST_SED.conf=                -e "s|@DRUPAL@|${DRUPAL}|g"
 SUBST_MESSAGE.conf=    Fixing configuration files.
 
+PKG_DESTDIR_SUPPORT=destdir
+
 .include "../../mk/apachever.mk"
 .include "../../lang/php/phpversion.mk"
 
@@ -59,37 +62,34 @@
 post-extract:
        ${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
 
+INSTALLATION_DIRS+= share/doc/drupal share/examples/drupal
+INSTALLATION_DIRS+= share/drupal share/drupal/files
+INSTALLATION_DIRS+= share/drupal/profiles share/drupal/profiles/default
+INSTALLATION_DIRS+= share/drupal/sites share/drupal/sites/all
+INSTALLATION_DIRS+= share/drupal/sites/default
+
 do-install:
-       ${INSTALL_DATA_DIR} ${DRUPAL}
-       ${INSTALL_DATA_DIR} ${DRUPAL}/files
-       ${INSTALL_DATA_DIR} ${DRUPAL}/profiles
-       ${INSTALL_DATA_DIR} ${DRUPAL}/profiles/default
-       ${INSTALL_DATA_DIR} ${DRUPAL}/sites
-       ${INSTALL_DATA_DIR} ${DRUPAL}/sites/all
-       ${INSTALL_DATA_DIR} ${DRUPAL}/sites/default
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/drupal
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/drupal
-       ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/drupal
-       ${INSTALL_DATA} ${WRKSRC}/robots.txt ${DRUPAL}
+       ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/drupal
+       ${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${DRUPAL}
        ${INSTALL_DATA} ${WRKSRC}/sites/all/README.txt \
-               ${DRUPAL}/sites/all
+               ${DESTDIR}${DRUPAL}/sites/all
        ${INSTALL_DATA} ${WRKSRC}/drupal.conf \
-               ${PREFIX}/share/examples/drupal/drupal.conf
+               ${DESTDIR}${PREFIX}/share/examples/drupal/drupal.conf
        ${INSTALL_DATA} ${WRKSRC}/sites/default/settings.php \
-               ${PREFIX}/share/examples/drupal/settings.php
+               ${DESTDIR}${PREFIX}/share/examples/drupal/settings.php
        ${INSTALL_DATA} ${WRKSRC}/profiles/default/default.profile \
-               ${PREFIX}/share/examples/drupal/default.profile
-       ${INSTALL_DATA} ${WRKSRC}/*.php ${DRUPAL}
+               ${DESTDIR}${PREFIX}/share/examples/drupal/default.profile
+       ${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${DRUPAL}
 
 .      for i in ${PAX_DIRS}
-               cd ${WRKSRC}/${i} && pax -rw . ${DRUPAL}/${i}
+               cd ${WRKSRC}/${i} && pax -rw . ${DESTDIR}${DRUPAL}/${i}
 .      endfor
 
-       ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DRUPAL}/files
-       ${CHMOD} 0770 ${DRUPAL}/files
+       ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${DRUPAL}/files
+       ${CHMOD} 0770 ${DESTDIR}${DRUPAL}/files
 
 post-install:
-       ${FIND} ${DRUPAL} -name \*.jpg | ${XARGS} ${CHMOD} 0644
-       ${FIND} ${DRUPAL} -name \*.png | ${XARGS} ${CHMOD} 0644
+       ${FIND} ${DESTDIR}${DRUPAL} -name \*.jpg | ${XARGS} ${CHMOD} 0644
+       ${FIND} ${DESTDIR}${DRUPAL} -name \*.png | ${XARGS} ${CHMOD} 0644
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index