This port had a few problems: * The package list tried to remove the wrong directory * The pkg-install script installs font.dir and font.scale files but never tries to remove them. This causes orphan checks to fail * The EXTRACTS_BEFORE_ARGS may not be additive (don't use +=) * The EXTRACTS_BEFORE_ARGS definition came after <bsd.port.mk> so it was never seen anyway * The latter may mean that the font never installed properly if the file didn't get transformed to lower case. After staging, I added a pkg-deinstall script. I'm not 100% sure it's correct if there are more than one Truetype font installed, but it's a lot better than it was and it removes the font.* stuff upon deinstall. This passes testport in poudriere.
30 lines
769 B
Makefile
30 lines
769 B
Makefile
# Created by: David O'Brien (obrien@NUXI.com)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= unicode-uhoai
|
|
PORTVERSION= 2.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= vietnamese x11-fonts
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= obrien
|
|
DISTNAME= uhoaiw21
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
COMMENT= Unicode TrueType Font with UHoai Vietnamese encoding
|
|
|
|
USES= zip:infozip
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= taken care of in do-install target
|
|
|
|
BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir \
|
|
bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
|
|
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
|
|
|
|
EXTRACT_BEFORE_ARGS= -qoL
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/fonts/TrueType
|
|
${INSTALL_DATA} ${WRKSRC}/uhoaiw21.ttf \
|
|
${STAGEDIR}${PREFIX}/lib/X11/fonts/TrueType
|
|
|
|
.include <bsd.port.mk>
|