aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ecromedos/Makefile
blob: 7486eb4498457724293deccc9fee0aca586e7d9c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$

PORTNAME=   ecromedos
PORTVERSION=    2.1.0
PORTREVISION=   0
CATEGORIES= textproc print www
MASTER_SITES=   http://www.ecromedos.net/files/src/${PORTVERSION}/

MAINTAINER= nivit@FreeBSD.org
COMMENT=    Document preparation system that allows concurrent publication

LICENSE=    GPLv2

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
        ${PYTHON_SITELIBDIR}/libxslt.py:${PORTSDIR}/textproc/py-libxslt \
        convert:${PORTSDIR}/graphics/ImageMagick \
        pygmentize:${PORTSDIR}/textproc/py-pygments

NO_BUILD=   yes

USES=       python:2
USE_GNOME=  libxml2 libxslt
USE_TEX=    latex

post-patch:
    @(cd ${WRKSRC} && \
    ${REINPLACE_CMD} \
        -e 's|^\#!${SETENV} python|&2|1' \
        -e 's|[^!]/usr/bin|${LOCALBASE}/bin|g' \
        -e 's|%%ETCDIR%%|${ETCDIR}|g' \
        bin/${PORTNAME} etc/ecmds.conf lib/ecmds/configreader.py)

do-install:
    @${MKDIR} ${STAGEDIR}${DATADIR}/bin
    @${MKDIR} ${STAGEDIR}${ETCDIR} 
    (cd ${WRKSRC} ; \
    ${COPYTREE_SHARE} "data lib transform" ${STAGEDIR}${DATADIR} \
        "-not ( -name "*.orig" -or -name "*.bak" )" ; \
    ${INSTALL_DATA} etc/ecmds.conf ${STAGEDIR}${ETCDIR}/ecmds.conf.sample ; \
    ${INSTALL_DATA} etc/plugins.conf ${STAGEDIR}${ETCDIR}/plugins.conf.sample ; \
    ${INSTALL_SCRIPT} bin/${PORTNAME} ${STAGEDIR}${DATADIR}/bin/${PORTNAME})
    @(cd ${STAGEDIR}${PREFIX}/bin ; \
    ${LN} -s ../${DATADIR_REL}/bin/${PORTNAME}  ecmds ; \
    ${LN} -s ../${DATADIR_REL}/bin/${PORTNAME} ${PORTNAME})

.include <bsd.port.mk>