aboutsummaryrefslogtreecommitdiffstats
path: root/print/dvisvg
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-08-30 17:12:41 +0800
committerhrs <hrs@FreeBSD.org>2014-08-30 17:12:41 +0800
commitcf72a1b3cc6110ade083b47d1e615586d6f7d398 (patch)
tree4df29bc61a635ecc23c50d9bbed09c3daba75ca2 /print/dvisvg
parenta879bcbe34d63e4bdf467136feec86cd148d0fc8 (diff)
downloadfreebsd-ports-gnome-cf72a1b3cc6110ade083b47d1e615586d6f7d398.tar.gz
freebsd-ports-gnome-cf72a1b3cc6110ade083b47d1e615586d6f7d398.tar.zst
freebsd-ports-gnome-cf72a1b3cc6110ade083b47d1e615586d6f7d398.zip
- STAGEDIR support.
- Add LICENSE.
Diffstat (limited to 'print/dvisvg')
-rw-r--r--print/dvisvg/Makefile38
-rw-r--r--print/dvisvg/pkg-plist6
2 files changed, 20 insertions, 24 deletions
diff --git a/print/dvisvg/Makefile b/print/dvisvg/Makefile
index 8d93161f9ce9..d780cf0786f2 100644
--- a/print/dvisvg/Makefile
+++ b/print/dvisvg/Makefile
@@ -3,16 +3,18 @@
PORTNAME= dvisvg
DISTVERSION= 0.7.1d
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= http://dvisvg.sourceforge.net/files/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= hrs@FreeBSD.org
COMMENT= Converter from DVI to SVG
+LICENSE= GPLv2
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
USE_GHOSTSCRIPT_RUN= yes
-USE_TEX= base texmf
+USE_TEX= base texmf texhash
ALL_TARGET= # empty
# workaround for svgfonts.c not including kpathsea/c-auto.h
CFLAGS+= -DHAVE_PROTOTYPES
@@ -20,32 +22,20 @@ MAKE_ARGS= CC="${CC} ${CFLAGS}" TARGETDIR=${PREFIX} \
LINC=${LOCALBASE}/include \
LLIB=${LOCALBASE}/lib \
BINDIR=${PREFIX}/bin \
- CNFDIR=${PREFIX}/${TEXMFLOCAL}/dvisvg \
-
-TEXMFLOCAL= share/texmf-local
-TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
-MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
+ CNFDIR=${PREFIX}/${TEXMFDIR}/dvisvg \
-PLIST_FILES= bin/dvisvg
-MAN1= dvisvg.1
-
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e "s,/usr/share/texmf,${LOCALBASE}/${TEXMFLOCAL}," ${WRKSRC}/version.h
+ @${REINPLACE_CMD} -e "s,/usr/share/texmf,${LOCALBASE}/${TEXMFDIR}," \
+ ${WRKSRC}/version.h
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/dvisvg ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/dvisvg.man ${MAN1PREFIX}/man/man1/dvisvg.1
- @${MKDIR} ${PREFIX}/${TEXMFLOCAL}/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKSRC}/dvisvg ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/dvisvg.man \
+ ${STAGEDIR}${MAN1PREFIX}/man/man1/dvisvg.1
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFDIR}/${PORTNAME}
.for file in dvisvg.map font2svg.enc font2svg.ps
- ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${TEXMFLOCAL}/${PORTNAME}
- @${ECHO_CMD} "${TEXMFLOCAL}/${PORTNAME}/${file}" >> ${TMPPLIST}
+ ${INSTALL_DATA} ${WRKSRC}/${file} \
+ ${STAGEDIR}${PREFIX}/${TEXMFDIR}/${PORTNAME}
.endfor
- @${ECHO_CMD} "@dirrm ${TEXMFLOCAL}/${PORTNAME}" >> ${TMPPLIST}
- @${ECHO_CMD} '@exec ${MKTEXLSR}' >> ${TMPPLIST}
- @${ECHO_CMD} '@unexec ${MKTEXLSR}' >> ${TMPPLIST}
-
-post-install:
- @${MKTEXLSR}
.include <bsd.port.mk>
diff --git a/print/dvisvg/pkg-plist b/print/dvisvg/pkg-plist
new file mode 100644
index 000000000000..87854cb95288
--- /dev/null
+++ b/print/dvisvg/pkg-plist
@@ -0,0 +1,6 @@
+bin/dvisvg
+man/man1/dvisvg.1.gz
+%%TEXMFDIR%%/dvisvg/dvisvg.map
+%%TEXMFDIR%%/dvisvg/font2svg.enc
+%%TEXMFDIR%%/dvisvg/font2svg.ps
+@dirrmtry %%TEXMFDIR%%/dvisvg