From aceadac4818920d8fcaae49aec0b7a709beeba76 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 13 May 2016 18:02:35 +0000 Subject: This plugin adds professional knowledgebase functionality to the Redmine project management application. WWW: https://github.com/alexbevi/redmine_knowledgebase --- www/Makefile | 1 + www/redmine-knowledgebase/Makefile | 27 ++++++++++++++++++++++ www/redmine-knowledgebase/distinfo | 2 ++ .../patch-app_helpers_knowledgebase__helper.rb | 15 ++++++++++++ www/redmine-knowledgebase/pkg-descr | 4 ++++ 5 files changed, 49 insertions(+) create mode 100644 www/redmine-knowledgebase/Makefile create mode 100644 www/redmine-knowledgebase/distinfo create mode 100644 www/redmine-knowledgebase/files/patch-app_helpers_knowledgebase__helper.rb create mode 100644 www/redmine-knowledgebase/pkg-descr (limited to 'www') diff --git a/www/Makefile b/www/Makefile index eceff473603c..5e2f5a303ddc 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1834,6 +1834,7 @@ SUBDIR += redmine-default_assign SUBDIR += redmine-graphs SUBDIR += redmine-http-auth + SUBDIR += redmine-knowledgebase SUBDIR += redmine-qa_contact SUBDIR += redmine-redcarpet_formatter SUBDIR += redmine-sidebar_hide diff --git a/www/redmine-knowledgebase/Makefile b/www/redmine-knowledgebase/Makefile new file mode 100644 index 000000000000..7cf1d0330441 --- /dev/null +++ b/www/redmine-knowledgebase/Makefile @@ -0,0 +1,27 @@ +# Created by: Mark Felder +# $FreeBSD$ + +PORTNAME= knowledgebase +PORTVERSION= 2.3.0 +DISTVERSIONPREFIX=v +CATEGORIES= www +PKGNAMEPREFIX= redmine- + +MAINTAINER= feld@FreeBSD.org +COMMENT= Knowledgebase functionality for Redmine + +LICENSE= MIT + +NO_ARCH= yes + +USE_GITHUB= yes +GH_ACCOUNT= alexbevi +GH_PROJECT= redmine_knowledgebase + +REDMINE_PLUGIN_NAME= redmine_${PORTNAME} + +RUN_DEPENDS+= rubygem-redmine_acts_as_taggable_on>0:devel/rubygem-redmine_acts_as_taggable_on \ + rubygem-ya2yaml>0:textproc/rubygem-ya2yaml \ + rubygem-awesome_nested_set>0:databases/rubygem-awesome_nested_set + +.include "${.CURDIR}/../../www/redmine/bsd.redmine.mk" diff --git a/www/redmine-knowledgebase/distinfo b/www/redmine-knowledgebase/distinfo new file mode 100644 index 000000000000..534cd827b491 --- /dev/null +++ b/www/redmine-knowledgebase/distinfo @@ -0,0 +1,2 @@ +SHA256 (alexbevi-redmine_knowledgebase-v2.3.0_GH0.tar.gz) = 9d7e050d9851b313a838ded47e8d1bf386741389497c55710a93bea0a85ed320 +SIZE (alexbevi-redmine_knowledgebase-v2.3.0_GH0.tar.gz) = 71659 diff --git a/www/redmine-knowledgebase/files/patch-app_helpers_knowledgebase__helper.rb b/www/redmine-knowledgebase/files/patch-app_helpers_knowledgebase__helper.rb new file mode 100644 index 000000000000..2c84869d358b --- /dev/null +++ b/www/redmine-knowledgebase/files/patch-app_helpers_knowledgebase__helper.rb @@ -0,0 +1,15 @@ +--- app/helpers/knowledgebase_helper.rb.orig 2013-06-25 12:40:55 UTC ++++ app/helpers/knowledgebase_helper.rb +@@ -53,7 +53,11 @@ module KnowledgebaseHelper + def create_preview_link + v = Redmine::VERSION.to_a + if v[0] == 2 && v[1] <= 1 +- link_to_remote(l(:label_preview), { :url => { :controller => 'articles', :action => 'preview' }, :method => 'post', :update => 'preview', :with => "Form.serialize('articles-form')") ++ link_to_remote l(:label_preview), ++ { :url => { :controller => 'articles', :action => 'preview' }, ++ :method => 'post', ++ :update => 'preview', ++ :with => "Form.serialize('articles-form')" } + else + preview_link({ :controller => 'articles', :action => 'preview' }, 'articles-form') + end diff --git a/www/redmine-knowledgebase/pkg-descr b/www/redmine-knowledgebase/pkg-descr new file mode 100644 index 000000000000..f39f0ed9d162 --- /dev/null +++ b/www/redmine-knowledgebase/pkg-descr @@ -0,0 +1,4 @@ +This plugin adds professional knowledgebase functionality to the Redmine +project management application. + +WWW: https://github.com/alexbevi/redmine_knowledgebase -- cgit v1.2.3