1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Update to 1.4.3

PR:		158490
Submitted by:	Ports Fury
VS:	If the change is related to a security vulnerability, include one or
This commit is contained in:
Martin Wilke 2011-07-02 07:37:30 +00:00
parent 8ba201d504
commit 71ba4045a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276831
4 changed files with 56 additions and 109 deletions

View File

@ -7,40 +7,76 @@
#
PORTNAME= photofilmstrip
PORTVERSION= 1.4.1
PORTVERSION= 1.4.3
CATEGORIES= multimedia python
MASTER_SITES= SF/photostoryx/${PORTNAME}/${PORTVERSION}/
MASTER_SITES= SF/photostoryx/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= PhotoFilmStrip creates movies out of your pictures
COMMENT= Creates movies out of your pictures
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
mencoder:${PORTSDIR}/multimedia/mencoder \
mplayer:${PORTSDIR}/multimedia/mplayer
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_PYTHON= yes
USE_WX= 2.8+
WX_COMPS= python:lib
WX_UNICODE= yes
USE_GETTEXT= yes
ALL_TARGET= compile
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
PFSDIR= ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
pre-everything::
@${ECHO_MSG} "To run ${PORTNAME}, you must have sqlite3 installed with extensions enabled."
ALL_TARGET= compile
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/Makefile.rules
@${REINPLACE_CMD} -e 's|^appdir.*|appdir = ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' ${WRKSRC}/Makefile.rules
@${REINPLACE_CMD} -e 's|prefix=.*||' \
-e 's|export.*|export PFSDIR=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' \
-e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/build/${PORTNAME}
@${REINPLACE_CMD} -e 's|prefix=.*||' \
-e 's|export.*|export PFSDIR=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' \
-e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/build/${PORTNAME}-cli
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/build/${PORTNAME}.desktop
@${REINPLACE_CMD} -e \
's|make -C|$$(MAKE) -C|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
'/^prefix/s|=.*|= ${PREFIX}|g ; \
/^appdir/s|=.*|= ${PFSDIR}|g' ${WRKSRC}/Makefile.rules
@${REINPLACE_CMD} -e \
'/^prefix/d ; \
/^export/s|=.*|=${PFSDIR}|g ; \
s|/usr/bin/python|${PYTHON_CMD}|g' ${WRKSRC}/build/${PORTNAME}
@${REINPLACE_CMD} -e \
'/^prefix/d ; \
/^export/s|=.*|=${PFSDIR}|g ; \
s|/usr/bin/python|${PYTHON_CMD}|g' ${WRKSRC}/build/${PORTNAME}-cli
@${REINPLACE_CMD} -e \
'/^Version/s|=.*|=${PORTVERION}|g ; \
s|/usr/share/pixmaps/||g ; \
/^Categories/s|=.*|=Application;AudioVideo;AudioVideoEditing|g ; \
/^OnlyShowIn/d' ${WRKSRC}/build/${PORTNAME}.desktop
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME}-cli ${PREFIX}/bin
@${MKDIR} ${PFSDIR}
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}-cli.py ${PFSDIR}
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}-gui.py ${PFSDIR}
.for dir in cli core gui lib res
@(cd ${WRKSRC}/src && \
${FIND} ${dir} ! \( -name '*.bak' -o -name '*.orig' \) | \
${CPIO} -pdm -R ${SHAREOWN}:${SHAREGRP} ${PFSDIR})
.endfor
@${MKDIR} ${PFSDIR}/doc
${INSTALL_DATA} ${WRKSRC}/doc/photofilmstrip/* ${PFSDIR}/doc
@${FIND} ${PFSDIR} -type d | ${XARGS} ${CHMOD} a+rx
@${FIND} ${PFSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.desktop ${PREFIX}/share/applications
.for lang in cs de en fr it ko pt
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/PhotoFilmStrip.mo
.endfor
@${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.xpm ${PREFIX}/share/pixmaps
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (photofilmstrip-1.4.1.tar.gz) = ec34fd5437fe73b08f477ecb8cdf609b18aa334b82a5f7ebbcdfc0c0906417ae
SIZE (photofilmstrip-1.4.1.tar.gz) = 21854312
SHA256 (photofilmstrip-1.4.3.tar.gz) = 63cbd346cc17215ae8b23ab602d1167317d503b4d43df9e013cc469397614116
SIZE (photofilmstrip-1.4.3.tar.gz) = 21905862

View File

@ -1,73 +0,0 @@
--- ./Makefile.orig 2010-12-20 01:52:21.000000000 -0800
+++ ./Makefile 2011-02-05 12:17:23.000000000 -0800
@@ -7,7 +7,7 @@
compile:
python -c "import compileall, re;compileall.compile_dir('.', rx=re.compile('/[.]svn'), force=True, quiet=True)"
python -OO -c "import compileall, re;compileall.compile_dir('.', rx=re.compile('/[.]svn'), force=True, quiet=True)"
-
+
target=`echo $@`; \
make -C po $$target
@@ -15,7 +15,7 @@
if [ -e ./dist ] ; then rm -r ./dist ; fi
find . -name "*.pyc" -exec rm {} ';'
find . -name "*.pyo" -exec rm {} ';'
-
+
target=`echo $@`; \
make -C po $$target
@@ -23,23 +23,35 @@
install:
$(mkdir) "$(DESTDIR)$(appdir)"
- cp -r "$(srcdir)/src/cli/" "$(DESTDIR)$(appdir)"
- cp -r "$(srcdir)/src/core/" "$(DESTDIR)$(appdir)"
- cp -r "$(srcdir)/src/gui/" "$(DESTDIR)$(appdir)"
- cp -r "$(srcdir)/src/lib/" "$(DESTDIR)$(appdir)"
- cp -r "$(srcdir)/src/res/" "$(DESTDIR)$(appdir)"
+ chmod 0755 $(DESTDIR)$(appdir)
+ cp -r "$(srcdir)/src/cli" "$(DESTDIR)$(appdir)/"
+ cp -r "$(srcdir)/src/core" "$(DESTDIR)$(appdir)/"
+ $(mkdir) "$(DESTDIR)$(appdir)/doc"
+ cp -r "$(srcdir)/doc/$(appname)/" "$(DESTDIR)$(appdir)/doc/"
+ cp -r "$(srcdir)/src/gui" "$(DESTDIR)$(appdir)/"
+ rm -f $(DESTDIR)$(appdir)/gui/*.orig
+ cp -r "$(srcdir)/src/lib" "$(DESTDIR)$(appdir)/"
+ cp -r "$(srcdir)/src/res" "$(DESTDIR)$(appdir)/"
cp "$(srcdir)/src/$(appname)-cli.py" "$(DESTDIR)$(appdir)/"
cp "$(srcdir)/src/$(appname)-gui.py" "$(DESTDIR)$(appdir)/"
-
+ chmod -R 0644 $(DESTDIR)$(appdir)/*
+ find $(DESTDIR)$(appdir) -type d -exec chmod 0755 {} \;
+
$(mkdir) "$(DESTDIR)$(desktopdir)"
+ chmod 0755 $(DESTDIR)$(desktopdir)
cp "$(srcdir)/build/$(appname).desktop" "$(DESTDIR)$(desktopdir)/"
+ chmod 0644 $(DESTDIR)$(desktopdir)/$(appname).desktop
$(mkdir) "$(DESTDIR)$(pixmapdir)"
+ chmod 0755 $(DESTDIR)$(pixmapdir)
cp "$(srcdir)/build/$(appname).xpm" "$(DESTDIR)$(pixmapdir)/"
-
+ chmod 0644 $(DESTDIR)$(pixmapdir)/$(appname).xpm
+
$(mkdir) "$(DESTDIR)$(bindir)"
cp "$(srcdir)/build/$(appname)" "$(DESTDIR)$(bindir)/"
+ chmod 0755 $(DESTDIR)$(bindir)/$(appname)
cp "$(srcdir)/build/$(appname)-cli" "$(DESTDIR)$(bindir)/"
-
+ chmod 0755 $(DESTDIR)$(bindir)/$(appname)-cli
+
target=`echo $@`; \
make -C po $$target
@@ -49,7 +61,7 @@
rm -f "$(DESTDIR)$(pixmapdir)/$(appname).xpm"
rm -f "$(DESTDIR)$(bindir)/$(appname)"
rm -f "$(DESTDIR)$(bindir)/$(appname)-cli"
-
+
target=`echo $@`; \
make -C po $$target

View File

@ -1,16 +0,0 @@
--- ./build/photofilmstrip.desktop.orig 2011-02-05 12:17:33.000000000 -0800
+++ ./build/photofilmstrip.desktop 2011-02-05 12:18:17.000000000 -0800
@@ -1,5 +1,5 @@
[Desktop Entry]
-Version=1.3.4
+Version=1.4.0
Encoding=UTF-8
Name=PhotoFilmStrip
GenericName=Slideshow Creator
@@ -9,5 +9,4 @@
Terminal=false
Type=Application
StartupNotify=false
-Categories=AudioVideo;
-OnlyShowIn=GNOME;XFCE;
+Categories=Application;AudioVideo;AudioVideoEditing