From 6624bfc27fb7eeb725abecb5c66140235db3ca28 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 18 Jun 2014 12:18:44 +0000 Subject: [PATCH] Remove support for USE_DRUPAL --- Mk/bsd.drupal.mk | 161 ----------------------------------------------- Mk/bsd.port.mk | 4 -- 2 files changed, 165 deletions(-) delete mode 100644 Mk/bsd.drupal.mk diff --git a/Mk/bsd.drupal.mk b/Mk/bsd.drupal.mk deleted file mode 100644 index 1f8c98192798..000000000000 --- a/Mk/bsd.drupal.mk +++ /dev/null @@ -1,161 +0,0 @@ -# $FreeBSD$ -# -# bsd.drupal.mk - Support for Drupal ports and modules. -# -# For FreeBSD committers: -# Please send all suggested changes to the maintainer instead of committing -# them to SVN yourself. - -bsd_drupal_mk_MAINTAINER= miwi@FreeBSD.org - -# Make sure we cannot define any combination of DRUPAL{5,6} -.if (defined(DRUPAL5_MODULE) && defined(DRUPAL6_MODULE)) -BROKEN= cannot define a combination of DRUPAL5_MODULE and DRUPAL6_MODULE -.endif - -.if (defined(DRUPAL5_THEME) && defined(DRUPAL6_THEME)) -BROKEN= cannot define a combination of DRUPAL5_THEME and DRUPAL6_THEME -.endif - -.if defined(DRUPAL6_MODULE) || defined(DRUPAL6_PORT) || defined(DRUPAL6_THEME) -DRUPAL_VERSION?= 6 -.endif - -.if !defined(DRUPAL_VERSION) -BROKEN= must define DRUPAL_VERSION -.endif - -# Make sure DRUPAL_MODULE is defined where necessary -.if defined(DRUPAL5_MODULE) || defined(DRUPAL6_MODULE) -DRUPAL_MODULE?= yes -.endif - -.if defined(DRUPAL_MODULE) -DRUPAL_MODTYPE= modules -.endif - -# Make sure DRUPAL_PORT is defined where necessary -.if defined(DRUPAL5_PORT) || defined(DRUPAL6_PORT) -DRUPAL_PORT?= yes -.endif - -# Make sure DRUPAL_THEME is defined where necessary -.if defined(DRUPAL5_THEME) || defined(DRUPAL6_THEME) -DRUPAL_THEME?= yes -DRUPAL_MODTYPE= themes -.endif - -.if ${DRUPAL_VERSION} == "7" -DRUPAL_BASE?= www/drupal7 -.elif ${DRUPAL_VERSION} == "6" -DRUPAL_BASE?= www/drupal6 -.else -BROKEN= Unknown DRUPAL_VERSION (${DRUPAL_VERSION}) -.endif - -DRUPAL_DIR= ${PREFIX}/${DRUPAL_BASE} -DRUPAL_DOCSDIR?= ${PREFIX}/${DRUPAL_BASE}/doc -PLIST_SUB+= DRUPAL_BASE=${DRUPAL_BASE} -SUB_LIST+= DRUPAL_BASE=${DRUPAL_BASE} DRUPAL_DIR=${DRUPAL_DIR} - -.if defined(DRUPAL_PORT) -DOCSDIR?= ${DRUPAL_DOCSDIR} -.endif - -.if defined(DRUPAL_MODULE) || defined (DRUPAL_THEME) -PKGNAMEPREFIX= drupal${DRUPAL_VERSION}- - -# drupal contributions must be licensed under the GPLv2 or GPLv3. This is -# documented at: http://drupal.org/licensing/faq/ -.if !defined(LICENSE) -LICENSE= GPLv2 GPLv3 -LICENSE_COMB= dual -.endif - -.if defined(DRUPAL_MODSUBDIR) -DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/${DRUPAL_MODTYPE}/${DRUPAL_MODSUBDIR} -.else -DRUPAL_MODDIR?= ${DRUPAL_BASE}/sites/all/${DRUPAL_MODTYPE}/${PORTNAME} -.endif - -DRUPAL_MODLIB?= ${DRUPAL_BASE}/sites/all/libraries - -DOCSDIR?= ${DRUPAL_DOCSDIR}/${PORTNAME} - -.if defined(DRUPAL_MOD_SNAPSHOT) -MASTER_SITE_DRUPAL+= \ - ${MASTER_SITE_LOCAL} -MASTER_SITE_DRUPAL_SUBDIR= pav/drupal -.else -MASTER_SITE_DRUPAL+= \ - http://ftp.drupal.org/files/projects/ \ - http://ftp.osuosl.org/pub/drupal/files/projects/ -MASTER_SITE_DRUPAL_SUBDIR= -.endif - -MASTER_SITES?= ${MASTER_SITE_DRUPAL} -MASTER_SITE_SUBDIR?= ${MASTER_SITE_DRUPAL_SUBDIR} - -DIST_SUBDIR= drupal - -NO_BUILD?= yes - -WRKSRC?= ${WRKDIR}/${PORTNAME} -RUN_DEPENDS+= ${LOCALBASE}/${DRUPAL_BASE}/index.php:${PORTSDIR}/${DRUPAL_BASE} - -.if defined(MODULE_CONF_FILES) -SUB_FILES= pkg-install -SUB_LIST+= CONF_FILES="${MODULE_CONF_FILES:C|^|${DRUPAL_MODDIR}/|}" \ - CONF_DIRS="${MODULE_CONF_DIRS:C|^|${DRUPAL_MODDIR}/|}" -# XXX: where? -PKGINSTALL= ${WRKDIR}/pkg-install -PKGDEINSTALL= ${PKGINSTALL} -.endif - -PLIST_SUB+= DRUPAL_MODDIR=${DRUPAL_MODDIR} -PLIST_FILES+= ${MODULE_FILES:C|^|%%DRUPAL_MODDIR%%/|} -PLIST_FILES+= ${MODULE_CONF_FILES:C|^|%%DRUPAL_MODDIR%%/|:C|$|-dist|} -PLIST_DIRS+= ${MODULE_DIRS:C|^|%%DRUPAL_MODDIR%%/|} -.if defined(DRUPAL_MODULE) || defined(DRUPAL_THEME) -PLIST_DIRS+= ${DRUPAL_MODDIR} -.endif -.if defined(DRUPAL_MODSUBDIR) -PLIST_DIRS+= ${DRUPAL_MODDIR} -.endif -.if !defined(NOPORTDOCS) -PLIST_FILES+= ${DOC_FILES:C|^|%%DOCSDIR%%/|} -PLIST_DIRS+= ${DOC_DIRS:C|^|%%DOCSDIR%%/|} -PLIST_DIRS+= %%DOCSDIR%% -.endif - -do-install: -.if defined(DRUPAL_MODULE) || defined(DRUPAL_THEME) - @${MKDIR} ${DRUPAL_MODDIR:C|^|${STAGEDIR}${PREFIX}/|} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${DRUPAL_MODDIR:C|^|${STAGEDIR}${PREFIX}/|} -.endif -.if defined(MODULE_CONF_DIRS) - @${MKDIR} ${MODULE_CONF_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_CONF_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} -.endif -.if defined(MODULE_DIRS) - @${MKDIR} ${MODULE_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} -.endif -.for f in ${MODULE_FILES} - @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f} -.endfor -.for f in ${MODULE_CONF_FILES} - @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f}-dist - @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f}-dist -.endfor - @${MKDIR} ${STAGEDIR}${DOCSDIR} ${DOC_DIRS:C|^|${STAGEDIR}${DOCSDIR}/|} -.for f in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f} -.endfor - -.if defined(MODULE_CONF_FILES) -post-install: - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.endif -.endif diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index cf92b9399693..43be9dcce47f 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1469,10 +1469,6 @@ PKGCOMPATDIR?= ${LOCALBASE}/lib/compat/pkg .include "${PORTSDIR}/Mk/bsd.tex.mk" .endif -.if defined(USE_DRUPAL) -.include "${PORTSDIR}/Mk/bsd.drupal.mk" -.endif - .if defined(USE_GECKO) .include "${PORTSDIR}/Mk/bsd.gecko.mk" .endif