2013-08-27 18:24:56 +02:00
|
|
|
# Created by: Olivier Duchateau <duchateau.olivier@gmail.com>
|
2010-08-22 16:49:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= droid-fonts-ttf
|
2014-02-27 09:20:55 +01:00
|
|
|
PORTVERSION= 20131024
|
2015-03-24 12:28:03 +01:00
|
|
|
PORTREVISION= 3
|
2010-08-22 16:49:17 +02:00
|
|
|
CATEGORIES= x11-fonts
|
2014-02-27 09:20:55 +01:00
|
|
|
MASTER_SITES= LOCAL/sunpoet
|
2010-08-22 16:49:17 +02:00
|
|
|
|
2011-07-11 03:17:02 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2010-08-22 16:49:17 +02:00
|
|
|
COMMENT= The Droid typeface family
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2010-08-22 16:49:17 +02:00
|
|
|
|
2015-07-31 18:26:02 +02:00
|
|
|
NO_ARCH= yes
|
2014-07-22 19:53:24 +02:00
|
|
|
NO_BUILD= yes
|
2015-03-19 18:47:17 +01:00
|
|
|
USES= fonts tar:xz
|
2010-08-22 16:49:17 +02:00
|
|
|
|
2015-07-31 18:26:02 +02:00
|
|
|
FONTNAME= Droid
|
2011-07-18 02:34:55 +02:00
|
|
|
SUB_FILES= pkg-message
|
2010-08-22 16:49:17 +02:00
|
|
|
|
|
|
|
do-install:
|
2015-03-20 15:35:13 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${FONTSDIR}/
|
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTSDIR}/
|
2011-07-18 02:34:55 +02:00
|
|
|
|
|
|
|
# maintainer section:
|
2014-02-27 09:20:55 +01:00
|
|
|
# https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/
|
2011-07-18 02:34:55 +02:00
|
|
|
|
2014-02-27 09:20:55 +01:00
|
|
|
MS_DISTFILES= fonts.tar.gz
|
|
|
|
MS_FONTS= ${WRKSRC}/.ms-fonts
|
|
|
|
MS_MASTER_SITE= https://android.googlesource.com/platform/frameworks/base/+archive/master/data/
|
|
|
|
MS_PLIST= ${WRKSRC}/.ms-pkg-plist
|
|
|
|
MS_VERSION?= ${PORTVERSION}
|
|
|
|
MS_WRKSRC= ${WRKSRC}/tmp
|
2011-07-18 02:34:55 +02:00
|
|
|
|
|
|
|
maketar: do-clean extract
|
2014-02-27 09:20:55 +01:00
|
|
|
${MKDIR} ${MS_WRKSRC}/ ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
|
|
|
|
${FETCH_CMD} -o ${MS_WRKSRC}/${MS_DISTFILES} ${MS_MASTER_SITE}${MS_DISTFILES}
|
|
|
|
${TAR} -x -C ${MS_WRKSRC}/ -f ${MS_WRKSRC}/${MS_DISTFILES}
|
|
|
|
${LS} ${MS_WRKSRC}/Droid*.ttf | ${SED} 's|${MS_WRKSRC}/||' > ${MS_FONTS}
|
|
|
|
${MV} ${MS_WRKSRC}/Droid*.ttf ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
|
|
|
|
${TAR} -Jc -C ${MS_WRKSRC}/ -f ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${PORTNAME}-${MS_VERSION}/
|
|
|
|
sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
|
2011-07-18 02:34:55 +02:00
|
|
|
${SED} -i '' -e 's|${PORTVERSION}|${MS_VERSION}|' ${.CURDIR}/Makefile
|
2014-04-06 07:46:41 +02:00
|
|
|
cd ${.CURDIR}/ && ${MAKE_CMD} makesum
|
2011-07-18 02:34:55 +02:00
|
|
|
${ECHO_MSG} '*** Update from ${PORTVERSION} to ${MS_VERSION} ***'
|
2014-02-27 09:20:55 +01:00
|
|
|
# genplist
|
2015-03-19 18:47:17 +01:00
|
|
|
${SED} 's|^|%%FONTSDIR%%/|' ${MS_FONTS} > ${MS_PLIST}
|
|
|
|
${ECHO_CMD} "%%FONTSDIR%%/fonts.dir" >> ${MS_PLIST}
|
|
|
|
${ECHO_CMD} "%%FONTSDIR%%/fonts.scale" >> ${MS_PLIST}
|
2014-02-27 09:20:55 +01:00
|
|
|
${INSTALL} -m 600 ${MS_PLIST} ${PLIST}
|
2010-08-22 16:49:17 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|