svn commit: r334575 - head/textproc/goldendict
Boris Samorodov
bsam at FreeBSD.org
Fri Nov 22 11:51:21 UTC 2013
Author: bsam
Date: Fri Nov 22 11:51:21 2013
New Revision: 334575
URL: http://svnweb.freebsd.org/changeset/ports/334575
Log:
. support STAGE;
. remove desktop-file-utils from USES (no mime file types);
. convert USE_DOS2UNIX -> USES=dos2unix;
. get use INSTALLS_ICONS=yes;
. use REINPLACE_CMD macro instaed of ${SED}.
Modified:
head/textproc/goldendict/Makefile
Modified: head/textproc/goldendict/Makefile
==============================================================================
--- head/textproc/goldendict/Makefile Fri Nov 22 11:43:19 2013 (r334574)
+++ head/textproc/goldendict/Makefile Fri Nov 22 11:51:21 2013 (r334575)
@@ -20,15 +20,16 @@ LIB_DEPENDS= libhunspell-1.3.so:${PORTSD
USE_BZIP2= yes
NO_WRKSUBDIR= yes
HAS_CONFIGURE= yes
-USES= desktop-file-utils pkgconfig
-USE_DOS2UNIX= processwrapper.cc # is needed only to apply a patch to this file
+USES= dos2unix pkgconfig
+DOS2UNIX_FILES= processwrapper.cc
USE_XORG= xtst
USE_QT4= corelib gui webkit phonon \
qmake_build linguist_build moc_build rcc_build script_build uic_build
+MAKE_ENV+= INSTALL_ROOT=${STAGEDIR}
+INSTALLS_ICONS= yes
-NO_STAGE= yes
post-patch:
- @${SED} -I.bak -e "s:/usr:${PREFIX}:" ${WRKSRC}/redist/goldendict.desktop
+ @${REINPLACE_CMD} 's:/usr:${PREFIX}:' ${WRKSRC}/redist/goldendict.desktop
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
@@ -36,7 +37,8 @@ do-configure:
LIBS+=-L${LOCALBASE}/lib ${PORTNAME}.pro
post-install:
- @${MKDIR} ${DATADIR}/locale
- ${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${DATADIR}/locale/
+ @${MKDIR} ${STAGEDIR}${DATADIR}/locale
+ ${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${STAGEDIR}${DATADIR}/locale
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list