aboutsummaryrefslogtreecommitdiff
path: root/editors/bless
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2009-02-20 14:26:18 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2009-02-20 14:26:18 +0000
commitf63ffb288750dc1841cf79d178a652295b6cd91e (patch)
tree57393ad08af226f4aeb09dd8829c88aabd34a1e4 /editors/bless
parentfef9a301e768f206fe36644f10012536a577cff7 (diff)
downloadports-f63ffb288750dc1841cf79d178a652295b6cd91e.tar.gz
ports-f63ffb288750dc1841cf79d178a652295b6cd91e.zip
Notes
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%%