diff options
author | beech <beech@FreeBSD.org> | 2013-03-10 13:47:05 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2013-03-10 13:47:05 +0800 |
commit | 584c41739918d96b32dadc2d13f32bd883d59e21 (patch) | |
tree | 0228257e193c3e4536baa645b33460ea8b9536b9 /x11/fbpanel | |
parent | 17722c24c33606b12865e5f9f91b4d4d3f2063ee (diff) | |
download | freebsd-ports-gnome-584c41739918d96b32dadc2d13f32bd883d59e21.tar.gz freebsd-ports-gnome-584c41739918d96b32dadc2d13f32bd883d59e21.tar.zst freebsd-ports-gnome-584c41739918d96b32dadc2d13f32bd883d59e21.zip |
- Makefile changed:
Port is now safe with NOPORTDOCS=yes in /etc/make.conf
LICENSE= MIT
PORTDOCS= CHANGELOG CREDITS NOTES README
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES=
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
- Changed and refined:
post-install:
pkg-plist
- Pass maintainership to submitter
PR: ports/176797
Submitted by: nemysis <nemysis@gmx.ch>
Diffstat (limited to 'x11/fbpanel')
-rw-r--r-- | x11/fbpanel/Makefile | 30 | ||||
-rw-r--r-- | x11/fbpanel/pkg-plist | 6 |
2 files changed, 32 insertions, 4 deletions
diff --git a/x11/fbpanel/Makefile b/x11/fbpanel/Makefile index 6f75ffb3bcb3..70ce2e052301 100644 --- a/x11/fbpanel/Makefile +++ b/x11/fbpanel/Makefile @@ -3,15 +3,15 @@ PORTNAME= fbpanel PORTVERSION= 6.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 MASTER_SITES= SF EXTRACT_SUFX= .tbz2 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= nemysis@gmx.ch COMMENT= Lightweight, NETWM compliant X11 desktop panel -LICENSE= GPLv2 +LICENSE= MIT USE_BZIP2= yes HAS_CONFIGURE= yes @@ -22,12 +22,34 @@ USE_PKGCONFIG= build MAN1= ${PORTNAME}.1 +PORTDOCS= CHANGELOG CREDITS NOTES README + +OPTIONS_DEFINE= DOCS + +DESKTOP_ENTRIES="${PORTNAME}" "${PORTNAME} NETWM compliant X11 desktop panel" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ + "${PORTNAME}" "System;" false + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} +PLIST_SUB+= PORTDOCS="" +.else +PLIST_SUB+= PORTDOCS="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e 's|bash|sh|' ${WRKSRC}/scripts/install.sh @${REINPLACE_CMD} -e 's|@DATADIR@|${DATADIR}|' \ ${WRKSRC}/data/man/${MAN1}.in post-install: - ${INSTALL_MAN} ${WRKSRC}/data/man/${MAN1} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/data/man/${MAN1} ${MAN1PREFIX}/man/man1/ + ${LN} -sf ${DATADIR}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif .include <bsd.port.mk> diff --git a/x11/fbpanel/pkg-plist b/x11/fbpanel/pkg-plist index 190613a7a690..af6e2d8863e4 100644 --- a/x11/fbpanel/pkg-plist +++ b/x11/fbpanel/pkg-plist @@ -22,6 +22,10 @@ lib/fbpanel/tray.so lib/fbpanel/volume.so lib/fbpanel/wincmd.so libexec/fbpanel/make_profile +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/NOTES +%%PORTDOCS%%%%DOCSDIR%%/README %%DATADIR%%/default %%DATADIR%%/images/battery_0.png %%DATADIR%%/images/battery_1.png @@ -48,7 +52,9 @@ libexec/fbpanel/make_profile %%DATADIR%%/images/gnome-session-reboot.png %%DATADIR%%/images/logo.png %%DATADIR%%/pager +share/pixmaps/fbpanel.png @dirrm %%DATADIR%%/images @dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm libexec/fbpanel @dirrm lib/fbpanel |