aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/fira/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-06-27 14:15:43 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-06-27 14:15:43 +0000
commit48969de7e32c103805954497e64bf58811f2023f (patch)
treef6e20eea1435290e0cb1819172745e113ef9ee25 /x11-fonts/fira/Makefile
parent2a912e1c5e4be08da2ea6566287d72dc0f3ea08a (diff)
downloadports-48969de7e32c103805954497e64bf58811f2023f.tar.gz
ports-48969de7e32c103805954497e64bf58811f2023f.zip
Notes
Diffstat (limited to 'x11-fonts/fira/Makefile')
-rw-r--r--x11-fonts/fira/Makefile46
1 files changed, 31 insertions, 15 deletions
diff --git a/x11-fonts/fira/Makefile b/x11-fonts/fira/Makefile
index 1f59347b8a03..560ed52aadaf 100644
--- a/x11-fonts/fira/Makefile
+++ b/x11-fonts/fira/Makefile
@@ -2,45 +2,61 @@
# $FreeBSD$
PORTNAME= fira
-PORTVERSION= 1.0
+PORTVERSION= 3.108
CATEGORIES= x11-fonts
+MASTER_SITES= http://dev.carrois.com/wordpress/downloads/${PORTNAME}_3_1/ \
+ SF/horia/${CATEGORIES}/${PORTNAME}/
+DISTNAME= ${PORTNAME:S|f|F|}Fonts${PORTVERSION:S|.||}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${PORTNAME:S|f|F|}PDF${PORTVERSION:S|.||}${EXTRACT_SUFX} \
+ ${PORTNAME:S|f|F|}UFO_beta${PORTVERSION:S|.||}${EXTRACT_SUFX} \
+ Version_Report.rtf
+EXTRACT_ONLY= ${DISTFILES:C|Version.*||}
MAINTAINER= horia@racoviceanu.com
COMMENT= Sans-serif and monospaced typeface for small screens
LICENSE= OFL11
-BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
- mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS:= ${BUILD_DEPENDS}
-USE_GITHUB= yes
-GH_ACCOUNT= mozilla
-GH_PROJECT= Fira
-GH_TAGNAME= ${GH_COMMIT}
-GH_COMMIT= 705ffff
-
+USES= zip
USE_XORG= x11
FONTLIBPATH= lib/X11/fonts
FONTROOTDIR= ${PREFIX}/${FONTLIBPATH}
FONTDIR= ${FONTROOTDIR}/${PORTNAME}
NO_BUILD= yes
-SUB_LIST= FONTDIR="${FONTDIR}"
+SUB_FILES= pkg-message
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
-PORTDOCS= README.md
+PORTDOCS= Version_Report.rtf \
+ ${PORTNAME:S|f|F|}*.pdf
-OPTIONS_DEFINE= DOCS
+PORTEXAMPLES= *
-SUB_FILES= pkg-message
+OPTIONS_DEFINE= DOCS EXAMPLES
+EXAMPLES_DESC= UFO source files
+
+.include <bsd.port.options.mk>
do-install:
@${MKDIR} ${STAGEDIR}${FONTDIR}
- ${INSTALL_DATA} ${WRKSRC}/ttf/${GH_PROJECT}*.ttf ${STAGEDIR}${FONTDIR}
- ${INSTALL_DATA} ${WRKSRC}/otf/${GH_PROJECT}*.otf ${STAGEDIR}${FONTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME:S|f|F|}*${PORTVERSION:S|.||}/OTF/${PORTNAME:S|f|F|}*.otf \
+ ${STAGEDIR}${FONTDIR}
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${CP} ${DISTDIR}/Version_Report.rtf ${WRKSRC}/
+ @${CP} ${WRKDIR}/${PORTNAME:S|f|F|}PDF${PORTVERSION:S|.||}/${PORTNAME:S|f|F|}*.pdf ${WRKSRC}/
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKDIR}/${PORTNAME:S|f|F|}UFO_beta${PORTVERSION:S|.||} && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+.endif
.include <bsd.port.mk>