mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
7c4e5160f4
PR: ports/150788 Submitted by: Denis Shaposhnikov <dsh at bamus.cz>
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= anki
|
|
PORTVERSION= 1.0.1
|
|
PORTREVISION?= 0
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
USE_PYTHON= yes
|
|
USE_GETTEXT= yes
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
.if !defined(PKGNAMEPREFIX)
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
py*-qt4-core>=4.4:${PORTSDIR}/devel/py-qt4-core \
|
|
py*-sip>=4.6:${PORTSDIR}/devel/py-sip \
|
|
py*-matplotlib>=0.90.0:${PORTSDIR}/math/py-matplotlib \
|
|
py*-qt4-gui>=4.4:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
|
py*-anki>=0.9.9:${PORTSDIR}/games/py-anki \
|
|
py*-svg>=4.4:${PORTSDIR}/graphics/py-qt4-svg \
|
|
py*-network>=4.4:${PORTSDIR}/net/py-qt4-network \
|
|
py*-webkit>=4.4:${PORTSDIR}/www/py-qt4-webkit
|
|
|
|
USE_QT_VER= 4
|
|
QT_COMPONENTS= corelib gui
|
|
PYDISTUTILS_PKGNAME= ankiqt
|
|
|
|
PORT_VERBS= ankiqt
|
|
DESKTOP_ENTRIES= "${PORTNAME}" \
|
|
"${COMMENT}" \
|
|
"" \
|
|
"anki" \
|
|
"Education;Languages;Qt;" \
|
|
false
|
|
.else
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
py*-pysqlite>=0:${PORTSDIR}/databases/py-pysqlite23 \
|
|
py*-sqlalchemy>=0:${PORTSDIR}/databases/py-sqlalchemy \
|
|
py*-game>=0:${PORTSDIR}/devel/py-game \
|
|
py*-simplejson>=0:${PORTSDIR}/devel/py-simplejson \
|
|
py*-matplotlib>=0.90.0:${PORTSDIR}/math/py-matplotlib
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
PLIST= ${PKGDIR}/pkg-plist.py-anki
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/lib${PORTNAME}
|
|
.endif
|
|
|
|
post-patch:
|
|
.if !defined(PKGNAMEPREFIX)
|
|
@${REINPLACE_CMD} -e '/req/d' ${WRKSRC}/setup.py
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|