diff options
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/Makefile | 1 | ||||
-rw-r--r-- | x11-fonts/sourcecodepro-ttf/Makefile | 51 | ||||
-rw-r--r-- | x11-fonts/sourcecodepro-ttf/distinfo | 2 | ||||
-rw-r--r-- | x11-fonts/sourcecodepro-ttf/files/pkg-message.in | 5 | ||||
-rw-r--r-- | x11-fonts/sourcecodepro-ttf/pkg-descr | 10 | ||||
-rw-r--r-- | x11-fonts/sourcecodepro-ttf/pkg-plist | 10 |
6 files changed, 79 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index 959a212e93d1..8e1bd02a1997 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -137,6 +137,7 @@ SUBDIR += sgifonts SUBDIR += sharefonts SUBDIR += showfont + SUBDIR += sourcecodepro-ttf SUBDIR += sourcesanspro-ttf SUBDIR += stix-fonts SUBDIR += suxus diff --git a/x11-fonts/sourcecodepro-ttf/Makefile b/x11-fonts/sourcecodepro-ttf/Makefile new file mode 100644 index 000000000000..feec8d7b8277 --- /dev/null +++ b/x11-fonts/sourcecodepro-ttf/Makefile @@ -0,0 +1,51 @@ +# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp> +# $FreeBSD$ + +PORTNAME= sourcecodepro-ttf +PORTVERSION= 1.009 +CATEGORIES= x11-fonts +MASTER_SITES= SF/sourcecodepro.adobe +DISTNAME= SourceCodePro_FontsOnly-${PORTVERSION} + +MAINTAINER= masaki@club.kyutech.ac.jp +COMMENT= A set of fonts by Adobe designed for coders + +LICENSE= OFL +LICENSE_NAME= SIL OPEN FONT LICENSE Version 1.1 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt +LICENSE_PERMS= auto-accept + +BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir + +USE_ZIP= yes +USE_XORG= x11 + +PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}" + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_LIST= FONTDIR=${FONTDIR} + +FONTNAME= SourceCodePro +FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME} +INSTDAT= fonts.dir fonts.scale + +MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale +MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir + +do-build: + cd ${WRKSRC}/ && ${MKFONTSCL_CMD} + cd ${WRKSRC}/ && ${MKFONTDIR_CMD} + +do-install: + ${MKDIR} ${FONTDIR} + cd ${WRKSRC}/ && \ + ${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR} + +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/x11-fonts/sourcecodepro-ttf/distinfo b/x11-fonts/sourcecodepro-ttf/distinfo new file mode 100644 index 000000000000..e766e337efdc --- /dev/null +++ b/x11-fonts/sourcecodepro-ttf/distinfo @@ -0,0 +1,2 @@ +SHA256 (SourceCodePro_FontsOnly-1.009.zip) = 8681e3a1b0c32e7c32b03d883a429cd460f4bded8953d67d6e32f499ba3c135c +SIZE (SourceCodePro_FontsOnly-1.009.zip) = 613755 diff --git a/x11-fonts/sourcecodepro-ttf/files/pkg-message.in b/x11-fonts/sourcecodepro-ttf/files/pkg-message.in new file mode 100644 index 000000000000..dca252c8f1d3 --- /dev/null +++ b/x11-fonts/sourcecodepro-ttf/files/pkg-message.in @@ -0,0 +1,5 @@ +You can start using the fonts by following these instructions: + +Add the following line to the "Files" section of your x.org configuration file: + + FontPath "%%FONTDIR%%/" diff --git a/x11-fonts/sourcecodepro-ttf/pkg-descr b/x11-fonts/sourcecodepro-ttf/pkg-descr new file mode 100644 index 000000000000..bb5cbaa87c94 --- /dev/null +++ b/x11-fonts/sourcecodepro-ttf/pkg-descr @@ -0,0 +1,10 @@ +Source Code Pro was designed by Paul D. Hunt as a companion to Source Sans. +This complementary family was adapted from the Source design due to a +request to create a monospaced version for coding applications. + +Source Code Pro currently supports a wide range of languages using Latin +script, and includes all the characters in the Adobe Latin 4 glyph set. As +an open source project, it is expected that incremental updates will be +made over time to extend glyph set coverage and functionality. + +WWW: http://sourceforge.net/projects/sourcecodepro.adobe/ diff --git a/x11-fonts/sourcecodepro-ttf/pkg-plist b/x11-fonts/sourcecodepro-ttf/pkg-plist new file mode 100644 index 000000000000..a95779deff25 --- /dev/null +++ b/x11-fonts/sourcecodepro-ttf/pkg-plist @@ -0,0 +1,10 @@ +%%FONTDIR%%/SourceCodePro-Black.ttf +%%FONTDIR%%/SourceCodePro-Bold.ttf +%%FONTDIR%%/SourceCodePro-ExtraLight.ttf +%%FONTDIR%%/SourceCodePro-Light.ttf +%%FONTDIR%%/SourceCodePro-Regular.ttf +%%FONTDIR%%/SourceCodePro-Semibold.ttf +%%FONTDIR%%/fonts.dir +%%FONTDIR%%/fonts.scale +@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true +@dirrm %%FONTDIR%% |