aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/pdfoutline/Makefile24
-rw-r--r--textproc/pdfoutline/distinfo3
-rw-r--r--x11-fonts/fntsample/Makefile63
-rw-r--r--x11-fonts/fntsample/distinfo12
4 files changed, 59 insertions, 43 deletions
diff --git a/textproc/pdfoutline/Makefile b/textproc/pdfoutline/Makefile
index 6a4782007250..cc42611116a3 100644
--- a/textproc/pdfoutline/Makefile
+++ b/textproc/pdfoutline/Makefile
@@ -6,28 +6,14 @@
#
PORTNAME= pdfoutline
-PORTVERSION= 0.0.${DATE:S/-//g}
-DISTVERSION= 2.4
+PORTREVISION= 0
CATEGORIES= textproc
-MASTER_SITES= SF/fntsample
-DISTNAME= fntsample-${DISTVERSION}
-MAINTAINER= ports@FreeBSD.org
COMMENT= Add outlines to PDF files
-RUN_DEPENDS= p5-PDF-API2>=0:${PORTSDIR}/textproc/p5-PDF-API2
+MASTERDIR= ${.CURDIR}/../../x11-fonts/fntsample
+DESCR= ${.CURDIR}/pkg-descr
-USE_PERL5_RUN= yes
-NO_BUILD= yes
-PLIST_FILES= bin/${PORTNAME}
-MAN1= ${PORTNAME}.1
-DATE= 2007-03-14
+PDFOUTLINE= yes
-post-patch:
- @${SED} -e 's|@DATE@|2007-03-14|' ${WRKSRC}/${PORTNAME}.1.in > ${WRKSRC}/${PORTNAME}.1
-
-do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/pdfoutline/distinfo b/textproc/pdfoutline/distinfo
deleted file mode 100644
index 835a9d00ddde..000000000000
--- a/textproc/pdfoutline/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (fntsample-2.4.tar.gz) = 013e5f5d6f4035437e67d0ee665de1bd
-SHA256 (fntsample-2.4.tar.gz) = db23d5e5320f7d0447a59370d95aff90bc3c600fa05c111688e0d85642c992a5
-SIZE (fntsample-2.4.tar.gz) = 84348
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