aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-01-20 22:41:42 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-01-20 22:41:42 +0000
commit2e6f5e789fc4533ad9c256e201b0279e44eb3082 (patch)
tree1e9eee61418fc827735528f3e60bdf3858bdf97e /x11-fonts
parent76e05f9193c10b37dec546446bbfafd3935c9cae (diff)
downloadports-2e6f5e789fc4533ad9c256e201b0279e44eb3082.tar.gz
ports-2e6f5e789fc4533ad9c256e201b0279e44eb3082.zip
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/fntsample/Makefile63
-rw-r--r--x11-fonts/fntsample/distinfo12
2 files changed, 54 insertions, 21 deletions
diff --git a/x11-fonts/fntsample/Makefile b/x11-fonts/fntsample/Makefile
index 0e4e0e0c8c9b..3d8b715ac9a2 100644
--- a/x11-fonts/fntsample/Makefile
+++ b/x11-fonts/fntsample/Makefile
@@ -5,36 +5,69 @@
# $FreeBSD$
#
-PORTNAME= fntsample
-PORTVERSION= 2.8
-PORTREVISION= 1
-CATEGORIES= x11-fonts
-MASTER_SITES= SF http://unicode.org/Public/5.0.0/ucd/:unidata
+PORTNAME?= fntsample
+PORTVERSION= 3.0
+PORTREVISION?= 0
+CATEGORIES?= x11-fonts
+MASTER_SITES= SF http://unicode.org/Public/5.1.0/ucd/:unidata
+MASTER_SITE_SUBDIR= fntsample
+DISTNAME= fntsample-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Blocks.txt:unidata
EXTRACT_ONLY= ${DISTFILES:M*gz}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Show Unicode coverage of a font
+COMMENT?= Show Unicode coverage of a font
+USE_PERL5_RUN= yes
+
+.if defined(PDFOUTLINE)
+RUN_DEPENDS= p5-Locale-libintl>=0:${PORTSDIR}/devel/p5-Locale-libintl \
+ p5-PDF-API2>=0:${PORTSDIR}/textproc/p5-PDF-API2
+
+NO_BUILD= yes
+
+MAN1= ${PORTNAME}.1
+PLIST_FILES= bin/${PORTNAME}
+.else
BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk
-LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \
- freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS= pdfoutline:${PORTSDIR}/textproc/pdfoutline
-USE_GNOME= glib20 pkgconfig pango
-USE_PERL5_RUN= yes
+USE_GNOME= pango
+USE_GETTEXT= yes
GNU_CONFIGURE= yes
-PLIST_FILES= bin/${PORTNAME}
+CONFIGURE_ARGS= --with-unicode-blocks=${WRKSRC}/Blocks.txt
+
MAN1= ${PORTNAME}.1
+PLIST_FILES= bin/${PORTNAME} share/locale/uk/LC_MESSAGES/${PORTNAME}.mo
+.endif
post-extract:
- @${CP} ${_DISTDIR}/Blocks.txt ${WRKSRC}/
+.if !defined(PDFOUTLINE)
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/Blocks.txt ${WRKSRC}
+.endif
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/share/unicode|${WRKSRC}|' ${WRKSRC}/configure
+.if defined(PDFOUTLINE)
+ @${SED} -e 's|##PACKAGE##|fntsample|g ; \
+ s|##LOCALEDIR##|${PREFIX}/share/locale|g' \
+ ${WRKSRC}/${PORTNAME}.pl > ${WRKSRC}/${PORTNAME}
+ @${SED} -e 's|@DATE@|2008-10-22|g' \
+ ${WRKSRC}/${PORTNAME}.1.in > ${WRKSRC}/${PORTNAME}.1
+.else
+ @${REINPLACE_CMD} -e \
+ 's|^bin_SCRIPTS|#bin_SCRIPTS|g' ${WRKSRC}/Makefile.in
+.endif
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
+.if defined(PDFOUTLINE)
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
+.else
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
+ @${MKDIR} ${PREFIX}/share/locale/uk/LC_MESSAGES
+ ${INSTALL_DATA} ${WRKSRC}/po/uk.gmo \
+ ${PREFIX}/share/locale/uk/LC_MESSAGES/${PORTNAME}.mo
+.endif
.include <bsd.port.mk>
diff --git a/x11-fonts/fntsample/distinfo b/x11-fonts/fntsample/distinfo
index 2b8043cb7bc8..241cc233f151 100644
--- a/x11-fonts/fntsample/distinfo
+++ b/x11-fonts/fntsample/distinfo
@@ -1,6 +1,6 @@
-MD5 (fntsample-2.8.tar.gz) = 4511fb91f6191a50ec2e81f53dbbbe6e
-SHA256 (fntsample-2.8.tar.gz) = ac66b1abae965535d324e8fdad57e1a7bd6b0b9318d61f364af61b4ce6632496
-SIZE (fntsample-2.8.tar.gz) = 90366
-MD5 (Blocks.txt) = 2555f416d6b064be4a532d3748268569
-SHA256 (Blocks.txt) = 4116c568ac01b49f1c27bf9ef3b4e9e9d9b10452997732e165a7bfd78862f16f
-SIZE (Blocks.txt) = 5455
+MD5 (fntsample-3.0.tar.gz) = 842d64d184bf03b0307940bf18e81905
+SHA256 (fntsample-3.0.tar.gz) = 580059b8d7772a09f22bf0aef8b5c795e6a83c60f6658e27b40a858f0fdf822d
+SIZE (fntsample-3.0.tar.gz) = 164912
+MD5 (Blocks.txt) = aee9add2c5e17a8140f64f78c7d1147e
+SHA256 (Blocks.txt) = 9c389049fcd4bba01164301e1efa16ab3058328d5a4913ad35d974401978062a
+SIZE (Blocks.txt) = 5857