- Unbreak. Fix pkg-plist.

- Utilize DATADIR and DOCSDIR

PR:		ports/81845
Submitted by:	Vasil Dimov <vd@datamax.bg>
Approved by:	no maintainer reaction on broken port (3 monthes)
This commit is contained in:
Sergey Matveychuk 2005-06-08 10:03:12 +00:00
parent afc0fbf91c
commit d58f735f2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137036
2 changed files with 26 additions and 13 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= spassgen
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= sysutils kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= spassgen
@ -16,8 +17,6 @@ COMMENT= Qt GUI secure password generator
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
BROKEN= Incomplete pkg-plist
USE_QT_VER= 3
USE_GMAKE= yes
USE_BZIP2= yes
@ -27,7 +26,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
QMAKE_LOCATION= ${LOCALBASE}/bin
MAKE_ENV+= QTDIR="${QT_PREFIX}"
DOCSDIR= share/doc/HTML/en/${PORTNAME}
.include <bsd.port.pre.mk>
pre-build:
(cd ${WRKSRC}; \
@ -38,14 +38,14 @@ pre-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/spassgen ${PREFIX}/bin
.for i in 128x128 16x16 32x32 48x48 64x64
${MKDIR} ${PREFIX}/share/icons/hicolor/${i}/apps
${INSTALL_DATA} ${WRKSRC}/icons/${i}/password.png ${PREFIX}/share/icons/hicolor/${i}/apps
${MKDIR} ${DATADIR}/icons/hicolor/${i}/apps
${INSTALL_DATA} ${WRKSRC}/icons/${i}/password.png ${DATADIR}/icons/hicolor/${i}/apps
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/${DOCSDIR}
${MKDIR} ${DOCSDIR}
.for i in AUTHORS LICENCE README TODO INSTALL
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View file

@ -4,9 +4,22 @@ bin/spassgen
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
share/icons/hicolor/128x128/apps/password.png
share/icons/hicolor/16x16/apps/password.png
share/icons/hicolor/32x32/apps/password.png
share/icons/hicolor/48x48/apps/password.png
share/icons/hicolor/64x64/apps/password.png
%%DATADIR%%/icons/hicolor/128x128/apps/password.png
%%DATADIR%%/icons/hicolor/16x16/apps/password.png
%%DATADIR%%/icons/hicolor/32x32/apps/password.png
%%DATADIR%%/icons/hicolor/48x48/apps/password.png
%%DATADIR%%/icons/hicolor/64x64/apps/password.png
@dirrm %%DATADIR%%/icons/hicolor/128x128/apps
@dirrm %%DATADIR%%/icons/hicolor/16x16/apps
@dirrm %%DATADIR%%/icons/hicolor/32x32/apps
@dirrm %%DATADIR%%/icons/hicolor/48x48/apps
@dirrm %%DATADIR%%/icons/hicolor/64x64/apps
@dirrm %%DATADIR%%/icons/hicolor/128x128
@dirrm %%DATADIR%%/icons/hicolor/16x16
@dirrm %%DATADIR%%/icons/hicolor/32x32
@dirrm %%DATADIR%%/icons/hicolor/48x48
@dirrm %%DATADIR%%/icons/hicolor/64x64
@dirrm %%DATADIR%%/icons/hicolor
@dirrm %%DATADIR%%/icons
@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%