aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-resume/Makefile
blob: bdce89ad220744655b7527817c2750fc8bfae75f (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
# ex:ts=8
# Ports collection makefile for:    latex-res
# Date created:         Jul 30, 2007
# Whom:             ijliao
#
# $FreeBSD$

PORTNAME=   resume
PORTVERSION=    20010823
PORTREVISION=   3
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib/${PORTNAME}
PKGNAMEPREFIX=  latex-
DISTNAME=   res
EXTRACT_SUFX=   .cls
DIST_SUBDIR=    ${PKGNAMEPREFIX}${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A resume class for LaTeX

BUILD_DEPENDS=  mktexlsr:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX-base

NO_BUILD=   yes
NO_WRKSUBDIR=   yes
EXTRACT_CMD=    ${CP}
EXTRACT_BEFORE_ARGS=    # empty
EXTRACT_AFTER_ARGS= .

TEXMFDIR=   share/texmf
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr
CLASSDIR=   ${TEXMFDIR}/tex/latex/${PORTNAME}
CLASS_FILES=    ${DISTFILES}

PLIST_SUB=  MKTEXLSR=${MKTEXLSR} \
        CLASSDIR=${CLASSDIR}

do-install:
    @${MKDIR} ${PREFIX}/${CLASSDIR}
    ${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}

post-install:
    @${MKTEXLSR}

.include <bsd.port.mk>