View | Details | Raw Unified | Return to bug 85739
Collapse All | Expand All

(-)code2html/Makefile (-15 / +8 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	code2html
8
PORTNAME=	code2html
9
PORTVERSION=	0.9
9
PORTVERSION=	0.9.1
10
CATEGORIES=	textproc
10
CATEGORIES=	textproc
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
12
		http://www.palfrader.org/code2html/all/
12
		http://www.palfrader.org/code2html/all/
Lines 15-42 Link Here
15
MAINTAINER=	jedgar@FreeBSD.org
15
MAINTAINER=	jedgar@FreeBSD.org
16
COMMENT=	Sourcecode to HTML converter
16
COMMENT=	Sourcecode to HTML converter
17
17
18
.if !exists(/usr/bin/bzip2)
19
RUN_DEPENDS=	bzip2:${PORTSDIR}/archivers/bzip2
20
21
BZIP2BASE=	${PREFIX}
22
.else
23
BZIP2BASE=	/usr
24
.endif
25
26
NO_BUILD=	yes
18
NO_BUILD=	yes
27
USE_REINPLACE=	yes
19
USE_REINPLACE=	yes
20
USE_PERL5_RUN=	yes
28
21
29
MAN1=		code2html.1
22
MAN1=		code2html.1
30
PLIST_FILES=	bin/code2html
23
PLIST_FILES=	bin/code2html
31
24
32
do-configure:
25
do-configure:
33
	@${MV} ${WRKSRC}/code2html ${WRKSRC}/code2html.orig
26
	@${REINPLACE_CMD} \
34
	@${SED} -e 's|/usr/bin/bzip2|${BZIP2BASE}/bin/bzip2|' \
27
		-e 's|/usr/bin/bzip2|${BZIP2_CMD}|' \
35
		-e 's|/bin/gzip|/usr/bin/gzip|' \
28
		-e 's|/bin/gzip|/usr/bin/gzip|' \
36
		-e 's|/etc/code|${PREFIX}/etc/code|' \
29
		-e 's|/etc/|${PREFIX}/etc/|' \
37
		< ${WRKSRC}/code2html.orig > ${WRKSRC}/code2html
30
		${WRKSRC}/code2html
38
	@${REINPLACE_CMD} -e 's|/etc/code|${PREFIX}/etc/code|' \
31
	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' \
39
	    ${WRKSRC}/code2html.1
32
		${WRKSRC}/code2html.1
40
33
41
do-install:
34
do-install:
42
	${INSTALL_SCRIPT} ${WRKSRC}/code2html ${PREFIX}/bin
35
	${INSTALL_SCRIPT} ${WRKSRC}/code2html ${PREFIX}/bin
(-)code2html/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (code2html-0.9.tar.gz) = 2a62840b9238a003f0d9f0527137bd1f
1
MD5 (code2html-0.9.1.tar.gz) = 368377696547026c79c51a274571dc39
2
SIZE (code2html-0.9.tar.gz) = 36645
2
SIZE (code2html-0.9.1.tar.gz) = 39811

Return to bug 85739