diff options
author | gahr <gahr@FreeBSD.org> | 2009-07-02 03:09:40 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2009-07-02 03:09:40 +0800 |
commit | 0d6f5b5ccd8bd47f7259b1d17af3f7c7b6b1a08f (patch) | |
tree | c305eb07153848d0d6662b871841cb9c78cf46b5 /editors/code-browser | |
parent | ab55749aff11a1a57d4986211bbb16bab2482ddc (diff) | |
download | freebsd-ports-gnome-0d6f5b5ccd8bd47f7259b1d17af3f7c7b6b1a08f.tar.gz freebsd-ports-gnome-0d6f5b5ccd8bd47f7259b1d17af3f7c7b6b1a08f.tar.zst freebsd-ports-gnome-0d6f5b5ccd8bd47f7259b1d17af3f7c7b6b1a08f.zip |
- Refactor Makefile
- Add a pkg-plist file
Diffstat (limited to 'editors/code-browser')
-rw-r--r-- | editors/code-browser/Makefile | 23 | ||||
-rw-r--r-- | editors/code-browser/pkg-plist | 23 |
2 files changed, 26 insertions, 20 deletions
diff --git a/editors/code-browser/Makefile b/editors/code-browser/Makefile index 7d8e06491eea..33fdc3da60b8 100644 --- a/editors/code-browser/Makefile +++ b/editors/code-browser/Makefile @@ -22,18 +22,6 @@ USE_GMAKE= yes DATADIR= ${PREFIX}/share/${PORTNAME}-3 -PORTDOCS= code-browser.chm doc.css doc.html -PLIST_FILES= bin/code-browser \ - %%DATADIR%%/config/preferences.cbc \ - %%DATADIR%%/config-default/preferences.cbc \ - %%DATADIR%%/config-optional/AVR-asm.cbc \ - %%DATADIR%%/config-optional/perforce.cbc \ - %%DATADIR%%/config-optional/torque.cbc -PLIST_DIRS= %%DATADIR%%/config-optional \ - %%DATADIR%%/config-default \ - %%DATADIR%%/config \ - %%DATADIR%% - .include <bsd.port.pre.mk> ONLY_FOR_ARCHS= i386 amd64 sparc64 @@ -52,15 +40,10 @@ post-patch: s|@$$(|$$(|g' ${WRKSRC}/${file} .endfor -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/code-browser ${PREFIX}/bin -.for dir in config config-default config-optional - ${MKDIR} ${DATADIR}/${dir} - ${INSTALL_DATA} ${WRKSRC}/${dir}/*.* ${DATADIR}/${dir} -.endfor +post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/*.* ${DOCSDIR} + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}) + (cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${DOCSDIR}/samples) .endif .include <bsd.port.post.mk> diff --git a/editors/code-browser/pkg-plist b/editors/code-browser/pkg-plist new file mode 100644 index 000000000000..91d7183b3d7c --- /dev/null +++ b/editors/code-browser/pkg-plist @@ -0,0 +1,23 @@ +bin/code-browser +%%DATADIR%%/config/preferences.cbc +%%DATADIR%%/config-default/preferences.cbc +%%DATADIR%%/config-optional/AVR-asm.cbc +%%DATADIR%%/config-optional/perforce.cbc +%%DATADIR%%/config-optional/torque.cbc +%%PORTDOCS%%%%DOCSDIR%%/code-browser.chm +%%PORTDOCS%%%%DOCSDIR%%/doc.css +%%PORTDOCS%%%%DOCSDIR%%/doc.html +%%PORTDOCS%%%%DOCSDIR%%/samples/files/code-browser.xml +%%PORTDOCS%%%%DOCSDIR%%/samples/files/dictionary.cpp +%%PORTDOCS%%%%DOCSDIR%%/samples/files/dictionary.h +%%PORTDOCS%%%%DOCSDIR%%/samples/files/string.cpp +%%PORTDOCS%%%%DOCSDIR%%/samples/files/string.h +%%PORTDOCS%%%%DOCSDIR%%/samples/files/string2.cpp +%%PORTDOCS%%%%DOCSDIR%%/samples/tutorial.txt +@dirrm %%DATADIR%%/config-optional +@dirrm %%DATADIR%%/config-default +@dirrm %%DATADIR%%/config +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%/samples/files +%%PORTDOCS%%@dirrm %%DOCSDIR%%/samples +%%PORTDOCS%%@dirrm %%DOCSDIR%% |