diff options
Diffstat (limited to 'print/font2svg/Makefile')
-rw-r--r-- | print/font2svg/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/print/font2svg/Makefile b/print/font2svg/Makefile index bd997ab4a7f..906a02a91f0 100644 --- a/print/font2svg/Makefile +++ b/print/font2svg/Makefile @@ -7,8 +7,7 @@ # PORTNAME= font2svg -PORTVERSION= 0.1.4 -PORTREVISION= 1 +PORTVERSION= 0.1.5 CATEGORIES= print MASTER_SITES= http://www.gdv.uni-hannover.de/~peinecke/font2svg/ @@ -17,11 +16,14 @@ COMMENT= All font to svg-font converter USE_GHOSTSCRIPT_RUN= yes -RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash USE_REINPLACE= yes NO_BUILD= yes +PLIST_FILES= bin/font2svg %%DATADIR%%/encodings %%DATADIR%%/font2svg.ps +PLIST_DIRS= %%DATADIR%% + pre-everything:: .if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes @${ECHO_MSG} "" @@ -31,9 +33,9 @@ pre-everything:: .endif post-patch: - @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \ - -e "s|/home/peinecke/cprog/font2svg|${DATADIR}|" \ - ${WRKSRC}/font2svg + @${REINPLACE_CMD} -e "s|^#!/bin/bash|#!${LOCALBASE}/bin/bash| ; \ + s|^font2svg_home=.*$$|font2svg_home=${DATADIR}| ; \ + s|^non_gnu_getopt=.*$$|non_gnu_getopt=1|" ${WRKSRC}/font2svg do-install: ${INSTALL_SCRIPT} ${WRKSRC}/font2svg ${PREFIX}/bin |