aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex2slides/Makefile
blob: 0ba129b8b3491172feb3a10489b151c31fbb89e1 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   latex2slides
PORTVERSION=    1.0
PORTREVISION=   6
CATEGORIES= print
MASTER_SITES=   SF
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Produces a set of HTML/JPEG slides from a TeX or LaTeX source

RUN_DEPENDS=    convert:${PORTSDIR}/graphics/ImageMagick \
        ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter

USE_PYTHON= yes
USE_TEX=    dvipsk:run
NO_BUILD=   yes
PLIST_SUB=  PORTNAME="${PORTNAME}" PORTVERSION="${PORTVERSION}"

MANCOMPRESSED=  yes
MAN1=       latex2slides.1

post-patch:
.for file in install latex2slides
    @${REINPLACE_CMD} -e "s,'/usr/bin/,'${PREFIX}/bin/,g ; \
         s,'/usr/share/latex2slides/,'${DATADIR}/,g ; \
         s,'/usr/share/man/,'${MANPREFIX}/man/,g" ${WRKSRC}/${file}
.endfor

do-install:
    @(cd ${WRKSRC} ; ${PYTHON_CMD} ./install)

.include <bsd.port.mk>