freebsd-ports/comms/pyla/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

45 lines
1.2 KiB
Makefile

# Created by: Michael Reifenberger (mike@Reifenberger.com)
# $FreeBSD$
PORTNAME= pyla
PORTVERSION= 1.1.7.1
CATEGORIES= comms python
#MASTER_SITES= http://www.teamsw.it/pyla/download/
MASTER_SITES= LOCAL/mr
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyla${PORTVERSION}
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
USES= python tar:tgz
PLIST= ${WRKDIR}/pkg-plist
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} '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 -empty | \
${SED} -e "s:^${WRKSRC}:@dir lib/pyla:g" >> ${PLIST}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL} -m755 ${WRKDIR}/pyla.sh ${STAGEDIR}${PREFIX}/bin/pyla
${TAR} -C ${WRKSRC} --exclude CVS -cf - . | \
${TAR} -C ${STAGEDIR}${DATADIR} --unlink -xf -
.include <bsd.port.mk>