# $Id$ PNAME="font-adobe-75dpi" PVER="1.0.3" PBUILD="r7" PCAT="media-fonts" DESCRIPTION="Adobe font family - 75dpi." HOMEPAGE="http://xorg.freedesktop.org" SDEPEND=">= x11-apps/bdftopcf-1 >= media-fonts/font-util-1" # keep fontconfig ALX_PKG_KEEP="usr/share/fonts/75dpi/fonts.dir usr/share/fonts/75dpi/fonts.scale" # # keep helvB # ALX_PKG_KEEP+=" usr/share/fonts/75dpi/helvB08-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvB08.pcf.gz # usr/share/fonts/75dpi/helvB10-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvB10.pcf.gz # usr/share/fonts/75dpi/helvB12-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvB12.pcf.gz # usr/share/fonts/75dpi/helvB14-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvB14.pcf.gz # usr/share/fonts/75dpi/helvB18-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvB18.pcf.gz # usr/share/fonts/75dpi/helvB24-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvB24.pcf.gz" # # # keep helvBO # ALX_PKG_KEEP+=" usr/share/fonts/75dpi/helvBO08-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvBO08.pcf.gz # usr/share/fonts/75dpi/helvBO10-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvBO10.pcf.gz # usr/share/fonts/75dpi/helvBO12-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvBO12.pcf.gz # usr/share/fonts/75dpi/helvBO14-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvBO14.pcf.gz # usr/share/fonts/75dpi/helvBO18-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvBO18.pcf.gz # usr/share/fonts/75dpi/helvBO24-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvBO24.pcf.gz" # # # keep helvO # ALX_PKG_KEEP+=" usr/share/fonts/75dpi/helvO08-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvO08.pcf.gz # usr/share/fonts/75dpi/helvO10-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvO10.pcf.gz # usr/share/fonts/75dpi/helvO12-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvO12.pcf.gz # usr/share/fonts/75dpi/helvO14-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvO14.pcf.gz # usr/share/fonts/75dpi/helvO18-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvO18.pcf.gz # usr/share/fonts/75dpi/helvO24-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvO24.pcf.gz" # # # keep helvR # ALX_PKG_KEEP+=" usr/share/fonts/75dpi/helvR08-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvR08.pcf.gz # usr/share/fonts/75dpi/helvR10-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvR10.pcf.gz # usr/share/fonts/75dpi/helvR12-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvR12.pcf.gz # usr/share/fonts/75dpi/helvR14-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvR14.pcf.gz # usr/share/fonts/75dpi/helvR18-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvR18.pcf.gz # usr/share/fonts/75dpi/helvR24-ISO8859-1.pcf.gz # usr/share/fonts/75dpi/helvR24.pcf.gz" # only keep courB - needed by ica-client >=11.100 (wfica only!) ALX_PKG_KEEP+=" usr/share/fonts/75dpi/courB08-ISO8859-1.pcf.gz usr/share/fonts/75dpi/courB08.pcf.gz usr/share/fonts/75dpi/courB10-ISO8859-1.pcf.gz usr/share/fonts/75dpi/courB10.pcf.gz usr/share/fonts/75dpi/courB12-ISO8859-1.pcf.gz usr/share/fonts/75dpi/courB12.pcf.gz usr/share/fonts/75dpi/courB14-ISO8859-1.pcf.gz usr/share/fonts/75dpi/courB14.pcf.gz usr/share/fonts/75dpi/courB18-ISO8859-1.pcf.gz usr/share/fonts/75dpi/courB18.pcf.gz usr/share/fonts/75dpi/courB24-ISO8859-1.pcf.gz usr/share/fonts/75dpi/courB24.pcf.gz" sminclude xorg alx-split src_compile() { cd ${SRCDIR} local myconf # build only some generic fonts myconf="--enable-iso8859-1" # disable all unwanted myconf+=" --disable-iso8859-2" myconf+=" --disable-iso8859-3" myconf+=" --disable-iso8859-4" myconf+=" --disable-iso8859-9" myconf+=" --disable-iso8859-10" myconf+=" --disable-iso8859-13" myconf+=" --disable-iso8859-14" myconf+=" --disable-iso8859-15" xorg_src_configure --with-mapfiles=/usr/share/fonts/util ${myconf} || die mmake || die } alx_generic_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # update fonts.dir and fonts.scale against the remaining fonts if [[ ${PNAME} = font-adobe-75dpi ]] then echo "Regenerating fonts.dir and fonts.scale ..." # create fonts.scale mkfontscale \ -a /usr/share/fonts/encodings/encodings.dir \ -- ${BINDIR}/usr/share/fonts/75dpi || die # create fonts.dir (mkfontscale -b -s -l == mkfontdir ;) mkfontscale -b -s -l \ -e /usr/share/fonts/encodings \ -e /usr/share/fonts/encodings/large \ -- ${BINDIR}/usr/share/fonts/75dpi || die echo "done" fi }