diff options
author | hrs <hrs@FreeBSD.org> | 2005-03-25 14:11:28 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2005-03-25 14:11:28 +0800 |
commit | c81c090e1c7a5c3147b96afe6e7be20c14d7fe00 (patch) | |
tree | 44cca3cd38d2a9f3c9ad398e2397913d25a51f3a /print/xdvi/pkg-install | |
parent | 983668e9d2ce673479c146560756228d0c0577ff (diff) | |
download | freebsd-ports-gnome-c81c090e1c7a5c3147b96afe6e7be20c14d7fe00.tar.gz freebsd-ports-gnome-c81c090e1c7a5c3147b96afe6e7be20c14d7fe00.tar.zst freebsd-ports-gnome-c81c090e1c7a5c3147b96afe6e7be20c14d7fe00.zip |
- Fix a bug not to remove the font directories during the deinstall.
- Fix pathnames:
s,$prefix/MakeTeXPK,$prefix/bin/MakeTeXPK,
s,$prefix/lib/texmf/fonts/pk,${localbase}/share/texmf/fonts/pk,
- Remove pre-install to detect teTeX (CONFLICTS is enough).
- Make portlint(1) happy.
Approved by: portmgr(marcus)
Diffstat (limited to 'print/xdvi/pkg-install')
-rw-r--r-- | print/xdvi/pkg-install | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/print/xdvi/pkg-install b/print/xdvi/pkg-install index 0f2935bad65d..921a48c38a42 100644 --- a/print/xdvi/pkg-install +++ b/print/xdvi/pkg-install @@ -1,8 +1,9 @@ #!/bin/sh -prefix=/usr/local +prefix=%%PREFIX%% +localbase=%%LOCALBASE%% -if [ "$2" = "POST-INSTALL" ]; then +if [ "$2" != "PRE-INSTALL" ]; then exit 0 fi @@ -21,7 +22,7 @@ fi cat << END This package has been compiled with some defaults: -1 fonts will be created in $prefix/lib/texmf/fonts/pk and this +1 fonts will be created in ${localbase}/share/texmf/fonts/pk and this directory will be made world writable 2 300 dpi fonts will be created with MODE=imagen @@ -31,7 +32,7 @@ This package has been compiled with some defaults: 72 dpi fonts will be created with MODE=nextscreen If you are not satisfied with 1, you need to recompile xdvi -If you are not satisfied with 2, you will need to edit $prefix/MakeTeXPK +If you are not satisfied with 2, you will need to edit $prefix/bin/MakeTeXPK END @@ -42,7 +43,7 @@ case $answ in *) exit 1;; esac -mkdir -p $prefix/lib/texmf/fonts/pk; chmod 1777 $prefix/lib/texmf/fonts/pk +mkdir -p ${localbase}/share/texmf/fonts/pk; chmod 1777 ${localbase}/share/texmf/fonts/pk exit 0 |