Date: Mon, 9 Jun 2008 08:02:19 GMT From: Tobias Rehbein <tobias.rehbein@web.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/124408: [patch] www/nanoblogger: markdown plugin doesn't honour ${PREFIX} Message-ID: <200806090802.m5982JMh051187@www.freebsd.org> Resent-Message-ID: <200806090810.m598A2bH048422@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 124408 >Category: ports >Synopsis: [patch] www/nanoblogger: markdown plugin doesn't honour ${PREFIX} >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 09 08:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Tobias Rehbein >Release: FreeBSD 6.3-RELEASE >Organization: >Environment: FreeBSD svn.pseudo.local 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 13 02:40:56 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: This is a bug that hit me several times until I know felt the urge to submit a PR. nanoblogger provides a shell script to enable usage of the markdown syntax. This script expects markdown to live in /usr/bin. The $PREFIX should be used here. >How-To-Repeat: Install www/nanoblogger and textproc/markdown and try to write a blog post using the markdown syntax. >Fix: A patch that fixes this issue is attached. Patch attached with submission follows: diff -ruN www/nanoblogger.orig/Makefile www/nanoblogger/Makefile --- www/nanoblogger.orig/Makefile 2008-06-06 16:07:02.000000000 +0200 +++ www/nanoblogger/Makefile 2008-06-09 10:00:52.000000000 +0200 @@ -8,7 +8,7 @@ PORTNAME= nanoblogger PORTVERSION= 3.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -24,6 +24,7 @@ post-patch: @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/plugins/entry/format/markdown.sh do-install: ${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin diff -ruN www/nanoblogger.orig/files/patch-markdown_sh www/nanoblogger/files/patch-markdown_sh --- www/nanoblogger.orig/files/patch-markdown_sh 1970-01-01 01:00:00.000000000 +0100 +++ www/nanoblogger/files/patch-markdown_sh 2008-06-09 09:59:33.000000000 +0200 @@ -0,0 +1,11 @@ +--- plugins/entry/format/markdown.sh.orig 2008-06-09 09:54:01.000000000 +0200 ++++ plugins/entry/format/markdown.sh 2008-06-09 09:54:24.000000000 +0200 +@@ -2,7 +2,7 @@ + # Markdown is documented and implemented at + # <URL:http://daringfireball.net/projects/markdown/> + +-MARKDOWN="/usr/bin/markdown" ++MARKDOWN="%%PREFIX%%/bin/markdown" + MARKDOWN_OPTS="" + + # nb_msg "$plugins_textformataction `basename $nb_plugin` ..." >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806090802.m5982JMh051187>