From owner-svn-ports-all@freebsd.org Fri May 13 14:12:05 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1C16B3A7CB; Fri, 13 May 2016 14:12:05 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2E1A16DB; Fri, 13 May 2016 14:12:05 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4DEC4Fj071749; Fri, 13 May 2016 14:12:04 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4DEC4hE071741; Fri, 13 May 2016 14:12:04 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201605131412.u4DEC4hE071741@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Fri, 13 May 2016 14:12:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415114 - in head/www: . redmine-redcarpet_formatter redmine-redcarpet_formatter/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 14:12:06 -0000 Author: feld Date: Fri May 13 14:12:03 2016 New Revision: 415114 URL: https://svnweb.freebsd.org/changeset/ports/415114 Log: This is a redmine plugin for supporting Markdown as a wiki format. This plugin use Redcarpet which is GitHub's markdown wiki formatter. Redcarpet is extreme fast and compatible GitHub's Wiki. They are advantage from Redmine Markdown Formatter and Redmine Markdown Extra Formatter. This code is originally Redmine Markdown Formatter and Redmine reStructuredtext Formatter. I appreciate these guys. WWW: https://github.com/alminium/redmine_redcarpet_formatter Added: head/www/redmine-redcarpet_formatter/ head/www/redmine-redcarpet_formatter/Makefile (contents, props changed) head/www/redmine-redcarpet_formatter/distinfo (contents, props changed) head/www/redmine-redcarpet_formatter/files/ head/www/redmine-redcarpet_formatter/files/patch-Gemfile (contents, props changed) head/www/redmine-redcarpet_formatter/files/patch-init.rb (contents, props changed) head/www/redmine-redcarpet_formatter/files/patch-lib_redmine_wiki__formatting_markdown_formatter.rb (contents, props changed) head/www/redmine-redcarpet_formatter/files/patch-lib_redmine_wiki__formatting_markdown_helper.rb (contents, props changed) head/www/redmine-redcarpet_formatter/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Fri May 13 13:21:10 2016 (r415113) +++ head/www/Makefile Fri May 13 14:12:03 2016 (r415114) @@ -1835,6 +1835,7 @@ SUBDIR += redmine-graphs SUBDIR += redmine-http-auth SUBDIR += redmine-qa_contact + SUBDIR += redmine-redcarpet_formatter SUBDIR += redmine-sidebar_hide SUBDIR += redmine-stuff_to_do SUBDIR += redmine-wiki_notes Added: head/www/redmine-redcarpet_formatter/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/Makefile Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,59 @@ +# Created by: Mark Felder +# $FreeBSD$ + +PORTNAME= redcarpet_formatter +PORTVERSION= 2.0.1 +DISTVERSIONPREFIX=v +CATEGORIES= www +PKGNAMEPREFIX= redmine- + +MAINTAINER= feld@FreeBSD.org +COMMENT= Redmine plugin to support Markdown + +LICENSE= GPLv2 + +NO_ARCH= yes + +USE_GITHUB= yes +GH_ACCOUNT= alminium +GH_PROJECT= redmine_redcarpet_formatter + +RUN_DEPENDS+= redmine>=2.0:www/redmine +RUN_DEPENDS+= rubygem-redcarpet>0:textproc/rubygem-redcarpet + +REDMINE_PLUGIN_NAME= redmine_${PORTNAME} + +USE_RUBY= yes +.if !defined(PLIST) +PLIST= ${WRKDIR}/PLIST +_GEN_PLIST= YesPlease +.endif + +WWWDIR?= ${PREFIX}/www/redmine +WWWDIR_REL= ${WWWDIR:S|^${PREFIX}/||} + +.if ${WWWDIR_REL} == ${WWWDIR} +IGNORE= WWWDIR is not a child of PREFIX (${PREFIX}) +.endif + +.if !defined(do-build) +do-build: redmine-plugin-plist + @${DO_NADA} +.endif + +redmine-plugin-plist: +.if defined(_GEN_PLIST) + cd ${WRKSRC} && ${FIND} . -type f | ${GREP} -v '\.orig$$' | ${SED} -e's|^\.|${WWWDIR_REL}/plugins/${REDMINE_PLUGIN_NAME}|' >> ${PLIST} + cd ${WRKSRC} && ${FIND} -d . -empty -type d | ${SED} -e's|^\.|@dir ${WWWDIR_REL}/plugins/${REDMINE_PLUGIN_NAME}|' >> ${PLIST} +.else + @${DO_NADA} +.endif + +post-patch: + (cd ${WRKSRC}/lib/redmine/wiki_formatting && ${MV} markdown redcarpet_markdown) + +do-install: + ${MKDIR} "${STAGEDIR}${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}" + ${TAR} -C "${WRKSRC}" -cf - --exclude '*.orig' . | ${TAR} -C "${STAGEDIR}${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}" -xf - + +.include Added: head/www/redmine-redcarpet_formatter/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/distinfo Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,2 @@ +SHA256 (alminium-redmine_redcarpet_formatter-v2.0.1_GH0.tar.gz) = 84fddbbfc2b15fc3336ca5a6f645c52cb19586706a106d1a914b354b7bc83dee +SIZE (alminium-redmine_redcarpet_formatter-v2.0.1_GH0.tar.gz) = 11116 Added: head/www/redmine-redcarpet_formatter/files/patch-Gemfile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/files/patch-Gemfile Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,6 @@ +--- Gemfile.orig 2016-05-13 13:43:53 UTC ++++ Gemfile +@@ -1,3 +0,0 @@ +-source :rubygems +- +-gem "redcarpet" Added: head/www/redmine-redcarpet_formatter/files/patch-init.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/files/patch-init.rb Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,21 @@ +--- init.rb.orig 2016-05-13 13:44:03 UTC ++++ init.rb +@@ -1,8 +1,8 @@ + # Redmine Redcarpet formatter + + require 'redmine' +-require 'redmine/wiki_formatting/markdown/formatter' +-require 'redmine/wiki_formatting/markdown/helper' ++require 'redmine/wiki_formatting/redcarpet_markdown/formatter' ++require 'redmine/wiki_formatting/redcarpet_markdown/helper' + + + Redmine::Plugin.register :redmine_redcarpet_formatter do +@@ -11,6 +11,6 @@ Redmine::Plugin.register :redmine_redcar + description 'Markdown wiki formatting by Redcarpet for Redmine' + version '2.0.1' + +- wiki_format_provider 'markdown', Redmine::WikiFormatting::Markdown::Formatter, Redmine::WikiFormatting::Markdown::Helper ++ wiki_format_provider 'redcarpet_markdown', Redmine::WikiFormatting::RedcarpetMarkdown::Formatter, Redmine::WikiFormatting::RedcarpetMarkdown::Helper + + end Added: head/www/redmine-redcarpet_formatter/files/patch-lib_redmine_wiki__formatting_markdown_formatter.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/files/patch-lib_redmine_wiki__formatting_markdown_formatter.rb Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,11 @@ +--- lib/redmine/wiki_formatting/markdown/formatter.rb.orig 2016-05-13 13:44:58 UTC ++++ lib/redmine/wiki_formatting/markdown/formatter.rb +@@ -20,7 +20,7 @@ end + + module Redmine + module WikiFormatting +- module Markdown ++ module RedcarpetMarkdown + class Formatter + # include ActionView::Helpers::TagHelper + Added: head/www/redmine-redcarpet_formatter/files/patch-lib_redmine_wiki__formatting_markdown_helper.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/files/patch-lib_redmine_wiki__formatting_markdown_helper.rb Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,11 @@ +--- lib/redmine/wiki_formatting/markdown/helper.rb.orig 2016-05-13 13:45:22 UTC ++++ lib/redmine/wiki_formatting/markdown/helper.rb +@@ -1,7 +1,7 @@ + module Redmine + module WikiFormatting + +- module Markdown ++ module RedcarpetMarkdown + module Helper + unloadable + Added: head/www/redmine-redcarpet_formatter/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-redcarpet_formatter/pkg-descr Fri May 13 14:12:03 2016 (r415114) @@ -0,0 +1,8 @@ +This is a redmine plugin for supporting Markdown as a wiki format. This +plugin use Redcarpet which is GitHub's markdown wiki formatter. +Redcarpet is extreme fast and compatible GitHub's Wiki. They are +advantage from Redmine Markdown Formatter and Redmine Markdown Extra +Formatter. This code is originally Redmine Markdown Formatter and +Redmine reStructuredtext Formatter. I appreciate these guys. + +WWW: https://github.com/alminium/redmine_redcarpet_formatter