diff options
author | mat <mat@FreeBSD.org> | 2014-01-27 00:19:56 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-01-27 00:19:56 +0800 |
commit | 763ad87833aedcd736ba8eccb0d1bb561d1ac1a0 (patch) | |
tree | 003f300fca3782d582c62a2b37bbd38627d7990a /textproc | |
parent | 9cc9f41894771c339e832ac33593880186a4e3bd (diff) | |
download | freebsd-ports-gnome-763ad87833aedcd736ba8eccb0d1bb561d1ac1a0.tar.gz freebsd-ports-gnome-763ad87833aedcd736ba8eccb0d1bb561d1ac1a0.tar.zst freebsd-ports-gnome-763ad87833aedcd736ba8eccb0d1bb561d1ac1a0.zip |
Convert to staging.
Sponsored by: Absolight
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/dixit/Makefile | 13 | ||||
-rw-r--r-- | textproc/dixit/pkg-plist | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/textproc/dixit/Makefile b/textproc/dixit/Makefile index 9e193510239e..d36b52884e4d 100644 --- a/textproc/dixit/Makefile +++ b/textproc/dixit/Makefile @@ -22,9 +22,10 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.${QT_VER} USES= qmake USE_QT4= corelib gui network moc_build rcc_build -LDFLAGS= -lz +LDFLAGS+= -lz -PLIST_SUB= _DB=${_DB} DB_DIR=${DB_DIR} _DB_F=${_DB_F} +PLIST_SUB= _DB=${_DB} DB_DIR=${DB_DIR} _DB_F=${_DB_F} \ + DB_OWNER=${DB_OWNER} DB_GROUP=${DB_GROUP} DB_MODE=${DB_MODE} QT_VER= 4 @@ -40,7 +41,6 @@ _DB_D= ${PORTNAME}.qdb.tar.bz2 _DB_F= ${PORTNAME}.qdb _DB= ${DB_DIR}/${_DB_F} -NO_STAGE= yes pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "Your dictionary database directory is:" @@ -61,15 +61,14 @@ post-patch: 's|dixit.qdb|${_DB}|' ${WRKSRC}/src/dixit.h do-install: - (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin) + @${MKDIR} ${STAGEDIR}${DB_DIR} @${TOUCH} -t ${DB_DATE} ${WRKSRC}/${_DB_F} @${ECHO_MSG} " ===> Installing database ... .. ." @if [ ! -e "${_DB}" -o "${_DB}" -ot "${WRKSRC}/${_DB_F}" ]; \ - then ${TAR} -C ${DB_DIR:S/${PORTNAME}//} -xf ${DISTDIR}/${_DB_D} && \ + then ${TAR} -C ${STAGEDIR}${DB_DIR:S/${PORTNAME}//} -xf ${DISTDIR}/${_DB_D} && \ ${ECHO_MSG} " ===> ... Done."; \ else ${ECHO_MSG} " ===> Exisitng database is newer, skiping";\ fi - @${CHOWN} ${DB_OWNER}:${DB_GROUP} ${_DB} - @${CHMOD} ${DB_MODE} ${_DB} .include <bsd.port.mk> diff --git a/textproc/dixit/pkg-plist b/textproc/dixit/pkg-plist index 4c849c72db21..fb903544d7c0 100644 --- a/textproc/dixit/pkg-plist +++ b/textproc/dixit/pkg-plist @@ -4,3 +4,5 @@ bin/dixit LICENSE.GPL3 @cwd / @dirrm %%DB_DIR%% +@exec chown %%DB_OWNER%%:%%DB_GROUP%% %%DB_DIR/%%_DB_F%% +@exec chmod %%DB_MODE%% %%DB_DIR/%%_DB_F%% |