freebsd-ports/editors/apel/Makefile
John Marino 48f24c13ae editors/apel: Unbreak after EMACS update
While here, pet portlint (fix comment, shorten pkg-descr)

PR:		193270
Submitted by:	Yoshiaki Kasahara
Approved by:	maintainer timeout (2+ months)
2014-11-13 08:47:43 +00:00

54 lines
1.2 KiB
Makefile

# Created by: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
# $FreeBSD$
PORTNAME= apel
PORTVERSION= ${APEL_VER}
PORTREVISION= 11
CATEGORIES= editors elisp
MASTER_SITES= http://git.chise.org/elisp/dist/apel/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= nobutaka@FreeBSD.org
COMMENT?= Portable Emacs Library
LICENSE= GPLv2
# distfile version
APEL_VER= 10.8
# apel lispdir
APEL_LISPDIR?= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}
APEL_VERSION_SPECIFIC_LISPDIR?= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}
# emacs port setup
USE_EMACS= yes
DESCR= ${PKGDIR}/pkg-descr
# target name for make build
ALL_TARGET?= elc
# environments
MAKE_ARGS+= PREFIX="${STAGEDIR}${LOCALBASE}" \
LISPDIR="${STAGEDIR}${APEL_LISPDIR}" \
VERSION_SPECIFIC_LISPDIR="${STAGEDIR}${APEL_VERSION_SPECIFIC_LISPDIR}"
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT=DOCS
.include <bsd.port.pre.mk>
.if ${EMACS_VER:C/\..*//} >= 23
PLIST_SUB+= EMACS23="" NOEMACS23="@comment "
.else
PLIST_SUB+= EMACS23="@comment " NOEMACS23=""
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC} ; \
for i in ChangeLog README.* ; do \
${INSTALL_DATA} $${i} ${STAGEDIR}${DOCSDIR} ; \
done)
.endif
.include <bsd.port.post.mk>