Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/p5-Cairo/Makefile,v retrieving revision 1.5 diff -N -u Makefile --- Makefile 7 Jun 2009 08:42:52 -0000 1.5 +++ Makefile 11 Jun 2009 09:55:57 -0000 @@ -6,6 +6,7 @@ MODULES= cpan DISTNAME= Cairo-1.061 +PKGNAME= p5-${DISTNAME}p0 CATEGORIES= graphics devel CPAN_AUTHOR= TSCH @@ -21,5 +22,18 @@ LIB_DEPENDS= cairo.>=6::graphics/cairo BUILD_DEPENDS= ::devel/p5-ExtUtils-Depends \ ::devel/p5-ExtUtils-PkgConfig + +EXAMPLE_DIR = ${PREFIX}/share/examples/p5-Cairo +EXAMPLE_LOC = ${WRKSRC}/examples + + +post-install: + ${INSTALL_DATA_DIR} ${EXAMPLE_DIR} + ${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/png + ${INSTALL_SCRIPT} ${EXAMPLE_LOC}/*.pl ${EXAMPLE_DIR}/ + ${INSTALL_SCRIPT} ${EXAMPLE_LOC}/png/*.pl ${EXAMPLE_DIR}/png + ${INSTALL_DATA} ${EXAMPLE_LOC}/png/README ${EXAMPLE_DIR}/png + + .include <bsd.port.mk> Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/graphics/p5-Cairo/pkg/PLIST,v retrieving revision 1.1.1.1 diff -N -u pkg/PLIST --- pkg/PLIST 19 May 2007 14:24:01 -0000 1.1.1.1 +++ pkg/PLIST 11 Jun 2009 09:55:57 -0000 @@ -14,3 +14,19 @@ ${P5ARCH}/auto/Cairo/Cairo.bs ${P5ARCH}/auto/Cairo/Cairo.so @man man/man3p/Cairo.3p +share/examples/p5-Cairo/ +share/examples/p5-Cairo/freetype-font.pl +share/examples/p5-Cairo/png/ +share/examples/p5-Cairo/png-streams.pl +share/examples/p5-Cairo/png/README +share/examples/p5-Cairo/png/bevels.pl +share/examples/p5-Cairo/png/caps_joins.pl +share/examples/p5-Cairo/png/hering.pl +share/examples/p5-Cairo/png/outline.pl +share/examples/p5-Cairo/png/spiral.pl +share/examples/p5-Cairo/png/spline-pipeline.pl +share/examples/p5-Cairo/png/splines_tolerance.pl +share/examples/p5-Cairo/png/stars.pl +share/examples/p5-Cairo/png/text-rotate.pl +share/examples/p5-Cairo/png/text.pl +share/examples/p5-Cairo/simple.pl
This patch installs the example files for Cairo, all but one of them
work with only Cairo's ${RUN_DEPENDS}, (freetype-font.pl depends on
uncommitted FreeType::Font).