aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-pyx12/Makefile
blob: 5ac9fafd110d16392cd7a6e264116d48272be9aa (plain) (blame)
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
28
29
30
31
32
33
34
# Created by: john@zoner.org
# $FreeBSD$

PORTNAME=   pyx12
PORTVERSION=    1.5.0
PORTREVISION=   1
CATEGORIES= textproc python
MASTER_SITES=   SF
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pyx12-${PORTVERSION:S/.b/b/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Validate and convert HIPAA X12 documents

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
        ${PYTHON_SITELIBDIR}/libxslt.py:${PORTSDIR}/textproc/py-libxslt
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USE_PYTHON= yes
USE_BZIP2=  yes
USE_PYDISTUTILS=    yes
USE_PYTHON_PREFIX=  yes

MAN1=   x12valid.1 x12norm.1 x12xml.1 x12html.1 xmlx12.1
MAN5=   pyx12.conf.xml.5
SUB_FILES=  pkg-deinstall

NO_STAGE=   yes
post-install:
    ${PYTHON_CMD} ${WRKSRC}/bin/x12_build_pkl.py ${PREFIX}/share/pyx12/map/
    cd ${WRKSRC}/bin && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
    cd ${WRKSRC}/bin && ${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5

.include <bsd.port.mk>