summaryrefslogtreecommitdiffstats
path: root/textproc/py-html2text/Makefile
blob: 9cc036a279f8c90260b30cd127ba7a5074312777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# New ports collection makefile for:	html2text
# Date created:		23 April 2007
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	html2text
PORTVERSION=	2.2.8
CATEGORIES=	textproc python
MASTER_SITES=	CENKES
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	Convert HTML into clean plain ASCII text

USE_PYTHON=	yes
USE_PYDISTUTILS=yes

post-patch:
	@${REINPLACE_CMD} -e '1s|.*|#!${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME}.py

post-install:
	@${CHMOD} 755 ${PYTHON_SITELIBDIR}/${PORTNAME}.py
	@${LN} -sf ${PYTHON_SITELIBDIR}/${PORTNAME}.py ${PREFIX}/bin/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud