aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/roboto-fonts-ttf
diff options
context:
space:
mode:
authorCarlos J. Puga Medina <cpm@FreeBSD.org>2016-10-28 00:42:27 +0000
committerCarlos J. Puga Medina <cpm@FreeBSD.org>2016-10-28 00:42:27 +0000
commitcba6a69bbd61d357719edef259e03fd8c13ef8ed (patch)
tree4bf6fde1ba2bbb8b514e7760dbadd7d7f8adabbb /x11-fonts/roboto-fonts-ttf
parentfa187b926d63e87cea31e75fdb110007ac50c0d9 (diff)
downloadports-cba6a69bbd61d357719edef259e03fd8c13ef8ed.tar.gz
ports-cba6a69bbd61d357719edef259e03fd8c13ef8ed.zip
Notes
Diffstat (limited to 'x11-fonts/roboto-fonts-ttf')
-rw-r--r--x11-fonts/roboto-fonts-ttf/Makefile11
-rw-r--r--x11-fonts/roboto-fonts-ttf/distinfo5
-rw-r--r--x11-fonts/roboto-fonts-ttf/files/64-google-roboto-condensed.conf25
-rw-r--r--x11-fonts/roboto-fonts-ttf/files/64-google-roboto.conf49
-rw-r--r--x11-fonts/roboto-fonts-ttf/pkg-plist4
5 files changed, 90 insertions, 4 deletions
diff --git a/x11-fonts/roboto-fonts-ttf/Makefile b/x11-fonts/roboto-fonts-ttf/Makefile
index 4f4d3541522c..61b26f7357bf 100644
--- a/x11-fonts/roboto-fonts-ttf/Makefile
+++ b/x11-fonts/roboto-fonts-ttf/Makefile
@@ -2,12 +2,12 @@
# $FreeBSD$
PORTNAME= roboto-fonts-ttf
-PORTVERSION= 2.131
+PORTVERSION= 2.134
DISTVERSIONPREFIX=v
PORTEPOCH= 1
CATEGORIES= x11-fonts
-MAINTAINER= winston@ml1.net
+MAINTAINER= wulf@cicgroup.ru
COMMENT= Roboto typeface family
LICENSE= APACHE20
@@ -23,8 +23,15 @@ GH_PROJECT= roboto
SUB_FILES= pkg-message
+PLIST_SUB= FCDIR=${FCDIR} FCDIR_LINKS=${FCDIR_LINKS}
+FCDIR?= etc/fonts/conf.avail
+FCDIR_LINKS= ${FCDIR:S|conf.avail|conf.d|}
+
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/hinted/*.ttf ${STAGEDIR}${FONTSDIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${FCDIR}/ ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/
+ ${INSTALL_DATA} ${FILESDIR}/*.conf ${STAGEDIR}${PREFIX}/${FCDIR}/
+ cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*.conf .
.include <bsd.port.mk>
diff --git a/x11-fonts/roboto-fonts-ttf/distinfo b/x11-fonts/roboto-fonts-ttf/distinfo
index 70c0eeca7d58..9f5c4e48da6a 100644
--- a/x11-fonts/roboto-fonts-ttf/distinfo
+++ b/x11-fonts/roboto-fonts-ttf/distinfo
@@ -1,2 +1,3 @@
-SHA256 (google-roboto-v2.131_GH0.tar.gz) = 34b32fdc37d935ec3e723b9d5895c0a2e1d1070e8f8d8821eac1c8a7c84aff7b
-SIZE (google-roboto-v2.131_GH0.tar.gz) = 6264167
+TIMESTAMP = 1476726519
+SHA256 (google-roboto-v2.134_GH0.tar.gz) = 01f998e9e904d3c57ad363b6337f078fdac647fa5971b6159ad0d100a4e1edb1
+SIZE (google-roboto-v2.134_GH0.tar.gz) = 6288240
diff --git a/x11-fonts/roboto-fonts-ttf/files/64-google-roboto-condensed.conf b/x11-fonts/roboto-fonts-ttf/files/64-google-roboto-condensed.conf
new file mode 100644
index 000000000000..375db0eff516
--- /dev/null
+++ b/x11-fonts/roboto-fonts-ttf/files/64-google-roboto-condensed.conf
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Roboto Condensed</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Roboto Condensed</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+ <match target="scan">
+ <test name="family">
+ <string>Roboto Condensed</string>
+ </test>
+ <edit name="width">
+ <const>condensed</const>
+ </edit>
+ </match>
+</fontconfig>
+
diff --git a/x11-fonts/roboto-fonts-ttf/files/64-google-roboto.conf b/x11-fonts/roboto-fonts-ttf/files/64-google-roboto.conf
new file mode 100644
index 000000000000..18c73b321526
--- /dev/null
+++ b/x11-fonts/roboto-fonts-ttf/files/64-google-roboto.conf
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Roboto</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Roboto</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+ <match target="scan">
+ <test name="style">
+ <string>Thin</string>
+ </test>
+ <edit name="weight">
+ <const>thin</const>
+ </edit>
+ </match>
+ <match target="scan">
+ <test name="style">
+ <string>Thin Italic</string>
+ </test>
+ <edit name="weight">
+ <const>thin</const>
+ </edit>
+ </match>
+ <match target="scan">
+ <test name="style">
+ <string>Black</string>
+ </test>
+ <edit name="weight">
+ <const>black</const>
+ </edit>
+ </match>
+ <match target="scan">
+ <test name="style">
+ <string>Black Italic</string>
+ </test>
+ <edit name="weight">
+ <const>black</const>
+ </edit>
+ </match>
+</fontconfig>
+
diff --git a/x11-fonts/roboto-fonts-ttf/pkg-plist b/x11-fonts/roboto-fonts-ttf/pkg-plist
index 6733cdde075e..83e88b5c1439 100644
--- a/x11-fonts/roboto-fonts-ttf/pkg-plist
+++ b/x11-fonts/roboto-fonts-ttf/pkg-plist
@@ -1,3 +1,7 @@
+%%FCDIR%%/64-google-roboto-condensed.conf
+%%FCDIR%%/64-google-roboto.conf
+%%FCDIR_LINKS%%/64-google-roboto-condensed.conf
+%%FCDIR_LINKS%%/64-google-roboto.conf
%%FONTSDIR%%/Roboto-Black.ttf
%%FONTSDIR%%/Roboto-BlackItalic.ttf
%%FONTSDIR%%/Roboto-Bold.ttf