mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support stage
This commit is contained in:
parent
d224d178e7
commit
db646a635f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350842
@ -13,19 +13,17 @@ COMMENT= Perl script for renaming multiple files
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
RUN_DEPENDS= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
|
||||
p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/trunk
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_PERL5= run
|
||||
USES= gettext perl5
|
||||
USES= gettext perl5 tar:bzip2
|
||||
NO_BUILD= yes
|
||||
|
||||
MAN1= gprename.1
|
||||
|
||||
NO_STAGE= yes
|
||||
post-extract:
|
||||
@${RM} -rf ${WRKSRC}/build
|
||||
|
||||
@ -34,14 +32,13 @@ post-patch:
|
||||
'/^#!/s|/.*|${PERL}|' ${WRKSRC}/bin/gprename
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|/usr/local|${PREFIX}| ; \
|
||||
s|(DESTDIR)|(DESTDIR)${PREFIX}| ; \
|
||||
s|$$(CURDIR)|$$(.CURDIR)| ; \
|
||||
s|uninstall build|build| ; \
|
||||
s|share/man|man|' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/gprename
|
||||
man/man1/gprename.1.gz
|
||||
share/applications/gprename-nautilus-actions.xml
|
||||
share/applications/gprename.desktop
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
|
Loading…
Reference in New Issue
Block a user