git: ce638ecca3b7 - main - devel/magit-devel: Add PDF option and change DOCS option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 23:50:42 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=ce638ecca3b7a4d5c326c829d0fc90e11b337cd0 commit ce638ecca3b7a4d5c326c829d0fc90e11b337cd0 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-02-20 18:50:50 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-02-20 23:30:36 +0000 devel/magit-devel: Add PDF option and change DOCS option * Add new option PDF. If it is enabled PDF documents are built and installed. * Change DOCS option so HTML documents and all release notes are installed if it is enabled. --- devel/magit-devel/Makefile | 34 +++++++++++++++++++++++++--------- devel/magit-devel/pkg-plist | 2 ++ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/devel/magit-devel/Makefile b/devel/magit-devel/Makefile index ecb162913d0f..b8b7424f97fd 100644 --- a/devel/magit-devel/Makefile +++ b/devel/magit-devel/Makefile @@ -2,6 +2,7 @@ PORTNAME= magit DISTVERSIONPREFIX= v DISTVERSION= 3.3.0-133 DISTVERSIONSUFFIX= -g846d153a +PORTREVISION= 1 CATEGORIES= devel elisp PKGNAMESUFFIX= -devel${EMACS_PKGNAMESUFFIX} @@ -24,34 +25,49 @@ USE_GITHUB= yes MAKE_ENV+= docdir=${DOCSDIR} \ infodir=${PREFIX}/${INFO_PATH} \ INSTALL_INFO=install-info \ - lispdir=${PREFIX}/${_ELISPDIR} \ + lispdir=${PREFIX}/${ELISPDIR} \ LOAD_PATH="-L ${WRKSRC}/lisp -L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/ghub" \ VERSION=${PORTVERSION} # Parallel build fails if Emacs is built with native compilation enabled MAKE_JOBS_UNSAFE= yes +ALL_TARGET= lisp info +INSTALL_TARGET= install-lisp install-info CONFLICTS_INSTALL= magit-emacs* NO_ARCH= yes INFO= magit magit-section -PLIST_SUB+= ELISPDIR=${_ELISPDIR} -PORTDOCS= AUTHORS.md ReleaseNote +PLIST_SUB+= ELISPDIR=${ELISPDIR} +PORTDOCS= *.html *.md RelNotes/* -OPTIONS_DEFINE= DOCS LIBEGIT2 -OPTIONS_SUB= yes -LIBEGIT2_DESC= Use libegit2 as backend (EXPERIMENTAL) +OPTIONS_DEFINE= DOCS LIBEGIT2 PDF +OPTIONS_SUB= yes + +LIBEGIT2_DESC= Use libegit2 as backend (EXPERIMENTAL) +PDF_DESC= Build and install PDF document + +DOCS_BUILD_DEPENDS= gsed:textproc/gsed +DOCS_ALL_TARGET= html +DOCS_BINARY_ALIAS= sed=gsed LIBEGIT2_BUILD_DEPENDS= libegit2${EMACS_PKGNAMESUFFIX}>=g20200515:devel/libegit2@${EMACS_FLAVOR} LIBEGIT2_BUILD_DEPENDS_OFF= git:devel/git LIBEGIT2_RUN_DEPENDS= libegit2${EMACS_PKGNAMESUFFIX}>=g20200515:devel/libegit2@${EMACS_FLAVOR} LIBEGIT2_RUN_DEPENDS_OFF= git:devel/git LIBEGIT2_VARS= MAKE_ENV+=BUILD_MAGIT_LIBGIT=true +PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USE= TEX=dvipdfmx:build +PDF_ALL_TARGET= pdf -_ELISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} +ELISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR}/RelNotes + ${INSTALL_DATA} ${WRKSRC}/docs/*.md ${STAGEDIR}${DOCSDIR} + ${COPYTREE_SHARE} ${WRKSRC}/docs/RelNotes ${STAGEDIR}${DOCSDIR}/RelNotes + +do-install-PDF-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/RelNotes/3.4.0.org \ - ${STAGEDIR}${DOCSDIR}/ReleaseNote + ${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/devel/magit-devel/pkg-plist b/devel/magit-devel/pkg-plist index 21b48d087d9a..3a476c77e6bb 100644 --- a/devel/magit-devel/pkg-plist +++ b/devel/magit-devel/pkg-plist @@ -98,3 +98,5 @@ %%ELISPDIR%%/magit-worktree.elc %%ELISPDIR%%/magit.el %%ELISPDIR%%/magit.elc +%%PDF%%%%DOCSDIR%%/magit-section.pdf +%%PDF%%%%DOCSDIR%%/magit.pdf