Bug 189659 - [maintainer-update] Add staging support to www/nanoblogger-extra
Summary: [maintainer-update] Add staging support to www/nanoblogger-extra
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-11 13:00 UTC by tobias.rehbein
Modified: 2014-05-14 14:30 UTC (History)
0 users

See Also:


Attachments
www_nanoblogger-extra_stage.diff (3.08 KB, patch)
2014-05-11 13:00 UTC, tobias.rehbein
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tobias.rehbein 2014-05-11 13:00:00 UTC
	Add staging support to www/nanoblogger-extra.

	While here fix some portlint warnings:
	* add LICENSE
Comment 1 dfilter service freebsd_committer 2014-05-14 14:26:25 UTC
Author: amdmi3
Date: Wed May 14 13:26:21 2014
New Revision: 354055
URL: http://svnweb.freebsd.org/changeset/ports/354055
QAT: https://qat.redports.org/buildarchive/r354055/

Log:
  - Support staging
  - Pet portlint
  - Add LICENSE
  
  PR:		189659
  Submitted by:	Tobias Rehbein <tobias.rehbein@web.de> (maintainer)

Modified:
  head/www/nanoblogger-extra/Makefile
  head/www/nanoblogger-extra/pkg-plist

Modified: head/www/nanoblogger-extra/Makefile
==============================================================================
--- head/www/nanoblogger-extra/Makefile	Wed May 14 13:25:41 2014	(r354054)
+++ head/www/nanoblogger-extra/Makefile	Wed May 14 13:26:21 2014	(r354055)
@@ -9,6 +9,8 @@ MASTER_SITES=	http://nanoblogger.sourcef
 MAINTAINER=	tobias.rehbein@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 @@ DATADIR=	${PREFIX}/share/nanoblogger
 
 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>

Modified: head/www/nanoblogger-extra/pkg-plist
==============================================================================
--- head/www/nanoblogger-extra/pkg-plist	Wed May 14 13:25:41 2014	(r354054)
+++ head/www/nanoblogger-extra/pkg-plist	Wed May 14 13:26:21 2014	(r354055)
@@ -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%%/
-@dirrmtry %%DATADIR%%/default/styles
-@dirrmtry %%DATADIR%%/default/templates
-@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
-@dirrmtry %%DATADIR%%/lang
-@dirrmtry %%DATADIR%%/plugins/archive/category
-@dirrmtry %%DATADIR%%/plugins/archive
-@dirrmtry %%DATADIR%%/plugins/entry/format
-@dirrmtry %%DATADIR%%/plugins/entry
-@dirrmtry %%DATADIR%%/plugins/page/format
-@dirrmtry %%DATADIR%%/plugins/page
-@dirrmtry %%DATADIR%%/plugins/shortcode
-@dirrmtry %%DATADIR%%/plugins
 @dirrmtry %%DATADIR%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Dmitry Marakasov freebsd_committer 2014-05-14 14:26:33 UTC
State Changed
From-To: open->closed

Committed. Thanks!