2013-06-27 20:31:06 +02:00
|
|
|
# Created by: masaki
|
2012-05-02 04:57:45 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ricty
|
2015-01-31 17:48:41 +01:00
|
|
|
PORTVERSION= 3.2.4
|
2016-07-14 22:12:08 +02:00
|
|
|
PORTREVISION= 5
|
2012-05-02 04:57:45 +02:00
|
|
|
CATEGORIES= japanese x11-fonts
|
2016-07-14 22:12:08 +02:00
|
|
|
MASTER_SITES= http://www.rs.tus.ac.jp/yyusa/ricty/
|
2012-05-06 02:23:21 +02:00
|
|
|
PKGNAMEPREFIX= ja-font-
|
2016-07-14 22:12:08 +02:00
|
|
|
DISTFILES= ricty_generator-${PORTVERSION}.sh ricty_discord_converter.pe
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_ONLY= # nothing
|
2012-05-02 04:57:45 +02:00
|
|
|
|
2014-06-27 05:36:23 +02:00
|
|
|
MAINTAINER?= meta+ports@vmeta.jp
|
|
|
|
COMMENT?= Ricty - fonts for programming
|
2012-05-02 04:57:45 +02:00
|
|
|
|
2016-07-14 22:12:08 +02:00
|
|
|
LICENSE= OFL11
|
|
|
|
|
2016-04-01 16:08:37 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/fonts/inconsolata/Inconsolata.otf:x11-fonts/inconsolata-ttf \
|
|
|
|
${LOCALBASE}/share/fonts/TTF/migu-1m-regular.ttf:japanese/font-migu \
|
|
|
|
${LOCALBASE}/share/fonts/TTF/migu-1m-bold.ttf:japanese/font-migu \
|
|
|
|
fontforge:print/fontforge
|
2012-09-13 20:16:05 +02:00
|
|
|
|
2015-09-14 01:36:45 +02:00
|
|
|
USES= fonts:fc
|
2012-05-02 04:57:45 +02:00
|
|
|
|
2012-05-04 01:01:54 +02:00
|
|
|
NO_PACKAGE= redistribution is not allowed
|
2012-05-02 04:57:45 +02:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
SUB_FILES= pkg-install
|
|
|
|
|
2015-03-22 00:43:49 +01:00
|
|
|
FONTNAME= TTF
|
2012-05-02 04:57:45 +02:00
|
|
|
|
2014-06-27 05:36:23 +02:00
|
|
|
.if !defined(PKGNAMESUFFIX)
|
2016-07-14 22:12:08 +02:00
|
|
|
OPTIONS_DEFINE= DISCORD
|
2012-09-04 18:43:52 +02:00
|
|
|
DISCORD_DESC= Install Ricty-Discord
|
|
|
|
OPTIONS_DEFAULT= DISCORD
|
2014-06-27 05:36:23 +02:00
|
|
|
.endif
|
2012-05-02 04:57:45 +02:00
|
|
|
|
2012-05-04 01:01:54 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2012-05-02 04:57:45 +02:00
|
|
|
|
2014-06-27 05:36:23 +02:00
|
|
|
.if !defined(PKGNAMESUFFIX)
|
|
|
|
PLIST_SUB+= DISCORD="@comment " RICTY=""
|
|
|
|
SUB_LIST+= DISCORD=\# RICTY=""
|
2014-06-27 11:21:13 +02:00
|
|
|
.else
|
2014-06-27 05:36:23 +02:00
|
|
|
PLIST_SUB+= DISCORD="" RICTY="@comment "
|
|
|
|
SUB_LIST+= DISCORD="" RICTY=\#
|
|
|
|
.endif
|
|
|
|
|
2012-09-04 18:43:52 +02:00
|
|
|
.if ${PORT_OPTIONS:MDISCORD}
|
2017-01-13 17:54:55 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/${DATADIR_REL}/RictyDiscord-Regular.ttf:japanese/font-ricty-discord
|
2012-05-02 04:57:45 +02:00
|
|
|
.endif
|
|
|
|
|
2016-07-14 22:12:08 +02:00
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/ricty_generator-${PORTVERSION}.sh ${WRKSRC}/ricty_generator.sh
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/ricty_discord_converter.pe ${WRKSRC}/ricty_discord_patch.pe
|
|
|
|
|
2012-05-02 04:57:45 +02:00
|
|
|
do-build:
|
2015-01-31 17:48:41 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
2012-05-02 04:57:45 +02:00
|
|
|
${SH} ${WRKSRC}/ricty_generator.sh \
|
2015-03-22 00:43:49 +01:00
|
|
|
${PREFIX}/share/fonts/inconsolata/Inconsolata.otf \
|
|
|
|
${PREFIX}/share/fonts/TTF/migu-1m-regular.ttf \
|
|
|
|
${PREFIX}/share/fonts/TTF/migu-1m-bold.ttf
|
2012-05-02 04:57:45 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-06-27 05:36:23 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2015-03-22 00:43:49 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${FONTSDIR}
|
2014-06-27 05:36:23 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
|
|
|
|
.if !defined(PKGNAMESUFFIX)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Ricty-*.ttf ${STAGEDIR}${DATADIR}
|
2015-03-22 00:43:49 +01:00
|
|
|
cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
|
|
|
|
../../../${DATADIR_REL}/Ricty-*.ttf .
|
2014-06-27 05:36:23 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
|
|
|
|
${FILESDIR}/62-fonts-${PORTNAME}.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
|
|
|
|
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
|
|
|
|
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
|
2014-06-27 11:21:13 +02:00
|
|
|
.else
|
2014-06-27 05:36:23 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/RictyDiscord-*.ttf ${STAGEDIR}${DATADIR}
|
2015-03-22 00:43:49 +01:00
|
|
|
cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
|
|
|
|
../../../${DATADIR_REL}/RictyDiscord-*.ttf .
|
2014-06-27 05:36:23 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}discord.conf \
|
|
|
|
${FILESDIR}/62-fonts-${PORTNAME}discord.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
|
|
|
|
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}discord.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}discord.conf
|
|
|
|
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}discord.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}discord.conf
|
2012-05-02 04:57:45 +02:00
|
|
|
.endif
|
|
|
|
|
2012-05-04 01:01:54 +02:00
|
|
|
.include <bsd.port.mk>
|