View | Details | Raw Unified | Return to bug 191854 | Differences between
and this patch

Collapse All | Expand All

(-)cyberbit-ttfonts/Makefile (-34 / +39 lines)
Lines 7-60 Link Here
7
CATEGORIES=	x11-fonts
7
CATEGORIES=	x11-fonts
8
MASTER_SITES=	http://ftp.netscape.com/pub/communicator/extras/fonts/windows/ \
8
MASTER_SITES=	http://ftp.netscape.com/pub/communicator/extras/fonts/windows/ \
9
		http://aol-4.vo.llnwd.net/pub/communicator/extras/fonts/windows/ \
9
		http://aol-4.vo.llnwd.net/pub/communicator/extras/fonts/windows/ \
10
		ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/
10
		ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/ \
11
DISTFILES=	Cyberbit.ZIP
11
		http://www.skysmurf.nl/comp/FreeBSD/distfiles/cyberbit/
12
DISTFILES=	Cyberbit.ZIP 97CyberBase.Doc 97CyberBit.Doc 97CyberCJK.Doc \
13
		CYBERBIT.DOC CYBERCJK.DOC READMEfirst.txt ReadMe.htm
12
DIST_SUBDIR=	cyberbit
14
DIST_SUBDIR=	cyberbit
13
EXTRACT_ONLY=	Cyberbit.ZIP
15
EXTRACT_ONLY=	Cyberbit.ZIP
14
16
15
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	freebsd@skysmurf.nl
16
COMMENT=	Bitstream Cyberbit is a TrueType font covers Unicode 2.0
18
COMMENT=	Bitstream Cyberbit is a TrueType font that covers Unicode 2.0
19
20
BUILD_DEPENDS=	mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
21
		mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
17
22
18
RESTRICTED=	Redistribution not permitted; single user license only.
23
RESTRICTED=	Redistribution not permitted; single user license only.
19
24
20
USES=		zip
25
USES=		zip
21
NO_BUILD=	yes
22
26
23
FONTSDIR=	lib/X11/fonts/TrueType
27
FONTDIR=	lib/X11/fonts/Cyberbit
24
MAKE_ENV=	FONTSDIR=${FONTSDIR}
28
PLIST_SUB=	FONTDIR="${FONTDIR:S|${PREFIX}/||}"
25
PLIST_SUB=	FONTSDIR=${FONTSDIR}
29
30
SUB_FILES=	pkg-message
31
PKGMESSAGE=	${WRKDIR}/pkg-message
32
SUB_LIST=	FONTDIR=${PREFIX}/${FONTDIR}
33
26
WRKSRC=		${WRKDIR}
34
WRKSRC=		${WRKDIR}
27
35
36
PORTDOCS=	97CyberBase.Doc 97CyberBit.Doc 97CyberCJK.Doc \
37
		CYBERBIT.DOC CYBERCJK.DOC READMEfirst.txt ReadMe.htm
38
28
OPTIONS_DEFINE=	DOCS
39
OPTIONS_DEFINE=	DOCS
29
40
30
NO_STAGE=	yes
31
.include <bsd.port.options.mk>
41
.include <bsd.port.options.mk>
32
42
33
.if ${PORT_OPTIONS:MDOCS}
43
MKFONTSCALE=	${LOCALBASE}/bin/mkfontscale
34
DISTFILES+=	97CyberBase.Doc 97CyberBit.Doc 97CyberCJK.Doc \
44
MKFONTDIR=	${LOCALBASE}/bin/mkfontdir
35
		CYBERBIT.DOC CYBERCJK.DOC READMEfirst.txt ReadMe.htm
45
36
.endif
46
do-build:
47
	cd ${WRKSRC} && ${MKFONTSCALE} && ${MKFONTDIR}
37
48
38
do-install:
49
do-install:
39
.if !exists(${PREFIX}/${FONTSDIR})
50
#.if !exists(${PREFIX}/${FONTSDIR})
40
	@${ECHO} "*********************************************************"
51
#	@${ECHO} "*********************************************************"
41
	@${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
52
#	@${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
42
	@${ECHO} "and load 'xtt' module in /etc/x11/xorg.conf."
53
#	@${ECHO} "and load 'xtt' module in /etc/x11/xorg.conf."
43
	@${ECHO} "*********************************************************"
54
#	@${ECHO} "*********************************************************"
44
	${MKDIR} ${PREFIX}/${FONTSDIR}
55
#.endif
45
.endif
56
# files/pkg-message.in
46
	${INSTALL_DATA} ${WRKSRC}/*.ttf \
57
	@${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}
47
			${FILESDIR}/fonts.dir.cyberbit \
58
	${INSTALL_DATA} ${WRKSRC}/Cyberbit.ttf ${STAGEDIR}${PREFIX}/${FONTDIR}
48
			${PREFIX}/${FONTSDIR}
59
	${INSTALL_DATA} ${WRKSRC}/fonts.* ${STAGEDIR}${PREFIX}/${FONTDIR}
49
.if ${PORT_OPTIONS:MDOCS}
60
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
50
	${MKDIR} ${DOCSDIR}
61
.for doc in ${PORTDOCS}
51
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/97CyberBase.Doc ${DOCSDIR}
62
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${doc} ${STAGEDIR}${DOCSDIR}
52
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/97CyberBit.Doc  ${DOCSDIR}
63
.endfor
53
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/97CyberCJK.Doc  ${DOCSDIR}
64
54
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/CYBERBIT.DOC    ${DOCSDIR}
55
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/CYBERCJK.DOC    ${DOCSDIR}
56
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/READMEfirst.txt ${DOCSDIR}
57
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/ReadMe.htm      ${DOCSDIR}
58
.endif
59
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
60
.include <bsd.port.mk>
65
.include <bsd.port.mk>
(-)cyberbit-ttfonts/files/fonts.dir.cyberbit (-17 lines)
Lines 1-17 Link Here
1
16
2
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-ascii-0
3
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-fcd8859-15
4
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso10646-1
5
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-1
6
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-10
7
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-15
8
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-2
9
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-3
10
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-4
11
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-5
12
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-6
13
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-7
14
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-8
15
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-iso8859-9
16
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-koi8-r
17
Cyberbit.ttf -Bitstream-Bitstream Cyberbit-medium-r-normal--0-0-0-0-c-0-koi8-ru
(-)cyberbit-ttfonts/files/pkg-message.in (+10 lines)
Line 0 Link Here
1
You can start using the font(s) by following these instructions:
2
3
Eiter type the following in an X terminal:
4
	xset fp+ %%FONTDIR%%
5
	xset fp rehash
6
7
Or, more permanently, add the following line to the "Files" section of your
8
X.Org configuration file:
9
	FontPath "%%FONTDIR%%/"
10
and make sure you have the "freetype" module loaded, then restart X.
(-)cyberbit-ttfonts/pkg-deinstall (-16 lines)
Lines 1-16 Link Here
1
#!/bin/sh
2
XFLDNAME="-Bitstream-Bitstream\ Cyberbit-"
3
if [ "$2" != "DEINSTALL" ]; then
4
  exit 0
5
fi
6
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
7
cd ${FONTDIR}
8
sed -e "/${XFLDNAME}/d" fonts.dir > fonts.dir.tmp
9
numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
10
if [ ${numfonts} != "0" ]; then
11
echo ${numfonts} > fonts.dir
12
sed -e 1d fonts.dir.tmp >> fonts.dir
13
rm -f fonts.dir.tmp
14
else
15
rm -f fonts.dir fonts.dir.tmp
16
fi
(-)cyberbit-ttfonts/pkg-install (-16 lines)
Lines 1-16 Link Here
1
#!/bin/sh
2
XFLDNAME="-Bitstream-Bitstream Cyberbit-"
3
FONTNAME=cyberbit
4
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
5
if [ "$2" = "PRE-INSTALL" ]; then
6
  echo "Please add ${FONTDIR} to your /etc/x11/xorg.conf file"
7
  exit 0
8
fi
9
cd ${FONTDIR}
10
touch fonts.dir
11
sed -e "/${XFLDNAME}/d" fonts.dir > fonts.dir.tmp
12
numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.${FONTNAME} | wc -l) - 2 | bc)
13
echo ${numfonts} > fonts.dir
14
sed -e 1d fonts.dir.tmp >> fonts.dir
15
sed -e 1d fonts.dir.$FONTNAME >> fonts.dir
16
rm -f fonts.dir.tmp
(-)cyberbit-ttfonts/pkg-plist (-11 / +5 lines)
Lines 1-11 Link Here
1
%%FONTSDIR%%/fonts.dir.cyberbit
1
%%FONTDIR%%/Cyberbit.ttf
2
%%FONTSDIR%%/Cyberbit.ttf
2
%%FONTDIR%%/fonts.dir
3
@dirrmtry %%FONTSDIR%%
3
%%FONTDIR%%/fonts.scale
4
%%PORTDOCS%%%%DOCSDIR%%/97CyberBase.Doc
4
@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
5
%%PORTDOCS%%%%DOCSDIR%%/97CyberBit.Doc
5
@dirrm %%FONTDIR%%
6
%%PORTDOCS%%%%DOCSDIR%%/97CyberCJK.Doc
7
%%PORTDOCS%%%%DOCSDIR%%/CYBERBIT.DOC
8
%%PORTDOCS%%%%DOCSDIR%%/CYBERCJK.DOC
9
%%PORTDOCS%%%%DOCSDIR%%/READMEfirst.txt
10
%%PORTDOCS%%%%DOCSDIR%%/ReadMe.htm
11
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 191854