summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-25 09:44:55 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-25 09:44:55 +0000
commitb330d59a68654f034965e3cfcf7d7f75d98fd5ee (patch)
treebc3e8d757b8d13abfe36a73ebcee7bfad2d1b469
parent- Update to 5.1 (diff)
- Fixing taxonomy module for add-on ticker module
- Switch to drupal5/bsd.drupal.mk - Rename to drupal4- PR: ports/110412 Submitted by: Nick Hilliard <nick at foobar.org> (maintainer)
Notes
Notes: svn path=/head/; revision=188257
-rw-r--r--www/drupal4/Makefile10
-rw-r--r--www/drupal4/files/patch-modules-taxonomy-taxonomy.module11
2 files changed, 19 insertions, 2 deletions
diff --git a/www/drupal4/Makefile b/www/drupal4/Makefile
index a4b5e06e7164..9782b9d3ecfb 100644
--- a/www/drupal4/Makefile
+++ b/www/drupal4/Makefile
@@ -5,10 +5,12 @@
# $FreeBSD$
#
-PORTNAME= drupal
+PORTNAME= drupal4
PORTVERSION= 4.7.6
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://ftp.osuosl.org/pub/drupal/files/projects/
+DISTNAME= drupal-${PORTVERSION}
DIST_SUBDIR= drupal
MAINTAINER= nick@foobar.org
@@ -35,8 +37,12 @@ USE_PHP+= mysql
.endif
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
+USE_PHP+= pgsql
.endif
+post-patch:
+ ${RM} ${WRKSRC}/modules/taxonomy.module.orig
+
do-install:
${MKDIR} ${DRUPAL_DIR}
${CP} ${WRKSRC}/.htaccess ${DRUPAL_DIR}
@@ -64,5 +70,5 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include "${.CURDIR}/bsd.drupal.mk"
+.include "${.CURDIR}/../../www/drupal5/bsd.drupal.mk"
.include <bsd.port.post.mk>
diff --git a/www/drupal4/files/patch-modules-taxonomy-taxonomy.module b/www/drupal4/files/patch-modules-taxonomy-taxonomy.module
new file mode 100644
index 000000000000..ee3ecd140471
--- /dev/null
+++ b/www/drupal4/files/patch-modules-taxonomy-taxonomy.module
@@ -0,0 +1,11 @@
+--- modules/taxonomy.module~ Sat Mar 17 00:26:28 2007
++++ modules/taxonomy.module Sat Mar 17 00:26:28 2007
+@@ -619,7 +619,7 @@
+ foreach ($vocabularies as $vid => $vocabulary) {
+ if ($vocabulary->tags && !$free_tags) { continue; }
+ $tree = taxonomy_get_tree($vid);
+- if ($tree && (count($tree) > 1)) {
++ if ($tree && (count($tree) >= 1)) {
+ $options[$vocabulary->name] = array();
+ foreach ($tree as $term) {
+ $options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name;