svn commit: r351684 - head/multimedia/subtools
Rusmir Dusko
nemysis at FreeBSD.org
Mon Apr 21 13:50:31 UTC 2014
Author: nemysis
Date: Mon Apr 21 13:50:30 2014
New Revision: 351684
URL: http://svnweb.freebsd.org/changeset/ports/351684
QAT: https://qat.redports.org/buildarchive/r351684/
Log:
- Update to 20081026
- Add USES tar:bzip2
- Remove LICENSE.TXT and TODO.TXT from DOCS
- Change REINPLACE
- Simplify build and installation handling
PR: ports/179131
Submitted by: nemysis (self)
Modified:
head/multimedia/subtools/Makefile (contents, props changed)
head/multimedia/subtools/distinfo
Modified: head/multimedia/subtools/Makefile
==============================================================================
--- head/multimedia/subtools/Makefile Mon Apr 21 13:42:23 2014 (r351683)
+++ head/multimedia/subtools/Makefile Mon Apr 21 13:50:30 2014 (r351684)
@@ -2,35 +2,41 @@
# $FreeBSD$
PORTNAME= subtools
-PORTVERSION= 20060508
-DISTVERSIONSUFFIX= alpha
+PORTVERSION= 20081026
CATEGORIES= multimedia
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}alpha
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
MAINTAINER= ports at FreeBSD.org
COMMENT= Command-line tools for movie subtitles in SubRipper format
-OPTIONS_DEFINE= DOCS
+WRKSRC= ${WRKDIR}/${PORTNAME}/src
+USES= tar:bzip2
USE_PYTHON= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}/src
-EXECS= srtshift srtrate
-PYEXECS= udvd2srt.py udvdshift.py
-PORTDOCS= CHANGELOG.TXT LICENSE.TXT README.TXT TODO.TXT
-PLIST_FILES= ${EXECS:S/^/bin\//} ${PYEXECS:S/^/bin\//}
+
+PLIST_FILES= bin/srtshift bin/srtrate bin/udvd2srt.py bin/udvdshift.py
+
+PORTDOCS= CHANGELOG.TXT README.TXT
+OPTIONS_DEFINE= DOCS
post-patch:
- @${REINPLACE_CMD} -e 's,
,,g;s,^.*#!.*python.*$$,#!${PYTHON_CMD},' ${WRKSRC}/*
+ @${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' \
+ ${WRKSRC}/*.py
do-build:
-.for EXEC in ${EXECS}
- cd ${WRKSRC} && ${CC} ${CFLAGS} -D${EXEC:U} -o ${EXEC} ${PORTNAME}.c
+.for f in srtshift srtrate
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -D${f:U} -o ${f} ${PORTNAME}.c
.endfor
do-install:
- ${INSTALL_PROGRAM} ${EXECS:S/^/${WRKSRC}\//} ${STAGEDIR}${PREFIX}/bin/
- ${INSTALL_SCRIPT} ${PYEXECS:S/^/${WRKSRC}\//} ${STAGEDIR}${PREFIX}/bin/
- ${INSTALL} -d ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S/^/${WRKSRC}\//} ${STAGEDIR}${DOCSDIR}/
+.for f in srtshift srtrate
+ @(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${f} ${STAGEDIR}${PREFIX}/bin/)
+.endfor
+.for f in *.py
+ @(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${f} ${STAGEDIR}${PREFIX}/bin/)
+.endfor
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/multimedia/subtools/distinfo
==============================================================================
--- head/multimedia/subtools/distinfo Mon Apr 21 13:42:23 2014 (r351683)
+++ head/multimedia/subtools/distinfo Mon Apr 21 13:50:30 2014 (r351684)
@@ -1,2 +1,2 @@
-SHA256 (subtools-20060508alpha.tar.gz) = e07dab5951d787ab8d364f8c72d726ddfcfffb660ca3d90e36b23ad0a9a64da5
-SIZE (subtools-20060508alpha.tar.gz) = 94411
+SHA256 (subtools-20081026.tar.bz2) = 373add3a9cb4bfe53144f757f6daaa99d4c6e7731ad513573bccaf0d685eb3c1
+SIZE (subtools-20081026.tar.bz2) = 2112351
More information about the svn-ports-all
mailing list