Skip to content

Commit

Permalink
textproc/muse: Optionize INFO
Browse files Browse the repository at this point in the history
- Remove unreachable MASTER_SITES
- Pet portclippy
- Utilize OPTIONSNG targets
- Mark NO_ARCH
  • Loading branch information
5u623l20 committed Oct 22, 2023
1 parent 4b82109 commit d40ffc8
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions textproc/muse/Makefile
Expand Up @@ -2,37 +2,49 @@ PORTNAME= muse
PORTVERSION= 3.20
PORTREVISION= 25
CATEGORIES= textproc elisp
MASTER_SITES= http://download.gna.org/muse-el/ \
LOCAL/dryice \
http://dryice.name/computer/FreeBSD/distfiles/
MASTER_SITES= LOCAL/dryice
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT= Authoring and publishing environment for Emacs
WWW= https://www.emacswiki.org/cgi-bin/wiki/MuseMode

USES= emacs gmake makeinfo
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

INFO= muse
USES= emacs gmake

LISPDIR= ${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
NO_ARCH= yes

PORTDOCS= AUTHORS ChangeLog ChangeLog.1 ChangeLog.2 ChangeLog.3 NEWS \
README scripts COPYING

OPTIONS_DEFINE= DOCS
OPTIONS_DEFINE= DOCS INFO
OPTIONS_DEFAULT= INFO

INFO_USES= makeinfo
INFO_INFO= muse

LISPDIR= ${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}

.if ${FLAVOR:Ufull:Mfull}
PKGNAMESUFFIX= -emacs
.endif

post-patch-INFO-off:
${REINPLACE_CMD} -e '/^SUBDIRS/s|texi||g; \
/^install:/s|install-info||g; /^all:/s|info-only||g' \
${WRKSRC}/Makefile

post-install:
@${MKDIR} ${STAGEDIR}${LISPDIR}/contrib
(cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${STAGEDIR}${LISPDIR})
${INSTALL_DATA} ${WRKSRC}/experimental/* \
${STAGEDIR}${LISPDIR}/experimental
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|scripts||:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
Expand Down

0 comments on commit d40ffc8

Please sign in to comment.