Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 11:01:36 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343457 - head/audio/p5-Shout
Message-ID:  <201402091101.s19B1aPh072112@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Sun Feb  9 11:01:36 2014
New Revision: 343457
URL: http://svnweb.freebsd.org/changeset/ports/343457
QAT: https://qat.redports.org/buildarchive/r343457/

Log:
  - Support staging
  - Strip binaries
  - Use shebangfix

Modified:
  head/audio/p5-Shout/Makefile
  head/audio/p5-Shout/pkg-plist

Modified: head/audio/p5-Shout/Makefile
==============================================================================
--- head/audio/p5-Shout/Makefile	Sun Feb  9 10:57:25 2014	(r343456)
+++ head/audio/p5-Shout/Makefile	Sun Feb  9 11:01:36 2014	(r343457)
@@ -12,13 +12,13 @@ COMMENT=	Perl glue for libshout MP3 stre
 
 LIB_DEPENDS=	libshout.so:${PORTSDIR}/audio/libshout2
 
-USES=		perl5 pkgconfig
-NO_STAGE=	yes
+USES=		perl5 pkgconfig shebangfix
 USE_PERL5=	configure
 
-MAN3=		Shout.3
-
 DOCSDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
+SHEBANG_FILES=	*.pl
+
+MAKE_ENV+=	DESTDIR="${STAGEDIR}"
 
 post-patch:
 	${REINPLACE_CMD} -i '' -e 's/CCFLAGS/INC/' ${WRKSRC}/Makefile.PL
@@ -26,10 +26,13 @@ post-patch:
 post-configure:
 	@${PERL} -i -pe '$$_ .= " ${PTHREAD_LIBS}" if /^LDDLFLAGS/;' ${WRKSRC}/Makefile
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-install:
-.ifndef(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/example*.pl ${DOCSDIR}
-.endif
+	${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Shout/Shout.so
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/example*.pl ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/audio/p5-Shout/pkg-plist
==============================================================================
--- head/audio/p5-Shout/pkg-plist	Sun Feb  9 10:57:25 2014	(r343456)
+++ head/audio/p5-Shout/pkg-plist	Sun Feb  9 11:01:36 2014	(r343457)
@@ -5,6 +5,7 @@
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Shout/autosplit.ix
 %%SITE_PERL%%/%%PERL_ARCH%%/example.pl
 %%SITE_PERL%%/%%PERL_ARCH%%/example2.pl
+%%PERL5_MAN3%%/Shout.3.gz
 %%PORTDOCS%%%%DOCSDIR%%/example.pl
 %%PORTDOCS%%%%DOCSDIR%%/example2.pl
 %%PORTDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402091101.s19B1aPh072112>