mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Fix for xemacs-21.1.6.
semi package should be compatible with xemacs-package on xemacs-21.x.
This commit is contained in:
parent
544bf202d7
commit
5d8f252973
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21583
@ -17,8 +17,10 @@ PORTCLASS?= master
|
||||
# distfile version
|
||||
FLIM_VER= 1.9.2
|
||||
SEMI_VER= 1.8.6
|
||||
SEMIDOCDIR= share/doc/semi
|
||||
# setupel filename
|
||||
SEMI_SETUPEL= semi-setupel.el
|
||||
# document install directory by install-doc target
|
||||
SEMIDOCDIR?= share/doc/semi
|
||||
|
||||
.if (${PORTCLASS} == "master")
|
||||
# emacs port setup
|
||||
@ -33,15 +35,6 @@ REQUIRE_SETUPEL= YES
|
||||
# target name for make build
|
||||
ALL_TARGET?= elc
|
||||
|
||||
# if RUN_DEPENDS-emacs port name has the suffix '-common'.
|
||||
.if !defined(HAVE_COMMON_PORT)
|
||||
HAVE_COMMON_PORT= NO
|
||||
.endif
|
||||
# if RUN_DEPENDS-emacs needs setup elisp
|
||||
.if !defined(REQUIRE_SETUPEL)
|
||||
REQUIRE_SETUPEL= NO
|
||||
.endif
|
||||
|
||||
.if defined(EMACS_PORT)
|
||||
PKGNAME= semi-${EMACS_PORT}-${SEMI_VER}
|
||||
EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
|
||||
@ -51,21 +44,29 @@ RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
|
||||
.else
|
||||
RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
|
||||
.endif
|
||||
SCRIPTS_ENV= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
||||
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
||||
TARGETS="${SEMI_SETUPEL}"
|
||||
PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
|
||||
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
||||
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
||||
SEMIDOCDIR=${SEMIDOCDIR} SEMI_SETUPEL=${SEMI_SETUPEL}
|
||||
MAKE_FLAGS= EMACS=${EMACS_CMD}
|
||||
MAKE_FLAGS+= EMACS=${EMACS_CMD}
|
||||
.if (${EMACS_VER} == "19.34")
|
||||
# depends on custom: emacs-19.34 or mule-19.34
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
|
||||
.endif
|
||||
# depends on apel
|
||||
# depends on apel (case of xemacs-21.x or later)
|
||||
.if defined(EMACS_PACKAGESDIR)
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/apel/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/apel/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
|
||||
.else
|
||||
# depends on apel (case of other emacsen etc...)
|
||||
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
|
||||
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
|
||||
.endif
|
||||
# depends on flim
|
||||
BUILD_DEPENDS+= ${PKG_DBDIR}/flim-${EMACS_PORT}-${FLIM_VER}:${PORTSDIR}/editors/flim-${EMACS_PORT}
|
||||
RUN_DEPENDS+= ${PKG_DBDIR}/flim-${EMACS_PORT}-${FLIM_VER}:${PORTSDIR}/editors/flim-${EMACS_PORT}
|
||||
@ -79,40 +80,87 @@ RUN_DEPENDS+= ${PKG_DBDIR}/flim-${EMACS_PORT}-${FLIM_VER}:${PORTSDIR}/editors/fl
|
||||
# info files JIS to EUC
|
||||
BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
|
||||
|
||||
.if (${REQUIRE_SETUPEL} == "YES")
|
||||
pre-configure:
|
||||
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
|
||||
@${CP} ${FILESDIR}/${SEMI_SETUPEL}.in ${WRKDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
MAKEINFO= makeinfo --no-split --no-validate
|
||||
MAKEINFO= makeinfo --no-split --no-validate
|
||||
MAKEINFO_EMACS= ${EMACS_CMD} -no-site-file -no-init-file -batch
|
||||
MAKEINFO_EMACS_FLAGS= -e texinfo-format-buffer -f save-buffer
|
||||
|
||||
post-build:
|
||||
@${MAKE} info-build
|
||||
|
||||
post-install:
|
||||
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
|
||||
@${MAKE} setupel-install
|
||||
.endif
|
||||
.if defined(EMACS_PACKAGESDIR) && defined(MANIFEST)
|
||||
@${MAKE} info-package-install
|
||||
@${MAKE} manifest-install
|
||||
.else
|
||||
@${MAKE} info-install
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MAKE} doc-install
|
||||
.endif
|
||||
|
||||
|
||||
# functions
|
||||
info-build:
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in mime-ui-en.texi mime-ui-ja.texi; do \
|
||||
${MV} $${i} $${i}.jis ; \
|
||||
${CAT} $${i}.jis | nkf -e > $${i} ; \
|
||||
${ECHO_MSG} "===> Please ignore the following errors." ; \
|
||||
${MAKEINFO} $${i} || ${TRUE} ; \
|
||||
done)
|
||||
|
||||
post-install:
|
||||
info-build-by-emacs:
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in mime-ui-en.info mime-ui-ja.info; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
|
||||
install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
|
||||
for i in mime-ui-en.texi mime-ui-ja.texi; do \
|
||||
${MV} $${i} $${i}.jis ; \
|
||||
${CAT} $${i}.jis | nkf -e > $${i} ; \
|
||||
${MAKEINFO_EMACS} $${i} ${MAKEINFO_EMACS_FLAGS} || ${TRUE} ; \
|
||||
done)
|
||||
.if (${REQUIRE_SETUPEL} == "YES")
|
||||
@${INSTALL_DATA} ${WRKDIR}/${SEMI_SETUPEL} \
|
||||
${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
||||
doc-install:
|
||||
@${MKDIR} ${PREFIX}/${SEMIDOCDIR}
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in ChangeLog NEWS README.* TODO VERSION ; do \
|
||||
${INSTALL_DATA} $${i} ${PREFIX}/${SEMIDOCDIR}/ ; \
|
||||
done)
|
||||
.endif
|
||||
|
||||
setupel-install:
|
||||
@${INSTALL_DATA} ${WRKDIR}/${SEMI_SETUPEL} \
|
||||
${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
||||
|
||||
info-install:
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in mime-ui-en.info mime-ui-ja.info; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/info ; \
|
||||
install-info ${PREFIX}/info/$${i} ${PREFIX}/info/dir ; \
|
||||
done)
|
||||
|
||||
info-package-install:
|
||||
@(cd ${WRKSRC} ; \
|
||||
for i in mime-ui-en.info mime-ui-ja.info; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$${i} \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/info ; \
|
||||
done ; \
|
||||
${MKDIR} -p ${PREFIX}/${EMACS_PACKAGESDIR}/man/semi ; \
|
||||
for i in mime-ui-en.texi mime-ui-ja.texi; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$${i} \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/man/semi ; \
|
||||
done)
|
||||
|
||||
manifest-install:
|
||||
@${RM} -f ${WRKDIR}/${MANIFEST}
|
||||
@${CAT} ${PKGDIR}/PLIST | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \
|
||||
${SED} -e "s;^%%EMACS_PACKAGESDIR%%/;;" > ${WRKDIR}/${MANIFEST}
|
||||
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
||||
${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -17,9 +17,11 @@ MASTERDIR= ${.CURDIR}/../../editors/semi-emacs
|
||||
EMACS_NAME= xemacs
|
||||
EMACS_PORT= xemacs-mule
|
||||
EMACS_VER= 21.1.6
|
||||
EMACS_LIBDIR= lib/${EMACS_NAME}-${EMACS_VER}
|
||||
# xemacs-mule-21.1.6 has no version specific site-lisp directories.
|
||||
EMACS_LIBDIR_WITH_VER= ${EMACS_LIBDIR}
|
||||
EMACS_PACKAGESDIR= lib/${EMACS_NAME}/${EMACS_NAME}-packages
|
||||
|
||||
# how to make and install
|
||||
ALL_TARGET= package
|
||||
INSTALL_TARGET= install-package
|
||||
|
||||
# RUN_DEPENDS port name's suffix is '-common'.
|
||||
HAVE_COMMON_PORT= YES
|
||||
@ -27,4 +29,9 @@ HAVE_COMMON_PORT= YES
|
||||
# use pkg/* files in ${.CURDIR}
|
||||
PKGDIR= ${.CURDIR}/pkg
|
||||
|
||||
# package info manifest
|
||||
MANIFEST= MANIFEST.semi
|
||||
# package documents
|
||||
SEMIDOCDIR= ${EMACS_PACKAGESDIR}/lisp/semi
|
||||
|
||||
.include <${MASTERDIR}/Makefile>
|
||||
|
@ -20,6 +20,6 @@ SEMI, Library of MIME feature for GNU Emacs for xemacs-mule.
|
||||
MUAs. They are released as separated packages.
|
||||
|
||||
SEMI is installed the following directory tree:
|
||||
${PREFIX}/lib/xemacs-20.4/site-lisp/semi/ --- SEMI
|
||||
${PREFIX}/lib/xemacs/xemacs-packages/lisp/semi/ --- SEMI
|
||||
|
||||
--- Porting by shige <shige@FreeBSD.ORG>
|
||||
|
@ -1,42 +1,41 @@
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-setup.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-setup.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/signature.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/signature.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/semi-def.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/semi-def.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-image.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-image.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-view.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-view.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-text.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-text.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-play.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-play.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-partial.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-partial.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-edit.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-edit.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/semi-setup.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/semi-setup.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mail-mime-setup.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mail-mime-setup.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-pgp.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-pgp.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-mc.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-mc.elc
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-bbdb.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-w3.el
|
||||
%%EMACS_LIBDIR%%/site-lisp/semi/mime-w3.elc
|
||||
@dirrm %%EMACS_LIBDIR%%/site-lisp/semi
|
||||
%%SEMIDOCDIR%%/ChangeLog
|
||||
%%SEMIDOCDIR%%/NEWS
|
||||
%%SEMIDOCDIR%%/README.en
|
||||
%%SEMIDOCDIR%%/TODO
|
||||
%%SEMIDOCDIR%%/VERSION
|
||||
@dirrm %%SEMIDOCDIR%%
|
||||
@unexec install-info --delete %D/info/mime-ui-en.info %D/info/dir
|
||||
@unexec install-info --delete %D/info/mime-ui-ja.info %D/info/dir
|
||||
info/mime-ui-en.info
|
||||
info/mime-ui-ja.info
|
||||
@exec install-info %D/info/mime-ui-en.info %D/info/dir
|
||||
@exec install-info %D/info/mime-ui-ja.info %D/info/dir
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/ChangeLog
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/NEWS
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/README.en
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/TODO
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/VERSION
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/auto-autoloads.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/auto-autoloads.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/custom-load.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/custom-load.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mail-mime-setup.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mail-mime-setup.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-bbdb.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-edit.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-edit.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-image.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-image.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-mc.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-mc.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-partial.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-partial.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-pgp.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-pgp.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-play.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-play.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-text.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-text.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-view.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-view.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/mime-w3.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/semi-def.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/semi-def.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/semi-setup.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/semi-setup.elc
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/signature.el
|
||||
%%EMACS_PACKAGESDIR%%/lisp/semi/signature.elc
|
||||
@dirrm %%EMACS_PACKAGESDIR%%/lisp/semi
|
||||
%%EMACS_PACKAGESDIR%%/info/mime-ui-en.info
|
||||
%%EMACS_PACKAGESDIR%%/info/mime-ui-ja.info
|
||||
%%EMACS_PACKAGESDIR%%/man/semi/mime-ui-en.texi
|
||||
%%EMACS_PACKAGESDIR%%/man/semi/mime-ui-ja.texi
|
||||
@dirrm %%EMACS_PACKAGESDIR%%/man/semi
|
||||
|
Loading…
Reference in New Issue
Block a user