2012-05-02 04:57:45 +02:00
|
|
|
# New ports collection makefile for: font-ricty
|
|
|
|
# Date created: 24 April 2012
|
|
|
|
# Whom: masaki
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ricty
|
|
|
|
PORTVERSION= 3.2.0
|
2012-05-04 01:01:54 +02:00
|
|
|
PORTREVISION= 1
|
2012-05-02 04:57:45 +02:00
|
|
|
CATEGORIES= japanese x11-fonts
|
2012-05-04 01:01:54 +02:00
|
|
|
MASTER_SITES= https://nodeload.github.com/yascentur/Ricty/tarball/${PORTVERSION}?dummy=/
|
|
|
|
PKGNAMEPREFIX= ja-font-
|
2012-05-02 04:57:45 +02:00
|
|
|
|
|
|
|
MAINTAINER= masaki@club.kyutech.ac.jp
|
|
|
|
COMMENT= Ricty - fonts for programming
|
|
|
|
|
|
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${X_FONTSDIR}/OTF/Inconsolata.otf:${PORTSDIR}/x11-fonts/inconsolata-ttf \
|
|
|
|
${LOCALBASE}/${X_FONTSDIR}/TTF/migu-1m-regular.ttf:${PORTSDIR}/japanese/font-migu \
|
|
|
|
${LOCALBASE}/${X_FONTSDIR}/TTF/migu-1m-bold.ttf:${PORTSDIR}/japanese/font-migu \
|
|
|
|
fontforge:${PORTSDIR}/print/fontforge
|
|
|
|
|
2012-05-04 01:01:54 +02:00
|
|
|
NO_PACKAGE= redistribution is not allowed
|
|
|
|
FETCH_BEFORE_ARGS= -o ${DISTNAME}${EXTRACT_SUFX}
|
2012-05-02 04:57:45 +02:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
SUB_FILES= pkg-install
|
|
|
|
SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
|
|
|
|
PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
|
|
|
|
LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
|
|
|
|
PORTDOCS= README.md
|
|
|
|
TAG= b9d8b9c
|
|
|
|
WRKSRC= ${WRKDIR}/yascentur-Ricty-${TAG}
|
|
|
|
|
|
|
|
LOCAL_FONTSDIR= share/fonts
|
|
|
|
X_FONTSDIR= lib/X11/fonts
|
|
|
|
|
|
|
|
OPTIONS= DISCORD "Install Ricty-Discord" On
|
|
|
|
|
2012-05-04 01:01:54 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2012-05-02 04:57:45 +02:00
|
|
|
|
|
|
|
.if defined(WITH_DISCORD)
|
|
|
|
PLIST_SUB+= DISCORD=""
|
|
|
|
SUB_LIST+= DISCORD=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DISCORD="@comment "
|
|
|
|
SUB_LIST+= DISCORD="#"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} &&\
|
|
|
|
${SH} ${WRKSRC}/ricty_generator.sh \
|
|
|
|
${PREFIX}/${X_FONTSDIR}/OTF/Inconsolata.otf \
|
|
|
|
${PREFIX}/${X_FONTSDIR}/TTF/migu-1m-regular.ttf \
|
|
|
|
${PREFIX}/${X_FONTSDIR}/TTF/migu-1m-bold.ttf
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Ricty-*.ttf ${DATADIR}
|
|
|
|
.if defined(WITH_DISCORD)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/RictyDiscord-*.ttf ${DATADIR}
|
|
|
|
.endif
|
|
|
|
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TTF
|
|
|
|
${LN} -s -f \
|
|
|
|
${DATADIR}/*.ttf \
|
|
|
|
${PREFIX}/${LOCAL_FONTSDIR}/TTF/
|
|
|
|
${MKDIR} ${PREFIX}/${X_FONTSDIR}/TTF
|
|
|
|
${LN} -s -f \
|
|
|
|
${DATADIR}/*.ttf \
|
|
|
|
${PREFIX}/${X_FONTSDIR}/TTF/
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-ricty.conf \
|
|
|
|
${FILESDIR}/62-fonts-ricty.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.avail
|
|
|
|
${LN} -s -f ../conf.avail/20-unhint-ricty.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d/20-unhint-ricty.conf
|
|
|
|
${LN} -s -f ../conf.avail/62-fonts-ricty.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d/62-fonts-ricty.conf
|
|
|
|
.if defined(WITH_DISCORD)
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-rictydiscord.conf \
|
|
|
|
${FILESDIR}/62-fonts-rictydiscord.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.avail
|
|
|
|
${LN} -s -f ../conf.avail/20-unhint-rictydiscord.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d/20-unhint-rictydiscord.conf
|
|
|
|
${LN} -s -f ../conf.avail/62-fonts-rictydiscord.conf \
|
|
|
|
${PREFIX}/etc/fonts/conf.d/62-fonts-rictydiscord.conf
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${LOCALBASE}/bin/fc-cache -f -v ${PREFIX}/${X_FONTSDIR}/TTF
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
2012-05-04 01:01:54 +02:00
|
|
|
.include <bsd.port.mk>
|