freebsd-ports/devel/subversion-book/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

52 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= subversion-book
DISTVERSION= 4515
CATEGORIES= devel misc
MASTER_SITES= LOCAL/lev
DISTFILES= svn-book-html-r${DISTVERSION}.tar.bz2 \
svn-book-r${DISTVERSION}.pdf
DIST_SUBDIR= subversion18
EXTRACT_ONLY= svn-book-html-r${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= lev@FreeBSD.org
COMMENT= Subversion Documentation HTML/PDF
# Creative Commons Legal Code
# http://svnbook.red-bean.com/en/1.7/svn.copyright.html
LICENSE= CDDL
USES= tar:bzip2
NO_BUILD= yes
OPTIONS_SUB= yes
OPTIONS_DEFINE= HTML_SINGLE PDF
OPTIONS_DEFAULT= HTML_SINGLE
HTML_SINGLE_DESC= Single HTML page edition
PDF_DESC= PDF edition
.include <bsd.port.options.mk>
.if !${PORT_OPTIONS:MDOCS}
IGNORE= it does not make sense to install dedicated documentation if DOCS are globally disabled
.endif
do-extract:
@${MKDIR} ${WRKDIR}
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MHTML_SINGLE}
${TAR} -xof ${DISTDIR}/${DIST_SUBDIR}/svn-book-html-r${PORTVERSION}.tar.bz2 \
-C ${STAGEDIR}${DOCSDIR}
(cd ${STAGEDIR}${DOCSDIR}/svn-book-html && ${LN} -s svn-book.html index.html)
.endif
.if ${PORT_OPTIONS:MPDF}
${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/svn-book-r${PORTVERSION}.pdf \
${STAGEDIR}${DOCSDIR}/svn-book.pdf
.endif
.include <bsd.port.mk>