aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>2003-04-17 17:03:45 +0800
committermax <max@FreeBSD.org>2003-04-17 17:03:45 +0800
commitb001b998727680e034ac19b28d44b368237becc4 (patch)
treead117fdc01c0a87d911a4b1e93d025409745b6f9 /print
parent3a4c071b1426c28c0b407458d573bcf2206d60ef (diff)
downloadfreebsd-ports-gnome-b001b998727680e034ac19b28d44b368237becc4.tar.gz
freebsd-ports-gnome-b001b998727680e034ac19b28d44b368237becc4.tar.zst
freebsd-ports-gnome-b001b998727680e034ac19b28d44b368237becc4.zip
* Since this port doesn't seem to have any man page, remove MAN1
definition from the Makefile. * Redirect the output of the cp and the mv command in pre-install to /dev/null so that users don't need to see the error messages. * Add @exec entries in the pkg-plist which essentially do the same thing as the cp and mv command in pre-install, except these are performed only when the target file/directory exists. * Remove ${WRKSRC}/data/config/dvipdfmx.cfg.orig in post-patch. Otherwise, @dirrm of share/texmf/dvipdfm/config fails. * Change the @unexec entries in pkg-plist so that they are executed only when target file/directory exists. * Remove entry for bin/dvipdfm-orig from the pkg-plist since this file does not necessarily exist in every situation. reviewed by: maintainer
Diffstat (limited to 'print')
-rw-r--r--print/dvipdfmx/Makefile9
-rw-r--r--print/dvipdfmx/pkg-plist5
2 files changed, 8 insertions, 6 deletions
diff --git a/print/dvipdfmx/Makefile b/print/dvipdfmx/Makefile
index 6a48994dca79..c12b90e7a2cb 100644
--- a/print/dvipdfmx/Makefile
+++ b/print/dvipdfmx/Makefile
@@ -19,14 +19,15 @@ LIB_DEPENDS= png:${PORTSDIR}/graphics/png
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps \
kpsepath:${PORTSDIR}/print/teTeX
-MAN1= dvipdfm.1
-
USE_OPENSSL= yes
GNU_CONFIGURE= yes
+post-patch:
+ @${RM} ${WRKSRC}/data/config/dvipdfmx.cfg.orig
+
pre-install:
- ${CP} ${LOCALBASE}/bin/dvipdfm ${LOCALBASE}/bin/dvipdfm-orig || ${TRUE}
- ${MV} ${LOCALBASE}/share/texmf/dvipdfm ${LOCALBASE}/share/texmf/dvipdfm-orig || ${TRUE}
+ ${CP} ${LOCALBASE}/bin/dvipdfm ${LOCALBASE}/bin/dvipdfm-orig > /dev/null 2>&1 || ${TRUE}
+ ${MV} ${LOCALBASE}/share/texmf/dvipdfm ${LOCALBASE}/share/texmf/dvipdfm-orig > /dev/null 2>&1 || ${TRUE}
post-install:
@${LN} -fs ${LOCALBASE}/share/ghostscript/Resource ${PREFIX}/share/texmf/dvipdfm/
diff --git a/print/dvipdfmx/pkg-plist b/print/dvipdfmx/pkg-plist
index b1ead7320576..9940230babff 100644
--- a/print/dvipdfmx/pkg-plist
+++ b/print/dvipdfmx/pkg-plist
@@ -1,6 +1,7 @@
bin/dvipdfmx
-@unexec cp %D/bin/dvipdfm-orig %D/bin/dvipdfm
-bin/dvipdfm-orig
+@unexec if [ -f %D/bin/dvipdfm-orig ]; then mv %D/bin/dvipdfm-orig %D/bin/dvipdfm ; fi
+@exec if [ -f %D/bin/dvipdfm ]; then cp %D/bin/dvpdfm %D/bin/dvipdfm-orig ; fi
+@exec if [ -e %D/share/texmf/dvipdfm ]; then mv %D/share/texmf/dvipdfm %D/share/texmf/dvipdfm-orig ; fi
share/texmf/dvipdfm/Resource
share/texmf/dvipdfm/CMap/Adobe-Identity-UCS2
share/texmf/dvipdfm/CMap/EUC-UCS2