summaryrefslogtreecommitdiffstats
path: root/print/lgrind/Makefile
blob: 192d319469f3b4e159c868f79934a014b9b285f5 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# New ports collection makefile for: lgrind
# Date created:				20 April 2002
# Whom:					Kay Lehmann
#
# $FreeBSD$
#

PORTNAME=	lgrind
PORTVERSION=	3.67
CATEGORIES=	print
#MASTER_SITES=	ftp://ftp.dante.de/tex-archive/support/ \
MASTER_SITES=	${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR=support
DISTNAME=	${PORTNAME}
DISTFILES=	${PORTNAME}/source/Makefile \
		${PORTNAME}/source/README \
		${PORTNAME}/FAQ \
		${PORTNAME}/README \
		${PORTNAME}/Makefile \
		${PORTNAME}/lgrind.dtx \
		${PORTNAME}/lgrind.dtx \
		${PORTNAME}/lgrind.gls \
		${PORTNAME}/lgrind.ind \
		${PORTNAME}/lgrind.ins \
		${PORTNAME}/lgrindef \
		${PORTNAME}/source/lgrind.1 \
		${PORTNAME}/source/lgrind.c \
		${PORTNAME}/source/lgrindef.5 \
		${PORTNAME}/source/lgrindef.c \
		${PORTNAME}/source/lgrindef.h \
		${PORTNAME}/source/lgutil.c \
		${PORTNAME}/source/regexp.c \
		${PORTNAME}/source/regexp.h \
		${PORTNAME}/source/retest.c \
		${PORTNAME}/source/v2lg.c
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	${PORTNAME}.tar.gz

PATCH_SITES=	http://home.arcor.de/kay_lehmann/freebsd/ports/lgrind/
PATCHFILES=	patch-Makefile.gz patch-source_Makefile.gz

MAINTAINER=	kay_lehmann@web.de
COMMENT=	Produce beautiful listings of source code with LaTeX

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

MAN1=		lgrind.1
MAN5=		lgrindef.5
MANCOMPRESSED=	yes

IGNOREFILES=	${PORTNAME}.tar.gz

NO_CDROM=	"According to the README-file there is a license issue because of non-free code. Check the README file within the source tarball."
NO_PACKAGE=	"According to the README-file there is a license issue because of non-free code. Check the README file within the source tarball."
RESTRICTED=	"No response from author of some code this port is based on"

pre-everything:
	@${MKDIR} ${DISTDIR}/${PORTNAME}

pre-fetch:	fetchsrctarball extractsrctarball

fetchtarball-list:
	file=${PORTNAME}${EXTRACT_SUFX}; \
	for site in ${MASTER_SITES:S^%SUBDIR%^${MASTER_SITE_SUBDIR}^}; do \
		${ECHO_MSG} ">>${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${file} not fetched"; \
	done;

fetchsrctarball:
	@cd ${_DISTDIR}; \
	file=${PORTNAME}${EXTRACT_SUFX}; \
	if [ -e $$file ]; then \
		exit; \
	fi; \
	${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \
	for site in ${MASTER_SITES:S^%SUBDIR%^${MASTER_SITE_SUBDIR}^}; do \
		${ECHO_MSG} ">> Attempting to fetch from $${site}."; \
		if ${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
		    $${site}$${file}; then \
			exit; \
		fi; \
	done; \
	${ECHO_MSG} ">> Couldn't fetch $$file."; \
	${ECHO_MSG} ">> Please try to retrieve this file manually into"; \
	${ECHO_MSG} ">> ${_DISTDIR} and try again."; \
	exit 1

extractsrctarball:
	${GUNZIP_CMD} -qc ${DISTDIR}/${DIST_SUBDIR}/${IGNOREFILES} | tar -C ${DISTDIR}/${DIST_SUBDIR} -xf -; \
	exit

post-install:
	texhash

.include <bsd.port.mk>
OpenPOWER on IntegriCloud