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

(-)latexdiff/Makefile (-7 / +24 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	latexdiff
8
PORTNAME=	latexdiff
9
PORTVERSION=	0.3
9
PORTVERSION=	0.5
10
CATEGORIES=	print
10
CATEGORIES=	print perl5
11
MASTER_SITES=	${MASTER_SITE_TEX_CTAN}
11
MASTER_SITES=	${MASTER_SITE_TEX_CTAN}
12
MASTER_SITE_SUBDIR=	support
12
MASTER_SITE_SUBDIR=	support
13
DISTNAME=	${PORTNAME}
13
DISTNAME=	${PORTNAME}
Lines 15-34 Link Here
15
MAINTAINER=	Zeliboba@mail.ru
15
MAINTAINER=	Zeliboba@mail.ru
16
COMMENT=	Determine and mark up significant differences between latex files
16
COMMENT=	Determine and mark up significant differences between latex files
17
17
18
USE_PERL5_RUN=	yes
18
RUN_DEPENDS+=	${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
19
		bash:${PORTSDIR}/shells/bash
19
20
20
USE_GMAKE=	no
21
USE_PERL5_RUN=	yes
21
USE_ZIP=	yes
22
USE_ZIP=	yes
23
NO_BUILD=	yes
22
24
23
MAN1=		latexdiff.1 \
25
MAN1=		latexdiff.1 \
26
		latexdiff-vc.1 \
24
		latexrevise.1
27
		latexrevise.1
25
28
26
PLIST_FILES=	bin/latexdiff \
29
PLIST_FILES=	bin/latexdiff \
27
		bin/latexdiff-cvs \
30
		bin/latexdiff-fast \
28
		bin/latexdiff-so \
31
		bin/latexdiff-so \
32
		bin/latexdiff-vc \
33
		bin/latexdiff-wrap \
29
		bin/latexrevise
34
		bin/latexrevise
30
35
31
do-build:
36
post-patch:
32
# empty
37
	${REINPLACE_CMD} -e "s,\/bin\/bash,${LOCALBASE}\/bin\/bash," \
38
	${WRKSRC}/contrib/latexdiff-wrap
39
40
do-install:
41
	${MKDIR} ${PREFIX}/bin ${MANPREFIX}/man/man1
42
	( cd ${WRKSRC} && ${INSTALL_SCRIPT} latexdiff-fast latexdiff-so \
43
	latexdiff-vc latexrevise contrib/latexdiff-wrap ${PREFIX}/bin && \
44
	${INSTALL_MAN} latexdiff.1 latexdiff-vc.1 latexrevise.1 \
45
	${MANPREFIX}/man/man1 )
46
	${LN} -s ${PREFIX}/bin/latexdiff-so ${PREFIX}/bin/latexdiff
47
48
test:
49
	( cd ${WRKSRC} && ${MAKE} test-so test-fast )
33
50
34
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)latexdiff/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (latexdiff.zip) = 955a9738995c874f31aaf6bc0fda6882
1
MD5 (latexdiff.zip) = 70fdec50c25c5807e7ec071b88d4af49
2
SHA256 (latexdiff.zip) = 12d1265634bf609d2878cd6502e262e69dc18f6d907a979c4bb10af678290613
2
SHA256 (latexdiff.zip) = 7a99ac274c7552b1acf617d27866b40573469acafde0fb680231e58b2e08ddcf
3
SIZE (latexdiff.zip) = 291781
3
SIZE (latexdiff.zip) = 310412
(-)latexdiff/files/patch-Makefile (-49 lines)
Lines 1-49 Link Here
1
--- Makefile.orig	Tue Oct  4 04:36:54 2005
2
+++ Makefile	Fri Nov 11 15:00:19 2005
3
@@ -2,7 +2,7 @@
4
 # For the current setting you will need root permission but 
5
 # it is perfectly acceptable to choose user directories 
6
 #
7
-INSTALLPATH = /usr/local
8
+INSTALLPATH = ${PREFIX}
9
 INSTALLMANPATH = $(INSTALLPATH)/man
10
 INSTALLEXECPATH = $(INSTALLPATH)/bin
11
 
12
@@ -15,28 +15,31 @@
13
 	@echo "To install the version which uses the system Algorithm::Diff package type: make install-ext"
14
 	@echo " "
15
 
16
+dirs:
17
+	mkdir -p $(INSTALLMANPATH)/man1 $(INSTALLEXECPATH)
18
+
19
 install: install-so
20
 
21
 install-ext: install-latexdiff install-latexrevise install-latexdiff-cvs install-man
22
 
23
-install-so: install-latexdiff-so install-latexrevise install-latexdiff-cvs install-man
24
+install-so: dirs install-latexdiff-so install-latexrevise install-latexdiff-cvs install-man
25
 
26
 install-man:
27
-	install latexrevise.1 latexdiff.1 $(INSTALLMANPATH)/man1
28
+	${BSD_INSTALL_MAN} latexrevise.1 latexdiff.1 $(INSTALLMANPATH)/man1
29
 
30
 install-latexdiff:
31
-	install latexdiff $(INSTALLEXECPATH)
32
+	${BSD_INSTALL_SCRIPT} latexdiff $(INSTALLEXECPATH)
33
 
34
 install-latexdiff-so:
35
 	if [ -e $(INSTALLEXECPATH)/latexdiff ]; then rm $(INSTALLEXECPATH)/latexdiff; fi
36
-	install latexdiff-so $(INSTALLEXECPATH)
37
+	${BSD_INSTALL_SCRIPT} latexdiff-so $(INSTALLEXECPATH)
38
 	cd $(INSTALLEXECPATH); ln -s latexdiff-so latexdiff
39
 
40
 install-latexrevise:
41
-	install latexrevise $(INSTALLEXECPATH)
42
+	${BSD_INSTALL_SCRIPT} latexrevise $(INSTALLEXECPATH)
43
 
44
 install-latexdiff-cvs:
45
-	install latexdiff-cvs $(INSTALLEXECPATH)
46
+	${BSD_INSTALL_SCRIPT} latexdiff-cvs $(INSTALLEXECPATH)
47
 
48
 test: test-so
49
 
(-)latexdiff/pkg-descr (-3 / +6 lines)
Lines 1-6 Link Here
1
latexdiff is a Perl script, which compares two latex files and marks
1
latexdiff is a Perl script that compares two latex files and marks
2
up significant differences between them (i.e. a diff for latex files).
2
up significant differences between them (i.e. a diff for latex files).
3
  Various options are available for visual markup using standard latex
3
4
Various options are available for visual markup using standard latex
4
packages such as "color.sty". Changes not directly affecting visible
5
packages such as "color.sty". Changes not directly affecting visible
5
text, for example in formatting commands, are still marked in
6
text, for example in formatting commands, are still marked in
6
the latex source.
7
the latex source.
Lines 8-11 Link Here
8
A rudimentary revision facilility is provided by another Perl script,
9
A rudimentary revision facilility is provided by another Perl script,
9
latexrevise, which accepts or rejects all changes.  Manual
10
latexrevise, which accepts or rejects all changes.  Manual
10
editing of the difference file can be used to override this default
11
editing of the difference file can be used to override this default
11
behaviour and accept or reject selected changes only.
12
behaviour and accept or reject selected changes only. There are also
13
scripts to handle multiple-file documents, and files under version
14
control.

Return to bug 123533