ports/179106: [MAINTAINER] games/anki: Trim new Uses, update WWW, fix pkg-plist
nemysis
nemysis at gmx.ch
Thu May 30 14:20:00 UTC 2013
>Number: 179106
>Category: ports
>Synopsis: [MAINTAINER] games/anki: Trim new Uses, update WWW, fix pkg-plist
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu May 30 14:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue Jan 29 15:02:50 EST 2013
>Description:
- Trim new Uses
- Trim Desktop entry file
- Update WWW
- Fix pkg-plist
Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
Build log
https://redports.org/buildarchive/20130530133001-13068/
>Fix:
--- anki-2.0.8.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/anki/Makefile ./Makefile
--- /usr/ports/games/anki/Makefile 2013-04-26 16:36:09.000000000 +0200
+++ ./Makefile 2013-05-30 12:55:55.000000000 +0200
@@ -13,9 +13,7 @@
LICENSE= AGPLv3 # (or later)
-BUILD_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
-RUN_DEPENDS:= ${BUILD_DEPENDS} \
- ${PYTHON_PKGNAMEPREFIX}pyaudio>0:${PORTSDIR}/audio/py-pyaudio \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyaudio>0:${PORTSDIR}/audio/py-pyaudio \
${PYTHON_PKGNAMEPREFIX}sqlalchemy>0:${PORTSDIR}/databases/py-sqlalchemy \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
${PYTHON_PKGNAMEPREFIX}qt4-network>=4.4:${PORTSDIR}/net/py-qt4-network \
@@ -23,15 +21,17 @@
${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2 \
${PYTHON_PKGNAMEPREFIX}qt4-webkit>=4.4:${PORTSDIR}/www/py-qt4-webkit
+USES= desktop-file-utils gettext:run shared-mime-info
USE_PYTHON= -2.7
USE_QT4= network_run webkit_run
-USES= gettext:run
MAN1= ${PORTNAME}.1
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|' \
${WRKSRC}/runanki
+ @${REINPLACE_CMD} -e 's|^Categories=.*|Categories=Education;Languages;KDE;Qt;Game;|' \
+ ${WRKSRC}/${PORTNAME}.desktop
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@@ -56,6 +56,5 @@
${INSTALL_DATA} ${WRKSRC}/${p} \
${PREFIX}/share/pixmaps
.endfor
- @-update-mime-database ${PREFIX}/share/mime
.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/games/anki/pkg-descr ./pkg-descr
--- /usr/ports/games/anki/pkg-descr 2013-01-24 11:57:57.000000000 +0100
+++ ./pkg-descr 2013-02-09 17:55:40.000000000 +0100
@@ -11,3 +11,4 @@
provided for Russian.
WWW: http://ankisrs.net/
+WWW: http://ankisrs.net/anki2.html
diff -ruN --exclude=CVS /usr/ports/games/anki/pkg-plist ./pkg-plist
--- /usr/ports/games/anki/pkg-plist 2013-01-24 11:57:57.000000000 +0100
+++ ./pkg-plist 2013-05-30 15:20:20.000000000 +0200
@@ -673,8 +673,8 @@
%%DATADIR%%/tests/support/invalid-ords.anki
%%DATADIR%%/tests/support/media.apkg
%%DATADIR%%/tests/support/mnemo.db
-%%DATADIR%%/tests/support/suspended12.anki
%%DATADIR%%/tests/support/supermemo1.xml
+%%DATADIR%%/tests/support/suspended12.anki
%%DATADIR%%/tests/support/text-2fields.txt
%%DATADIR%%/tests/support/text-tags.txt
%%DATADIR%%/tests/support/text-update.txt
@@ -727,8 +727,6 @@
%%DATADIR%%/tools/build_ui.sh
%%DATADIR%%/tools/tests.sh
share/applications/anki.desktop
-share/mime/application/x-anki.xml
-share/mime/application/x-apkg.xml
share/mime/packages/anki.xml
share/pixmaps/anki.png
share/pixmaps/anki.xpm
@@ -848,5 +846,3 @@
@dirrm %%DATADIR%%/anki/importing
@dirrm %%DATADIR%%/anki
@dirrm %%DATADIR%%
- at exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true
- at unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true
--- anki-2.0.8.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list