Index: head/misc/freebsd-doc-en/Makefile =================================================================== --- head/misc/freebsd-doc-en/Makefile (revision 384972) +++ head/misc/freebsd-doc-en/Makefile (revision 384973) @@ -1,95 +1,100 @@ # Created by: Marc Fonvieille # $FreeBSD$ PORTNAME= freebsd-doc PORTVERSION= 46616 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= misc docs MASTER_SITES= LOCAL/blackend PKGNAMEPREFIX?= en- MAINTAINER= doceng@FreeBSD.org COMMENT?= Documentation from the FreeBSD Documentation Project BUILD_DEPENDS= docproj>=2.0_1:${PORTSDIR}/textproc/docproj USES= uidfix WRKSRC= ${WRKDIR}/doc PLIST_SUB= DOCSDIR=${DOCBASE} \ DOCLANG=${DOCLANG} \ DOCLANG_PREFIX=${DOCLANG_PREFIX} MAKE_ARGS= FORMATS="${DOCFORMAT}" \ DOC_LANG="${DOCLANG}" \ INSTALL_COMPRESSED= \ DOCDIR=${STAGEDIR}${PREFIX}/${DOCBASE} \ DOCOWN=${SHAREOWN} \ DOCGRP=${SHAREGRP} MAKE_JOBS_UNSAFE= yes # To populate correctly the stage directory TMPDESTDIR= ${STAGEDIR}${DESTDIR}/${PREFIX}/${DOCBASE} DESTDIRNAME= TMPDESTDIR PLIST= ${WRKDIR}/pkg-plist DOCLANG?= en_US.ISO8859-1 DOCLANG_PREFIX?= ${DOCLANG:C/_.*$//} DOCBASE?= share/doc/freebsd AVAILABLEFORMATS= HTML HTML_SPLIT PDF PS TXT OPTIONS_DEFINE= ${AVAILABLEFORMATS} OPTIONS_DEFAULT= HTML_SPLIT PDF HTML_DESC= Single HTML file per document HTML_SPLIT_DESC= The default HTML format used on www.FreeBSD.org PDF_DESC= PDF format PS_DESC= PostScript format TXT_DESC= Plain text # if PACKAGE_BUILDING=yes, enable all of $AVAILABLEFORMATS. .if defined(PACKAGE_BUILDING) OPTIONS_SET+= ${AVAILABLEFORMATS} .endif .include .for O in ${AVAILABLEFORMATS} .if ${PORT_OPTIONS:M${O}} DOCFORMAT+= ${O:tl:S,_,-,} PLIST_FORMATS+= ${O:tl:S,_,-,} .endif .endfor .if ${PORT_OPTIONS:MPDF} || ${PORT_OPTIONS:MPS} BUILD_DEPENDS+= fop:${PORTSDIR}/textproc/fop \ ${LOCALBASE}/share/fonts/GentiumPlus/GentiumPlus-R.ttf:${PORTSDIR}/x11-fonts/gentium-plus \ ${LOCALBASE}/share/fonts/Droid/DroidSans.ttf:${PORTSDIR}/x11-fonts/droid-fonts-ttf \ ${LOCALBASE}/share/fonts/Lohit/Lohit-Bengali.ttf:${PORTSDIR}/x11-fonts/lohit \ ${LOCALBASE}/share/fonts/dejavu/DejaVuSansMono.ttf:${PORTSDIR}/x11-fonts/dejavu \ ${LOCALBASE}/share/fonts/TrueType/gkai00mp.ttf:${PORTSDIR}/chinese/arphicttf \ ${LOCALBASE}/share/fonts/OTF/ipam.otf:${PORTSDIR}/japanese/font-ipa .endif # when html or html-split is defined as the format, add HTML_COMMON. .if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MHTML_SPLIT} PLIST_FORMATS+= html-common .endif # example files, scripts, etc. coming with the doc and common # directories for all formats. PLIST_FORMATS+= extras common pre-build: - ${CAT} ${PLIST_FORMATS:S,^,${.CURDIR}/pkg-plist.,} > ${PLIST} +.for i in ${PLIST_FORMATS:S,^,${.CURDIR}/pkg-plist.,} + if ${TEST} -f ${i}; then \ + ${CAT} ${i} >> ${PLIST}; \ + fi +.endfor # For HTML files, images links are hardcoded during the build # with absolute pathnames. Make these pathnames relative. post-build: .if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MHTML_SPLIT} ${FIND} ${WRKSRC} -name "*.html" -exec \ ${REINPLACE_CMD} -e 's,img src=\"${WRKSRC}.*share/images,img src=\"../..,g' {} \; ${FIND} ${WRKSRC} -name "*.html" -exec \ ${REINPLACE_CMD} -e 's,img src=\"${WRKSRC}.*imagelib,img src=\"imagelib,g' {} \; .endif .include Index: head/misc/freebsd-doc-es/pkg-plist.extras =================================================================== --- head/misc/freebsd-doc-es/pkg-plist.extras (revision 384972) +++ head/misc/freebsd-doc-es/pkg-plist.extras (nonexistent) @@ -1,3 +0,0 @@ -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/fase_1.sh -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/fase_2.sh -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/fase_3.mk Property changes on: head/misc/freebsd-doc-es/pkg-plist.extras ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/misc/freebsd-doc-ja/pkg-plist.extras =================================================================== --- head/misc/freebsd-doc-ja/pkg-plist.extras (revision 384972) +++ head/misc/freebsd-doc-ja/pkg-plist.extras (nonexistent) @@ -1,5 +0,0 @@ -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_1.conf.default -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_1.sh -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_2.conf.default -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_2.sh -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_3.mk Property changes on: head/misc/freebsd-doc-ja/pkg-plist.extras ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/misc/freebsd-doc-ru/pkg-plist.extras =================================================================== --- head/misc/freebsd-doc-ru/pkg-plist.extras (revision 384972) +++ head/misc/freebsd-doc-ru/pkg-plist.extras (nonexistent) @@ -1,5 +0,0 @@ -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_1.conf.default -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_1.sh -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_2.conf.default -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_2.sh -%%DOCSDIR%%/%%DOCLANG%%/articles/fbsd-from-scratch/stage_3.mk Property changes on: head/misc/freebsd-doc-ru/pkg-plist.extras ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property