1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- fix calendar generation

PR:		ports/158579
Submitted by:	Tobias Rehbein <tobias.rehbein@web.de> (maintainer)
This commit is contained in:
Steve Wills 2011-07-02 12:30:59 +00:00
parent eaf8031a2c
commit a030977198
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276874
6 changed files with 19 additions and 6 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= nanoblogger
PORTVERSION= 3.4.2
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://nanoblogger.sourceforge.net/downloads/
@ -25,6 +26,8 @@ post-patch:
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/nb
@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/nb
@${REINPLACE_CMD} -e "s,%%DOCSDIR%%,${DOCSDIR},g" ${WRKSRC}/nb
@${RM} ${WRKSRC}/plugins/page/format/*.orig
@${RM} ${WRKSRC}/plugins/entry/format/*.orig
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin

View File

@ -1,5 +1,5 @@
--- ./nb.orig 2010-02-15 22:01:53.000000000 +0100
+++ ./nb 2010-03-01 22:12:55.000000000 +0100
+++ ./nb 2011-07-01 21:31:22.000000000 +0200
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! %%LOCALBASE%%/bin/bash

View File

@ -1,5 +1,5 @@
--- ./nb.conf.orig 2010-02-15 02:14:23.000000000 +0100
+++ ./nb.conf 2010-03-01 22:10:36.000000000 +0100
+++ ./nb.conf 2011-07-01 21:31:22.000000000 +0200
@@ -7,7 +7,7 @@
NB_LANG="en"

View File

@ -0,0 +1,10 @@
--- ./plugins/calendar.sh 2011-07-01 21:31:36.000000000 +0200
+++ ./plugins/calendar.sh 2011-07-01 21:32:12.000000000 +0200
@@ -12,6 +12,7 @@
cal_month="$2"
cal_file="$3"
: ${CAL_CMD:=cal}
+: ${CAL_ARGS:=-h}
mkdir -p `dirname "$cal_file"`
# halt if cal command fails
nb_eval "$CAL_CMD" || continue

View File

@ -1,5 +1,5 @@
--- ./plugins/entry/format/markdown.sh.orig 2010-02-14 21:42:17.000000000 +0100
+++ ./plugins/entry/format/markdown.sh 2010-03-01 22:10:36.000000000 +0100
--- ./plugins/entry/format/markdown.sh 2010-02-14 21:42:17.000000000 +0100
+++ ./plugins/entry/format/markdown.sh 2011-07-01 21:31:22.000000000 +0200
@@ -5,7 +5,7 @@
: ${MARKDOWN_CMD:=markdown}
: ${MARKDOWN_OPTS:= }

View File

@ -1,5 +1,5 @@
--- ./plugins/page/format/markdown.sh.orig 2009-08-10 02:01:37.000000000 +0200
+++ ./plugins/page/format/markdown.sh 2010-03-01 22:10:36.000000000 +0100
--- ./plugins/page/format/markdown.sh 2009-08-10 02:01:37.000000000 +0200
+++ ./plugins/page/format/markdown.sh 2011-07-01 21:31:22.000000000 +0200
@@ -5,7 +5,7 @@
: ${MARKDOWN_CMD:=markdown}
: ${MARKDOWN_OPTS:= }