2019-07-12 16:43:27 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2019/07/12 20:43:44 sthen Exp $
|
2003-05-29 19:52:29 -04:00
|
|
|
|
2007-09-15 17:32:05 -04:00
|
|
|
COMMENT= book on embedding Perl in HTML with Mason
|
2012-10-23 05:39:51 -04:00
|
|
|
CATEGORIES= books
|
2003-05-29 19:52:29 -04:00
|
|
|
|
|
|
|
# unversioned, so impose a version on it
|
|
|
|
V= 1.0
|
|
|
|
DISTNAME= mason-book
|
2010-07-24 02:29:07 -04:00
|
|
|
PKGNAME= ${DISTNAME}-${V}
|
|
|
|
REVISION= 0
|
2003-06-03 11:40:11 -04:00
|
|
|
DIST_SUBDIR= mason-book-${V}
|
2003-05-29 19:52:29 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.masonbook.com/
|
|
|
|
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}book/
|
|
|
|
|
2010-11-15 07:47:38 -05:00
|
|
|
BUILD_DEPENDS= www/p5-HTML-Parser \
|
|
|
|
graphics/p5-Image-Size \
|
|
|
|
www/p5-URI
|
2003-05-29 19:52:29 -04:00
|
|
|
|
|
|
|
# Open Publication License
|
2019-07-12 16:43:27 -04:00
|
|
|
PERMIT_PACKAGE= Yes
|
2003-05-29 19:52:29 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
INSTALL_LOC= ${PREFIX}/share/doc/mason-book
|
2013-03-10 19:04:44 -04:00
|
|
|
NO_TEST= Yes
|
2004-02-01 15:07:40 -05:00
|
|
|
PKG_ARCH= *
|
2003-05-29 19:52:29 -04:00
|
|
|
|
|
|
|
# pod files order important for TOC generation
|
|
|
|
BOOK_POD= foreword preface ch1 ch2 ch3 ch4 ch5 ch6 ch7 \
|
|
|
|
ch8 ch9 ch10 ch11 ch12 appendix-a appendix-b \
|
|
|
|
appendix-c appendix-d glossary colophon copyright
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cp ${FILESDIR}/book_as_html.pl ${WRKBUILD}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${INSTALL_LOC}
|
|
|
|
@cd ${WRKBUILD} && perl ${WRKBUILD}/book_as_html.pl --toc \
|
|
|
|
--target=${INSTALL_LOC} ${BOOK_POD:C/(.+)/\1.pod/g}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|