aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/Makefile1
-rw-r--r--www/drupal6-geshifilter/Makefile46
-rw-r--r--www/drupal6-geshifilter/distinfo3
-rw-r--r--www/drupal6-geshifilter/files/patch-default-geshi-path14
-rw-r--r--www/drupal6-geshifilter/files/pkg-message.in19
-rw-r--r--www/drupal6-geshifilter/pkg-descr4
6 files changed, 87 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 957587b339c3..e9ffbf6fed86 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -175,6 +175,7 @@
SUBDIR += drupal6
SUBDIR += drupal6-advanced_help
SUBDIR += drupal6-cck
+ SUBDIR += drupal6-geshifilter
SUBDIR += drupal6-mimedetect
SUBDIR += drupal6-nice_menus
SUBDIR += drupal6-print
diff --git a/www/drupal6-geshifilter/Makefile b/www/drupal6-geshifilter/Makefile
new file mode 100644
index 000000000000..48a1d0d9103b
--- /dev/null
+++ b/www/drupal6-geshifilter/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: drupal6-geshifilter
+# Date created: Mar 20 2009
+# Whom: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
+#
+# $FreeBSD$
+
+PORTNAME= geshifilter
+DISTVERSION= 6.x-1.2
+CATEGORIES= www
+MASTER_SITES= http://ftp.drupal.org/files/projects/
+
+MAINTAINER= rea-fbsd@codelabs.ru
+COMMENT= Drupal 6 module for syntax highlighting
+
+RUN_DEPENDS= ${LOCALBASE}/lib/php/geshi/geshi.php:${PORTSDIR}/devel/php5-geshi
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+
+DRUPAL6_MODULE= yes
+MODULE_DIRS= geshi-extra tests translations
+MODULE_FILES= geshi-extra/drupal5.php geshi-extra/drupal6.php \
+ geshifilter.admin.inc geshifilter.conflicts.inc \
+ geshifilter.css geshifilter.filtertips.inc \
+ geshifilter.inc geshifilter.info geshifilter.install \
+ geshifilter.module geshifilter.pages.inc \
+ geshinode.info geshinode.install geshinode.module \
+ tests/geshifilter.admin.test tests/geshifilter.pages.test \
+ translations/de.po translations/ja.po \
+ translations/geshifilter.pot translations/sk.po
+
+DOC_DIRS= geshi-extra
+DOC_FILES= LICENSE.txt README.txt geshi-extra/README
+
+post-patch:
+ @${REINPLACE_CMD} -e's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ ${WRKSRC}/geshifilter.inc
+
+post-install:
+ @${ECHO}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO}
+
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../www/drupal5/bsd.drupal.mk"
+.include <bsd.port.post.mk>
diff --git a/www/drupal6-geshifilter/distinfo b/www/drupal6-geshifilter/distinfo
new file mode 100644
index 000000000000..fc323547faee
--- /dev/null
+++ b/www/drupal6-geshifilter/distinfo
@@ -0,0 +1,3 @@
+MD5 (drupal/geshifilter-6.x-1.2.tar.gz) = 0424506496275a2fc2d5788cdee79507
+SHA256 (drupal/geshifilter-6.x-1.2.tar.gz) = f5c3e1ea78a4e458c10fbec49288e238a240a08a0592339557174d5f958b7a18
+SIZE (drupal/geshifilter-6.x-1.2.tar.gz) = 82024
diff --git a/www/drupal6-geshifilter/files/patch-default-geshi-path b/www/drupal6-geshifilter/files/patch-default-geshi-path
new file mode 100644
index 000000000000..f0aa649a830c
--- /dev/null
+++ b/www/drupal6-geshifilter/files/patch-default-geshi-path
@@ -0,0 +1,14 @@
+This patch sets the default location for the GeSHi library
+to match FreeBSD's GeSHi port layout.
+
+--- geshifilter.inc.orig 2009-03-21 14:40:30.000000000 +0300
++++ geshifilter.inc 2009-03-21 14:40:54.000000000 +0300
+@@ -7,7 +7,7 @@
+ */
+
+ function _geshifilter_get_geshi_dir() {
+- return variable_get('geshifilter_geshi_dir', drupal_get_path('module', 'geshifilter') .'/geshi');
++ return variable_get('geshifilter_geshi_dir', '%%LOCALBASE%%/lib/php/geshi');
+ }
+
+ /**
diff --git a/www/drupal6-geshifilter/files/pkg-message.in b/www/drupal6-geshifilter/files/pkg-message.in
new file mode 100644
index 000000000000..5e3850060f4b
--- /dev/null
+++ b/www/drupal6-geshifilter/files/pkg-message.in
@@ -0,0 +1,19 @@
+Super-quick HOW-TO for GeSHi filter
+===================================
+
+To use GeSHi highlighting features in the Drupal documents,
+do the following:
+
+ 1. enable GeSHi modules inside Drupal;
+ 2. configure GeSHi using "Site configuration" -> "GeSHi Filter"
+ link inside administrative menu; default GeSHi library path is
+ %%LOCALBASE%%/lib/php/geshi
+ 3. enable GeSHi filtering for the input formats you choose to
+ handle syntax highlighting; menu "Site configuration" ->
+ "Input formats" will help you to do this;
+ 4. write some content and test GeSHi functionality.
+
+To create documents fully consisting of source code just create
+new content of type "Source code node".
+
+Good luck!
diff --git a/www/drupal6-geshifilter/pkg-descr b/www/drupal6-geshifilter/pkg-descr
new file mode 100644
index 000000000000..65d7eaae9fa0
--- /dev/null
+++ b/www/drupal6-geshifilter/pkg-descr
@@ -0,0 +1,4 @@
+The GeShi Filter module provides a filter for source code syntax
+highlighting for a wide range of languages.
+
+WWW: http://drupal.org/project/geshifilter