diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2007-09-02 13:14:52 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2007-09-02 13:14:52 +0000 |
commit | a32c2dce7c875b9dbf650b0b871ec226693e7470 (patch) | |
tree | 09e4b556425d66ed09c352a58785133cbb377680 /editors/nxml | |
parent | 5a5dfabb6aa30ba7ae5c8d6b229ce6a7c2734351 (diff) | |
download | ports-a32c2dce7c875b9dbf650b0b871ec226693e7470.tar.gz ports-a32c2dce7c875b9dbf650b0b871ec226693e7470.zip |
- EMACS_PORT_NAME cleanups: editors/nxml-emacs21 is now a slave
port of editors/nxml.
- Some style fixes in editors/nxml.
PR: ports/115154
Notes
Notes:
svn path=/head/; revision=198640
Diffstat (limited to 'editors/nxml')
-rw-r--r-- | editors/nxml/Makefile | 44 | ||||
-rw-r--r-- | editors/nxml/pkg-plist | 10 |
2 files changed, 19 insertions, 35 deletions
diff --git a/editors/nxml/Makefile b/editors/nxml/Makefile index 76b3be79aeb5..7b81e271db9b 100644 --- a/editors/nxml/Makefile +++ b/editors/nxml/Makefile @@ -10,45 +10,39 @@ PORTVERSION= ${NXML_VER} PORTREVISION= 1 CATEGORIES= editors elisp MASTER_SITES= http://www.thaiopensource.com/download/ +PKGNAMESUFFIX= -${EMACS_PORT_NAME} MAINTAINER= hrs@FreeBSD.org -COMMENT= A major mode for editing XML documents for emacs21 +COMMENT= A major mode for editing XML documents for ${EMACS_PORT_NAME} -# distfile version -NXML_VER= 20041004 -NXML_STARTUPEL= nxml-startup.el USE_EMACS= yes -EMACS_PORT_NAME?=emacs21 INFO= nxml-mode -DOCUMENTS= README NEWS VERSION TODO COPYING \ +PORTDOCS= README NEWS VERSION TODO COPYING \ nxml-mode.xml nxml-mode.rnc test.invalid.xml test.valid.xml -NXML_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/nxml - -post-build: - cd ${WRKSRC}; \ - ${MAKE} nxml-mode.info -pre-su-install: - @${MKDIR} ${NXML_LISPDIR} +NXML_VER= 20041004 +NXML_STARTUPEL= nxml-startup.el +NXML_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/nxml +NXML_INSTDIRS= . char-name char-name/unicode schema +NXML_INCLEXP= \.el$$\|\.elc$$\|\.rnc$$\|\.xml$$ +NXML_EXCLEXP= nxml-mode.xml\|nxml-mode.rnc\|test.invalid.xml\|test.valid.xml do-install: - cd ${INSTALL_WRKSRC}; \ - ${INSTALL_DATA} *.el ${NXML_LISPDIR}; \ - ${INSTALL_DATA} *.elc ${NXML_LISPDIR} -.for DIR in char-name schema - cd ${INSTALL_WRKSRC}; \ - ${FIND} ${DIR} -type d -exec ${MKDIR} ${NXML_LISPDIR}/\{} \; ;\ - ${FIND} ${DIR} -type f -exec ${INSTALL_DATA} \{} ${NXML_LISPDIR}/\{} \; + @${MKDIR} ${NXML_INSTDIRS:S,^,${NXML_LISPDIR}/,} +.for D in ${NXML_INSTDIRS} + @cd ${INSTALL_WRKSRC}/${D} && \ + ${LS} \ + | ${GREP} '${NXML_INCLEXP}' | ${GREP} -v '${NXML_EXCLEXP}' \ + | ${XARGS} -J % ${INSTALL_DATA} % ${NXML_LISPDIR}/${D} .endfor post-install: - ${INSTALL_DATA} ${INSTALL_WRKSRC}/nxml-mode.info ${PREFIX}/info + @${INSTALL_DATA} ${INSTALL_WRKSRC}/nxml-mode.info ${PREFIX}/info .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for F in ${DOCUMENTS} - ${INSTALL_DATA} ${INSTALL_WRKSRC}/${F} ${DOCSDIR} -.endfor + @${MKDIR} ${DOCSDIR} + @cd ${INSTALL_WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/editors/nxml/pkg-plist b/editors/nxml/pkg-plist index c2ab890d68fe..c409210f6351 100644 --- a/editors/nxml/pkg-plist +++ b/editors/nxml/pkg-plist @@ -200,13 +200,3 @@ @dirrm %%EMACS_VERSION_SITE_LISPDIR%%/nxml/char-name @dirrm %%EMACS_VERSION_SITE_LISPDIR%%/nxml/schema @dirrm %%EMACS_VERSION_SITE_LISPDIR%%/nxml -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%DOCSDIR%%/VERSION -%%PORTDOCS%%%%DOCSDIR%%/nxml-mode.xml -%%PORTDOCS%%%%DOCSDIR%%/nxml-mode.rnc -%%PORTDOCS%%%%DOCSDIR%%/test.invalid.xml -%%PORTDOCS%%%%DOCSDIR%%/test.valid.xml -%%PORTDOCS%%@dirrm %%DOCSDIR%% |