mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
9c58fe8c93
- Fix shebang for the client script - Fix DOS line endings to avoid script execution issues - Remove easy_install dependency - Convert to PYDISTUTILS_AUTOPLIST - Bump PORTREVISION to enforce a cleanup for the easy_install references With hat: python@ Approved by: portmgr (implicit)
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pwytter
|
|
PORTVERSION= 0.8
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-im www python
|
|
MASTER_SITES= GOOGLE_CODE
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Free multi-platform Twitter client written in Python
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
${PYTHON_SITELIBDIR}/PIL/_imaging.so:${PORTSDIR}/graphics/py-imaging \
|
|
${PYTHON_PKGNAMEPREFIX}simplejson>=1.7.1:${PORTSDIR}/devel/py-simplejson
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
USES= gettext zip dos2unix
|
|
USE_PYTHON= 2
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
DOS2UNIX_GLOB = *.py
|
|
|
|
post-patch:
|
|
@${RM} -rf ${WRKSRC}/twclient/simplejson
|
|
@${REINPLACE_CMD} -e "s|'simplejson|}, #&|" \
|
|
-e "s|pwParam|pwCache','&|" \
|
|
-e "s|d\[p\]|d\['share/'+p\]|g" \
|
|
-e 's|text",|${DATADIR_REL}/text",|' \
|
|
-e 's|media",|${DATADIR_REL}/media",|' \
|
|
-e 's|theme",|${DATADIR_REL}/theme",|' \
|
|
-e 's|\\\\|/|' \
|
|
-e "/import ez_setup/d" \
|
|
-e "/ez_setup.use_setuptools()/d" ${WRKSRC}/setup.py
|
|
@${REINPLACE_CMD} \
|
|
-e 's|locale_path = .*|locale_path = "${PREFIX}/share/locale"|' \
|
|
-e '1,3d' \
|
|
-e 's|/usr/bin/python|${PYTHON_CMD}|' \
|
|
${WRKSRC}/pwytter.py
|
|
@${REINPLACE_CMD} -e 's|media"|${DATADIR}/&|' ${WRKSRC}/pwytter.py \
|
|
${WRKSRC}/twclient/__init__.py
|
|
@${REINPLACE_CMD} -e "s|theme'|${DATADIR}/&|" ${WRKSRC}/pwTheme.py
|
|
@${FIND} ${WRKSRC}/locale -name pwytter.po -delete
|
|
|
|
.include <bsd.port.mk>
|