ports/189659: [maintainer-update] Add staging support to www/nanoblogger-extra
Tobias Rehbein
tobias.rehbein at web.de
Sun May 11 12:00:01 UTC 2014
>Number: 189659
>Category: ports
>Synopsis: [maintainer-update] Add staging support to www/nanoblogger-extra
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun May 11 12:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Tobias Rehbein
>Release: FreeBSD 10.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD oshi.local 10.0-RELEASE-p2 FreeBSD 10.0-RELEASE-p2 #0: Thu May 1 06:51:20 CEST 2014 tobi at oshi.local:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Add staging support to www/nanoblogger-extra.
While here fix some portlint warnings:
* add LICENSE
>How-To-Repeat:
>Fix:
--- www_nanoblogger-extra_stage.diff begins here ---
diff -urN www/nanoblogger-extra.orig/Makefile www/nanoblogger-extra/Makefile
--- www/nanoblogger-extra.orig/Makefile 2014-05-11 13:31:06.346342143 +0200
+++ www/nanoblogger-extra/Makefile 2014-05-11 13:33:23.247335360 +0200
@@ -9,6 +9,8 @@
MAINTAINER= tobias.rehbein at web.de
COMMENT= Extras for nanoblogger, a small weblog engine
+LICENSE= GPLv2
+
RUN_DEPENDS= nb:${PORTSDIR}/www/nanoblogger
WRKSRC= ${WRKDIR}/nanoblogger-${PORTVERSION}
@@ -16,26 +18,21 @@
NO_BUILD= yes
-NO_STAGE= yes
do-install:
.for data in default lang plugins
- @( cd ${WRKSRC}/${data} && ${CHMOD} 777 ${WRKSRC}/${data}/* && \
- ${COPYTREE_SHARE} \* ${DATADIR}/${data} "! -empty" )
+ @( cd ${WRKSRC}/${data} && \
+ ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${data} "! -empty" )
.endfor
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in COPYING ChangeLog README
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
- @${MKDIR} ${DOCSDIR}/html
- @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}/html
-.endif
-
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/docs/examples/nanoblogger.bash_completion ${EXAMPLESDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
+ @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}/html
+
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/docs/examples/nanoblogger.bash_completion ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff -urN www/nanoblogger-extra.orig/pkg-plist www/nanoblogger-extra/pkg-plist
--- www/nanoblogger-extra.orig/pkg-plist 2014-05-11 12:56:23.823484678 +0200
+++ www/nanoblogger-extra/pkg-plist 2014-05-11 13:05:56.849445461 +0200
@@ -28,8 +28,8 @@
%%DATADIR%%/plugins/001_mymood.off
%%DATADIR%%/plugins/archive/category/include_listings.sh
%%DATADIR%%/plugins/archive/master_fullindex.off
-%%DATADIR%%/plugins/entry/z0_excerpt.off
%%DATADIR%%/plugins/entry/format/autotag-p.sh
+%%DATADIR%%/plugins/entry/z0_excerpt.off
%%DATADIR%%/plugins/file_links.sh
%%DATADIR%%/plugins/fortune.sh
%%DATADIR%%/plugins/page/format/autopbr.sh
@@ -38,23 +38,11 @@
%%DATADIR%%/plugins/shortcode/yahoobuzz.sh
%%DATADIR%%/plugins/shortcode/youtube.sh
%%DATADIR%%/plugins/z001_articles_text.off
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/
- at dirrmtry %%DATADIR%%/default/styles
- at dirrmtry %%DATADIR%%/default/templates
- at dirrmtry %%DATADIR%%/default
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
@dirrmtry %%DATADIR%%/lang/de
@dirrmtry %%DATADIR%%/lang/es
@dirrmtry %%DATADIR%%/lang/fr
@dirrmtry %%DATADIR%%/lang/tr
- at dirrmtry %%DATADIR%%/lang
- at dirrmtry %%DATADIR%%/plugins/archive/category
- at dirrmtry %%DATADIR%%/plugins/archive
- at dirrmtry %%DATADIR%%/plugins/entry/format
- at dirrmtry %%DATADIR%%/plugins/entry
- at dirrmtry %%DATADIR%%/plugins/page/format
- at dirrmtry %%DATADIR%%/plugins/page
- at dirrmtry %%DATADIR%%/plugins/shortcode
- at dirrmtry %%DATADIR%%/plugins
@dirrmtry %%DATADIR%%
--- www_nanoblogger-extra_stage.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list