Skip to content

Commit

Permalink
New port: www/alef-webfont
Browse files Browse the repository at this point in the history
Alef has been designed to meet very high standards whilst at a very small
size. It was created under the consideration of its primary use for digital
media, and overcomes great challenges in the rendition of small characters
and cross-platform adjustment.

The font supports Hebrew and various European Languages.

WWW: http://alef.hagilda.com/

PR:		193543
Submitted by:	Carlos Jacobo Puga Medina <[email protected]>
  • Loading branch information
opsec committed Sep 23, 2014
1 parent 11e6022 commit 247b017
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 13,7 @@
SUBDIR = ach
SUBDIR = adzap
SUBDIR = amphetadesk
SUBDIR = alef-webfont
SUBDIR = analog
SUBDIR = anyremote2html
SUBDIR = anyterm
Expand Down
58 changes: 58 additions & 0 deletions www/alef-webfont/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 1,58 @@
# Created by: cpm
# $FreeBSD$

PORTNAME= alef
PORTVERSION= 1.0
CATEGORIES= www
MASTER_SITES= http://alef.hagilda.com/
PKGNAMESUFFIX= -webfont
DISTNAME= Alef

MAINTAINER= [email protected]
COMMENT= Free multi-lingual font designed for screens

LICENSE= OFL11
LICENSE_FILE= ${WRKDIR}/OFL-license.txt

BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale

USES= zip
NO_BUILD= yes
FONTSDIR= ${PREFIX}/lib/x11/fonts/${PORTNAME}${PKGNAMESUFFIX}
INSTDAT= fonts.dir fonts.scale

PLIST_SUB= FONTSDIR="${FONTSDIR}" WWWDIR_REL="${WWWDIR_REL}${PKGNAMESUFFIX}"

MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir

OPTIONS_DEFINE= DOCS

DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= COMING-SOON.txt readme.txt

post-extract:
${MKDIR} ${WRKSRC}
cd ${WRKDIR} && ${MV} TTF ${WRKSRC}
${MV} ${WRKDIR}/--COMING-SOON--.txt ${WRKDIR}/COMING-SOON.txt

pre-install:
${MKFONTSCL_CMD} ${WRKDIR}/Alef-Webfont
${MKFONTDIR_CMD} ${WRKDIR}/Alef-Webfont

do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}
.for f in Alef-bold.html Alef-regular.html stylesheet.css
${INSTALL_DATA} ${WRKDIR}/Alef-Webfont/${f} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}
.endfor
.for i in eot svg ttf woff
${MKDIR} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/${i}
${INSTALL_DATA} ${WRKDIR}/Alef-Webfont/*.${i} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/${i}
.endfor
cd ${WRKDIR}/Alef-Webfont && ${INSTALL_DATA} ${INSTDAT} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/ttf
${CP} -pr ${WRKDIR}/Alef-Webfont/specimen_files ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions www/alef-webfont/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 1,2 @@
SHA256 (Alef.zip) = aae9b927858a1dbc56f371ac893af09348031e21c2ef0b94115ce5915d6ec990
SIZE (Alef.zip) = 799409
8 changes: 8 additions & 0 deletions www/alef-webfont/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 1,8 @@
Alef has been designed to meet very high standards whilst at a very small
size. It was created under the consideration of its primary use for digital
media, and overcomes great challenges in the rendition of small characters
and cross-platform adjustment.

The font supports Hebrew and various European Languages.

WWW: http://alef.hagilda.com/
23 changes: 23 additions & 0 deletions www/alef-webfont/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 1,23 @@
%%WWWDIR_REL%%/Alef-bold.html
%%WWWDIR_REL%%/Alef-regular.html
%%WWWDIR_REL%%/eot/Alef-Bold.eot
%%WWWDIR_REL%%/eot/Alef-Regular.eot
%%WWWDIR_REL%%/specimen_files/easytabs.js
%%WWWDIR_REL%%/specimen_files/grid_12-825-55-15.css
%%WWWDIR_REL%%/specimen_files/openfont-regular-cleartype.png
%%WWWDIR_REL%%/specimen_files/specimen_stylesheet.css
%%WWWDIR_REL%%/stylesheet.css
%%WWWDIR_REL%%/svg/Alef-Bold.svg
%%WWWDIR_REL%%/svg/Alef-Regular.svg
%%WWWDIR_REL%%/ttf/Alef-Bold.ttf
%%WWWDIR_REL%%/ttf/Alef-Regular.ttf
%%WWWDIR_REL%%/ttf/fonts.dir
%%WWWDIR_REL%%/ttf/fonts.scale
%%WWWDIR_REL%%/woff/Alef-Bold.woff
%%WWWDIR_REL%%/woff/Alef-Regular.woff
@dirrmtry %%WWWDIR_REL%%/eot
@dirrmtry %%WWWDIR_REL%%/specimen_files
@dirrmtry %%WWWDIR_REL%%/svg
@dirrmtry %%WWWDIR_REL%%/ttf
@dirrmtry %%WWWDIR_REL%%/woff
@dirrmtry %%WWWDIR_REL%%

0 comments on commit 247b017

Please sign in to comment.