svn commit: r396788 - in head/japanese/font-ipamjm: . files
Hiroki Sato
hrs at FreeBSD.org
Sat Sep 12 23:21:52 UTC 2015
Author: hrs
Date: Sat Sep 12 23:21:50 2015
New Revision: 396788
URL: https://svnweb.freebsd.org/changeset/ports/396788
Log:
- Use post-install-DOCS-on.
- Use %%FONTSDIR%% directly.
Modified:
head/japanese/font-ipamjm/Makefile
head/japanese/font-ipamjm/files/pkg-install.in
Modified: head/japanese/font-ipamjm/Makefile
==============================================================================
--- head/japanese/font-ipamjm/Makefile Sat Sep 12 23:19:38 2015 (r396787)
+++ head/japanese/font-ipamjm/Makefile Sat Sep 12 23:21:50 2015 (r396788)
@@ -42,6 +42,8 @@ do-install:
${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
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
Modified: head/japanese/font-ipamjm/files/pkg-install.in
==============================================================================
--- head/japanese/font-ipamjm/files/pkg-install.in Sat Sep 12 23:19:38 2015 (r396787)
+++ head/japanese/font-ipamjm/files/pkg-install.in Sat Sep 12 23:21:50 2015 (r396788)
@@ -1,8 +1,6 @@
#!/bin/sh
# $FreeBSD$
-FONTSDIR=%%FONTSDIR%%
-
catfontsdir ()
{
while read _IN
@@ -73,7 +71,7 @@ nfonts ()
case "$2" in
POST-INSTALL)
- cd ${FONTSDIR}
+ cd %%FONTSDIR%%
touch fonts.dir
(catfontsdir < fonts.dir; addentries) > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
@@ -81,7 +79,7 @@ POST-INSTALL)
rm -f fonts.dir.tmp
;;
POST-DEINSTALL)
- cd ${FONTSDIR}
+ cd %%FONTSDIR%%
catfontsdir < fonts.dir > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
More information about the svn-ports-all
mailing list