cfe246f977
- install into PREFIX, not X11PREFIX - DEPENDS on xpdf>=2.02 due to USE_X11BASE->USE_X11 change - fix DEINSTALL files to really remove chunks added to xpdfrc, correctly define PKG_SYSCONFDIR, don't use direct commands (sed->@SED@, mv->@MV@, rm->@RM@) - define USE_PKGINSTALL to correctly replace variables in DEINSTALL files - consistently use DIST_SUBDIR - don't define completely bogus version numbers, use dates from the MASTER_SITE and xpdfrc chunks - remove PREFIX/share/xpdf from PLISTs, this directory is now part of the xpdf package - remove superfluous license/copyright note from DESCR files - bump PKGREVISION where necessary
25 lines
400 B
Bash
25 lines
400 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: DEINSTALL,v 1.2 2003/03/25 14:06:50 salo Exp $
|
|
|
|
PKGNAME=$1
|
|
STAGE=$2
|
|
|
|
XPDFRC=@PKG_SYSCONFDIR@/xpdfrc
|
|
|
|
case ${STAGE} in
|
|
DEINSTALL)
|
|
;;
|
|
|
|
POST-DEINSTALL)
|
|
@SED@ -e "/raditional/d" ${XPDFRC} > ${XPDFRC}.tmp
|
|
@SED@ -e "/big5/d" -e "/Ar[ph][ph]ic fonts, you may/d" ${XPDFRC}.tmp > ${XPDFRC}
|
|
@RM@ -f ${XPDFRC}.tmp
|
|
;;
|
|
|
|
*)
|
|
echo "Unexpected argument: ${STAGE}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
exit 0
|