2013-09-21 01:17:30 +02:00
|
|
|
# Created by: Nicola Vitale <nivit@email.it>
|
2006-07-09 15:08:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ecromedos
|
2015-02-16 22:16:34 +01:00
|
|
|
PORTVERSION= 2.1.0
|
|
|
|
PORTREVISION= 0
|
2006-07-09 15:08:17 +02:00
|
|
|
CATEGORIES= textproc print www
|
2015-02-16 22:16:34 +01:00
|
|
|
MASTER_SITES= http://www.ecromedos.net/files/src/${PORTVERSION}/
|
2006-07-09 15:08:17 +02:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2014-08-03 16:15:08 +02:00
|
|
|
COMMENT= Document preparation system that allows concurrent publication
|
2006-07-09 15:08:17 +02:00
|
|
|
|
2015-02-16 22:16:34 +01:00
|
|
|
LICENSE= GPLv2
|
2006-07-09 15:08:17 +02:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2 \
|
|
|
|
${PYTHON_SITELIBDIR}/libxslt.py:textproc/py-libxslt \
|
|
|
|
convert:graphics/ImageMagick \
|
|
|
|
pygmentize:textproc/py-pygments
|
2006-07-09 15:08:17 +02:00
|
|
|
|
2015-02-16 22:16:34 +01:00
|
|
|
NO_BUILD= yes
|
2006-07-09 15:08:17 +02:00
|
|
|
|
2015-02-16 22:16:34 +01:00
|
|
|
USES= python:2
|
|
|
|
USE_GNOME= libxml2 libxslt
|
|
|
|
USE_TEX= latex
|
2006-07-09 15:08:17 +02:00
|
|
|
|
|
|
|
post-patch:
|
2015-02-16 22:16:34 +01:00
|
|
|
@(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)
|
2006-07-09 15:08:17 +02:00
|
|
|
|
|
|
|
do-install:
|
2015-02-16 22:16:34 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/bin
|
2015-10-08 17:12:22 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
2015-02-16 22:16:34 +01:00
|
|
|
(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})
|
2006-07-09 15:08:17 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|