svn commit: r330898 - head/multimedia/podcatcher

Baptiste Daroussin bapt at FreeBSD.org
Sat Oct 19 16:06:35 UTC 2013


Author: bapt
Date: Sat Oct 19 16:06:34 2013
New Revision: 330898
URL: http://svnweb.freebsd.org/changeset/ports/330898

Log:
  Enable stage
  Use shebangfix
  Use pkg-plist
  Cleanup

Added:
  head/multimedia/podcatcher/pkg-plist   (contents, props changed)
Modified:
  head/multimedia/podcatcher/Makefile

Modified: head/multimedia/podcatcher/Makefile
==============================================================================
--- head/multimedia/podcatcher/Makefile	Sat Oct 19 16:03:48 2013	(r330897)
+++ head/multimedia/podcatcher/Makefile	Sat Oct 19 16:06:34 2013	(r330898)
@@ -11,30 +11,15 @@ MAINTAINER=	multimedia at FreeBSD.org
 COMMENT=	Podcast client for the command line
 
 USE_RUBY=	yes
+USES=		shebangfix
+SHEBANG_FILES=	bin/${PORTNAME}
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/podcatcher \
-		${EXAMPLESDIR_REL}/arguments.txt \
-		${EXAMPLESDIR_REL}/options.yaml \
-		${EXAMPLESDIR_REL}/subscriptions.pcast \
-		${EXAMPLESDIR_REL}/subscriptions.opml
-
-PLIST_DIRS=	${EXAMPLESDIR_REL}
-
-NO_STAGE=	yes
-pre-install:
-	@${SED} -i.bak 's,#!/usr/bin/env ruby,#!${RUBY},' ${WRKSRC}/bin/${PORTNAME}
-
 do-install:
-	@${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
-
-post-install:
-	@${MKDIR}	${EXAMPLESDIR} \
-	&& \
-	( cd ${WRKSRC}/demo \
-		&& ${COPYTREE_SHARE} \* ${EXAMPLESDIR} \
-	)
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/demo; ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Added: head/multimedia/podcatcher/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/podcatcher/pkg-plist	Sat Oct 19 16:06:34 2013	(r330898)
@@ -0,0 +1,6 @@
+bin/podcatcher
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/arguments.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/options.yaml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/subscriptions.opml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/subscriptions.pcast
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%


More information about the svn-ports-head mailing list