From 788b79066d2cf6c6172721bb888bb367b9cac304 Mon Sep 17 00:00:00 2001 From: John Marino Date: Fri, 14 Dec 2012 22:14:18 +0100 Subject: [PATCH] Import comms/pyla version 1.1.7.1 --- comms/pyla/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++ comms/pyla/distinfo | 2 ++ comms/pyla/files/pyla.sh | 3 +++ comms/pyla/pkg-descr | 14 +++++++++++ 4 files changed, 71 insertions(+) create mode 100644 comms/pyla/Makefile create mode 100644 comms/pyla/distinfo create mode 100644 comms/pyla/files/pyla.sh create mode 100644 comms/pyla/pkg-descr diff --git a/comms/pyla/Makefile b/comms/pyla/Makefile new file mode 100644 index 00000000000..fe132d9f314 --- /dev/null +++ b/comms/pyla/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: pylafax +# Date created: 6 January 2005 +# Whom: Michael Reifenberger (mike@Reifenberger.com) +# +# $FreeBSD: ports/comms/pyla/Makefile,v 1.5 2012/11/17 05:55:01 svnexp Exp $ +# + +PORTNAME= pyla +PORTVERSION= 1.1.7.1 +CATEGORIES= comms python +MASTER_SITES= http://www.teamsw.it/pyla/download/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pyla${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= mike@Reifenberger.com +COMMENT= Hylafax client written in Python + +#LIB_DEPENDS= lirc_client.0:${PORTSDIR}/comms/lirc + +WRKSRC= ${WRKDIR}/${PORTNAME} +DATADIR= ${PREFIX}/lib/pyla + +USE_PYTHON= yes +PLIST= ${WRKDIR}/pkg-plist + +.include + +do-build: + @(cd ${FILESDIR} && ${CP} pyla.sh ${WRKDIR}) + @(cd ${WRKDIR} && ${REINPLACE_CMD} \ + -e "s|%%PREFIX%%|${PREFIX}|g;" \ + -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g;" \ + pyla.sh) + @(cd ${WRKSRC} && ${CP} language.en language.db) + +pre-install: + @${ECHO_CMD} '@exec ${MKDIR} %D/lib/pyla' > ${PLIST} + @${ECHO_CMD} 'bin/pyla' >> ${PLIST} + @${ECHO_CMD} 'lib/pyla/pyla.pyw' >> ${PLIST} + @${FIND} ${WRKSRC}/ -type f | \ + ${SED} -e "s:^${WRKSRC}/:lib/pyla/:g" >> ${PLIST} + @${FIND} -d ${WRKSRC} -type d | \ + ${SED} -e "s:^${WRKSRC}:@dirrm lib/pyla:g" >> ${PLIST} + +do-install: + @${MKDIR} ${DATADIR} + ${INSTALL} -m755 ${WRKDIR}/pyla.sh ${PREFIX}/bin/pyla + ${TAR} -C ${WRKSRC} --exclude CVS -cf - . | \ + ${TAR} -C ${DATADIR} --unlink -xf - + +.include diff --git a/comms/pyla/distinfo b/comms/pyla/distinfo new file mode 100644 index 00000000000..2fd712ade07 --- /dev/null +++ b/comms/pyla/distinfo @@ -0,0 +1,2 @@ +SHA256 (pyla1.1.7.1.tgz) = 1c624ba6986569e6085e9ba10b47357e19165f4928b3ba9c8602872da021516b +SIZE (pyla1.1.7.1.tgz) = 946055 diff --git a/comms/pyla/files/pyla.sh b/comms/pyla/files/pyla.sh new file mode 100644 index 00000000000..d5610078c8b --- /dev/null +++ b/comms/pyla/files/pyla.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec %%PYTHON_CMD%% %%PREFIX%%/lib/pyla/pyla.py diff --git a/comms/pyla/pkg-descr b/comms/pyla/pkg-descr new file mode 100644 index 00000000000..388829a0220 --- /dev/null +++ b/comms/pyla/pkg-descr @@ -0,0 +1,14 @@ +What's Pyla Project? + Pyla wants to be a new Hylafax client entirely + written using the Python interpreter. + +What can I do with Pyla? + With Pyla you can basically send and manage faxes. + It actually mimics WHFC in its interface so if you like WHFC, + you'll probably feel comfortable with Pyla too. + +Why should I use Pyla? + There're a lot of Hylafax clients out there, + Pyla's main advantage is probably its platform independence. + +WWW: http://www.teamsw.it/pyla/ -- 2.41.0