mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Add missing dependency.
- Fix typo in PKG{,DE}INSTALL line. - Remove ^!! line from fonts.alias. - Use POST-DEINSTALL instead of DEINSTALL because mkfontdir(1) is used for generating fonts.dir.
This commit is contained in:
parent
b6e9d40d28
commit
1c3480236a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234907
@ -16,7 +16,8 @@ MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= Shinonome Japanese fonts, 12/14/16 dots
|
||||
|
||||
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
|
||||
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
|
||||
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
||||
fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME:C/^font-//}-${PORTVERSION:C/.p.*$//}
|
||||
USE_BZIP2= yes
|
||||
@ -25,8 +26,8 @@ PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
|
||||
SUB_FILES= pkg-install
|
||||
SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR} \
|
||||
FONTSALIAS=${DATADIR}/fonts.alias
|
||||
PKGINSTALL= pkg-install
|
||||
PKGDEINSTALL= pkg-install
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
||||
|
||||
PORTDOCS= AUTHORS BUGS ChangeLog ChangeLog.0 DESIGN.12 DESIGN.14 \
|
||||
DESIGN.16 DESIGN.18 INSTALL README THANKS TODO LICENSE
|
||||
|
@ -10,18 +10,20 @@ POST-INSTALL)
|
||||
%%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc
|
||||
touch fonts.alias
|
||||
grep -v -- "-shinonome-" fonts.alias > fonts.alias.tmp
|
||||
cat fonts.alias.tmp %%FONTSALIAS%% > fonts.alias
|
||||
(cat fonts.alias.tmp; grep -v "^!!" %%FONTSALIAS%%) > fonts.alias
|
||||
rm -f fonts.alias.tmp
|
||||
;;
|
||||
DEINSTALL)
|
||||
POST-DEINSTALL)
|
||||
%%LOCALBASE%%/bin/fc-cache -f -v ${X_FONTSDIR}/misc
|
||||
rm -f ${X_FONTSDIR}/misc/fonts.cache-1
|
||||
|
||||
cd ${X_FONTSDIR}/misc
|
||||
|
||||
%%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc
|
||||
if [ -r ${X_FONTSDIR}/misc/fonts.dir -a `/usr/bin/wc -l < ${X_FONTSDIR}/misc/fonts.dir` = 1 ]; then
|
||||
rm -f ${X_FONTSDIR}/misc/fonts.dir
|
||||
fi
|
||||
|
||||
touch fonts.alias
|
||||
grep -v -- "-shinonome-" fonts.alias > fonts.alias.tmp
|
||||
if [ -s fonts.alias.tmp ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user