diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-06-12 03:21:31 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-06-12 03:21:31 +0000 |
commit | fcca46b0613a3045a99b5b7ac4469cba4339ec6b (patch) | |
tree | cf3ac94b82bc6ce1cfde6ee5caf3bf05c2d5d0f8 | |
parent | o Update to 4.2.0 (diff) |
o Fix build in 5.x branch: malloc.h -> stdlib.h
o Introduce PREFIX, C{C,FLAGS} safeness
PR: 53058
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=82840
-rw-r--r-- | print/lgrind/Makefile | 16 | ||||
-rw-r--r-- | print/lgrind/distinfo | 2 | ||||
-rw-r--r-- | print/lgrind/pkg-plist | 7 |
3 files changed, 23 insertions, 2 deletions
diff --git a/print/lgrind/Makefile b/print/lgrind/Makefile index 37862e4421ec..339edacad806 100644 --- a/print/lgrind/Makefile +++ b/print/lgrind/Makefile @@ -37,7 +37,8 @@ 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 +PATCHFILES= patch-Makefile.gz patch-source_Makefile.gz \ + patch-source_lgrind.c.gz patch-source_regexp.c.gz MAINTAINER= kay_lehmann@web.de COMMENT= Produce beautiful listings of source code with LaTeX @@ -45,6 +46,8 @@ COMMENT= Produce beautiful listings of source code with LaTeX BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX +USE_REINPLACE= yes + MAN1= lgrind.1 MAN5= lgrindef.5 MANCOMPRESSED= yes @@ -89,6 +92,17 @@ extractsrctarball: ${GUNZIP_CMD} -qc ${DISTDIR}/${DIST_SUBDIR}/${IGNOREFILES} | tar -C ${DISTDIR}/${DIST_SUBDIR} -xf -; \ exit +post-patch: +# PREFIX safeness + @${REINPLACE_CMD} -E \ + -e s'|^(BASEDIR).*$$|\1=${PREFIX}|' \ + ${WRKSRC}/Makefile +# C{C,FLAGS} safeness + @${REINPLACE_CMD} -E \ + -e s'|^(CC).*$$|\1=${CC}|' \ + -e s'|^(CFLAGS).*$$|\1=${CFLAGS}|' \ + ${WRKSRC}/source/Makefile + post-install: texhash diff --git a/print/lgrind/distinfo b/print/lgrind/distinfo index bf4a07e1c440..2a2fced4c53e 100644 --- a/print/lgrind/distinfo +++ b/print/lgrind/distinfo @@ -21,4 +21,6 @@ MD5 (lgrind/lgrind/source/retest.c) = 478fccd23c3e34815faf17b369e53d98 MD5 (lgrind/lgrind/source/v2lg.c) = f642e88c0a0ab2e4183e46dd5f575605 MD5 (lgrind/patch-Makefile.gz) = 49212838d1d91c42d7d981537ceffafb MD5 (lgrind/patch-source_Makefile.gz) = 750ac77c961e287b8984cddfd052d6f5 +MD5 (lgrind/patch-source_lgrind.c.gz) = 5c5d69cb400d4edb7d8f6e1c666ccfac +MD5 (lgrind/patch-source_regexp.c.gz) = 2eb6d0d78352b1a474742e60a1239ccd MD5 (lgrind/lgrind.tar.gz) = IGNORE diff --git a/print/lgrind/pkg-plist b/print/lgrind/pkg-plist index 7fc316a0d551..fa1a105e0b6f 100644 --- a/print/lgrind/pkg-plist +++ b/print/lgrind/pkg-plist @@ -1,6 +1,11 @@ bin/lgrind +share/texmf/doc/latex/lgrind/lgrind.dvi share/texmf/tex/latex/lgrind/lgrind.sty share/texmf/tex/latex/lgrind/lgrindef -share/texmf/doc/latex/lgrind/lgrind.dvi @dirrm share/texmf/tex/latex/lgrind +@unexec rmdir %D/share/texmf/tex/latex 2>/dev/null || true +@unexec rmdir %D/share/texmf/tex 2>/dev/null || true @dirrm share/texmf/doc/latex/lgrind +@unexec rmdir %D/share/texmf/doc/latex 2>/dev/null || true +@unexec rmdir %D/share/texmf/doc 2>/dev/null || true +@unexec rmdir %D/share/texmf 2>/dev/null || true |