Hi, besiges bumping the version I install the plugin into the version independent vimfiles directory and automatically update the documentation tags on install/update and uninstall using @exec-always and @unexec-delete. The tags file is removed when the docs directory is empty after uninstalling, so the tags file won't interfere with deletion of the doc directory when all plugins are uninstalled. Is this a proper usage of those directives? OK?
Christopher Index: Makefile =================================================================== RCS file: /cvs/ports/devel/vim-taglist/Makefile,v retrieving revision 1.6 diff -u -p -r1.6 Makefile --- Makefile 11 Mar 2013 10:50:31 -0000 1.6 +++ Makefile 6 Sep 2014 09:24:34 -0000 @@ -2,9 +2,8 @@ COMMENT = source code browser plugin for the Vim text editor -DISTNAME = taglist_45 -PKGNAME = vim-taglist-4.5 -REVISION = 2 +DISTNAME = taglist_46 +PKGNAME = vim-taglist-4.6 CATEGORIES = devel editors EXTRACT_SUFX = .zip @@ -16,10 +15,6 @@ MAINTAINER = Simon Bertrang <simon@openb # BSD like license PERMIT_PACKAGE_CDROM = Yes -VIMDIR = vim73 - -SUBST_VARS = VIMDIR - WRKDIST = ${WRKDIR} RUN_DEPENDS = devel/ectags \ @@ -29,11 +24,10 @@ NO_BUILD = Yes NO_TEST = Yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/vim/${VIMDIR}/plugin/ \ - ${PREFIX}/share/vim/${VIMDIR}/doc/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/vim/vimfiles/{plugin,doc} ${INSTALL_DATA} ${WRKSRC}/plugin/taglist.vim \ - ${PREFIX}/share/vim/${VIMDIR}/plugin/ + ${PREFIX}/share/vim/vimfiles/plugin/ ${INSTALL_DATA} ${WRKSRC}/doc/taglist.txt \ - ${PREFIX}/share/vim/${VIMDIR}/doc/ + ${PREFIX}/share/vim/vimfiles/doc/ .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/vim-taglist/distinfo,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 distinfo --- distinfo 26 May 2008 09:33:54 -0000 1.1.1.1 +++ distinfo 6 Sep 2014 09:24:34 -0000 @@ -1,5 +1,2 @@ -MD5 (taglist_45.zip) = mbU2amTupgkrsUDffUwalQ== -RMD160 (taglist_45.zip) = zH1CjIseRX2WhvEoYhg6ZSTgRNY= -SHA1 (taglist_45.zip) = yAVrNZCoPwauOha4rns1DdTIfnw= -SHA256 (taglist_45.zip) = iqL0kQSJ8MTvKkpdne0Hiw6KBUpUKZiaT3jCS7hnU/4= -SIZE (taglist_45.zip) = 50243 +SHA256 (taglist_46.zip) = Uk4qcAHRzyNEnEQyk7biGqZUoaI4pStu3OfxLQzZi6E= +SIZE (taglist_46.zip) = 51455 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/vim-taglist/pkg/PLIST,v retrieving revision 1.2 diff -u -p -r1.2 PLIST --- pkg/PLIST 29 Oct 2008 09:04:53 -0000 1.2 +++ pkg/PLIST 6 Sep 2014 09:24:34 -0000 @@ -1,3 +1,9 @@ @comment $OpenBSD: PLIST,v 1.2 2008/10/29 09:04:53 simon Exp $ -share/vim/${VIMDIR}/doc/taglist.txt -share/vim/${VIMDIR}/plugin/taglist.vim +share/vim/vimfiles/ +share/vim/vimfiles/doc/ +share/vim/vimfiles/doc/taglist.txt +@exec-always rm -f %B/tags; vim --cmd helptags\ %B --cmd q 2>/dev/null || true +@comment vim won't create the tags file if the doc dir is empty. +@unexec-delete rm -f %B/tags; vim --cmd helptags\ %B --cmd q 2>/dev/null || true +share/vim/vimfiles/plugin/ +share/vim/vimfiles/plugin/taglist.vim -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub F190 D013 8F01 AA53 E080 3F3C F17F B0A1 D44E 4FEE
signature.asc
Description: PGP signature