aboutsummaryrefslogtreecommitdiffstats
path: root/editors/bless
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2009-02-20 22:26:18 +0800
committerflz <flz@FreeBSD.org>2009-02-20 22:26:18 +0800
commit2f31a744cac94282a49bfc19025e4ed3a9cbd361 (patch)
tree68e50298b4cfb4ffc79eeb1b5fea5097d8d9e25f /editors/bless
parent29d722704d361facf16cb71f57183cde1548c73a (diff)
downloadfreebsd-ports-gnome-2f31a744cac94282a49bfc19025e4ed3a9cbd361.tar.gz
freebsd-ports-gnome-2f31a744cac94282a49bfc19025e4ed3a9cbd361.tar.zst
freebsd-ports-gnome-2f31a744cac94282a49bfc19025e4ed3a9cbd361.zip
Fix packing list when NOPORTDOCS is defined.
Reported by: QAT
Diffstat (limited to 'editors/bless')
-rw-r--r--editors/bless/Makefile19
-rw-r--r--editors/bless/pkg-plist6
2 files changed, 10 insertions, 15 deletions
diff --git a/editors/bless/Makefile b/editors/bless/Makefile
index d7aea5851d37..d5fc0e30e74e 100644
--- a/editors/bless/Makefile
+++ b/editors/bless/Makefile
@@ -17,28 +17,23 @@ COMMENT= A high quality, full featured hex editor
USE_GNOME= gnomehack gnomeprefix gnometarget gnomedocutils gtksharp20
USE_GMAKE= yes
-INSTALLS_OMF= yes
GNU_CONFIGURE= yes
-DOCS= AUTHORS COPYING ChangeLog NEWS README
+.if !defined(NOPORTDOCS)
+INSTALLS_OMF= yes
+.endif
post-patch:
- @${REINPLACE_CMD} -e 's|data tests|data|g' \
+ @${REINPLACE_CMD} -e 's|tests$$||g' \
${WRKSRC}/Makefile.in
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|$$(datadir)/doc/$$(PACKAGE_NAME)-$$(PACKAGE_VERSION)|${DOCSDIR}|g'
.if defined(NOPORTDOCS)
- @${REINPLACE_CMD} -e 's|src doc|src|g' \
+ @${REINPLACE_CMD} -e 's|data doc|data|g' \
+ -e '/^install-data-local:/,/^$$/d' \
+ -e 's|install-data-local||' \
${WRKSRC}/Makefile.in
.endif
-.ifndef (NOPORTDOCS)
-post-install:
- @${MKDIR} ${DOCSDIR}
-.for i in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
-.endif
-
.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
.include <bsd.port.mk>
diff --git a/editors/bless/pkg-plist b/editors/bless/pkg-plist
index 06d067cb731f..0415f249edc0 100644
--- a/editors/bless/pkg-plist
+++ b/editors/bless/pkg-plist
@@ -66,11 +66,11 @@ share/applications/bless.desktop
%%PORTDOCS%%%%DOCSDIR%%/user/figures/bless_tab_close.png
%%PORTDOCS%%%%DOCSDIR%%/user/index.html
%%PORTDOCS%%%%DOCSDIR%%/user/legal.xml
-share/omf/bless/bless-manual.omf
+%%PORTDOCS%%share/omf/bless/bless-manual.omf
share/pixmaps/bless-48x48.png
@dirrm %%DATADIR%%
-@dirrm share/omf/bless
-@dirrmtry share/omf
+%%PORTDOCS%%@dirrm share/omf/bless
+%%PORTDOCS%%@dirrmtry share/omf
%%PORTDOCS%%@dirrm %%DOCSDIR%%/user/figures
%%PORTDOCS%%@dirrm %%DOCSDIR%%/user
%%PORTDOCS%%@dirrm %%DOCSDIR%%