From owner-svn-ports-head@FreeBSD.ORG Mon Nov 25 17:54:10 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EC0633D3; Mon, 25 Nov 2013 17:54:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DB75E2BE8; Mon, 25 Nov 2013 17:54:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAPHs997048624; Mon, 25 Nov 2013 17:54:09 GMT (envelope-from makc@svn.freebsd.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAPHs9aK048611; Mon, 25 Nov 2013 17:54:09 GMT (envelope-from makc@svn.freebsd.org) Message-Id: <201311251754.rAPHs9aK048611@svn.freebsd.org> From: Max Brazhnikov Date: Mon, 25 Nov 2013 17:54:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334870 - head/deskutils/znotes X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 17:54:10 -0000 Author: makc Date: Mon Nov 25 17:54:08 2013 New Revision: 334870 URL: http://svnweb.freebsd.org/changeset/ports/334870 Log: - Convert to USES=qmake - Add stage support - Update port comment/description - Convert to pkg-plist Approved by: vg (maintainer) Added: head/deskutils/znotes/pkg-plist (contents, props changed) Modified: head/deskutils/znotes/Makefile head/deskutils/znotes/pkg-descr (contents, props changed) Modified: head/deskutils/znotes/Makefile ============================================================================== --- head/deskutils/znotes/Makefile Mon Nov 25 17:51:17 2013 (r334869) +++ head/deskutils/znotes/Makefile Mon Nov 25 17:54:08 2013 (r334870) @@ -8,52 +8,28 @@ CATEGORIES= deskutils MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ MAINTAINER= vg@FreeBSD.org -COMMENT= Simple notes based on QT4 +COMMENT= Simple notes managment application based on Qt 4 LICENSE= GPLv3 -USE_QT4= gui network xml qmake_build uic_build moc_build rcc_build \ +USES= qmake +USE_QT4= gui network xml uic_build moc_build rcc_build \ linguist_build +QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE} -DESKTOP_ENTRIES="zNotes" "Simple notes" \ +DESKTOP_ENTRIES="zNotes" "Notes managment" \ "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ - "Utility;TextEditor;Qt;" ${FALSE} + "Utility;TextEditor;Qt;" true OPTIONS_DEFINE= NLS -PLIST_FILES= bin/${PORTNAME} \ - share/pixmaps/${PORTNAME}.png - -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \ + @${REINPLACE_CMD} -e '/.path =/s|/usr|$$$$PREFIX|g' \ + -e '/PREFIX = /d' \ ${WRKSRC}/${PORTNAME}.pro - @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \ + @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \ ${WRKSRC}/settings.cpp - -.include - -do-configure: - cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps/ - -.if ${PORT_OPTIONS:MNLS} - ${MKDIR} ${DATADIR}/translations - ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations -PLIST_FILES+= %%DATADIR%%/translations/${PORTNAME}_cs.qm \ - %%DATADIR%%/translations/${PORTNAME}_es.qm \ - %%DATADIR%%/translations/${PORTNAME}_en.qm \ - %%DATADIR%%/translations/${PORTNAME}_ru.qm \ - %%DATADIR%%/translations/${PORTNAME}_sk.qm \ - %%DATADIR%%/translations/${PORTNAME}_pt_BR.qm \ - %%DATADIR%%/translations/${PORTNAME}_uk.qm - -PLIST_DIRS+= %%DATADIR%%/translations \ - %%DATADIR%% -.else -.endif +#Work around badly written .pro + ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro .include Modified: head/deskutils/znotes/pkg-descr ============================================================================== --- head/deskutils/znotes/pkg-descr Mon Nov 25 17:51:17 2013 (r334869) +++ head/deskutils/znotes/pkg-descr Mon Nov 25 17:54:08 2013 (r334870) @@ -1,4 +1,4 @@ -When I migrated from XFCE, I could not find a program simular to -xfce4-Notes-plugin, so I created this program. +Simple lightweight crossplatform application for notes managment +based on Qt 4. -WWW: http://znotes.sourceforge.net/ +WWW: http://znotes.sourceforge.net Added: head/deskutils/znotes/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/znotes/pkg-plist Mon Nov 25 17:54:08 2013 (r334870) @@ -0,0 +1,12 @@ +bin/znotes +share/applications/znotes.desktop +share/pixmaps/znotes.png +%%NLS%%%%DATADIR%%/translations/znotes_cs.qm +%%NLS%%%%DATADIR%%/translations/znotes_en.qm +%%NLS%%%%DATADIR%%/translations/znotes_es.qm +%%NLS%%%%DATADIR%%/translations/znotes_pt_BR.qm +%%NLS%%%%DATADIR%%/translations/znotes_ru.qm +%%NLS%%%%DATADIR%%/translations/znotes_sk.qm +%%NLS%%%%DATADIR%%/translations/znotes_uk.qm +%%NLS%%@dirrmtry %%DATADIR%%/translations +%%NLS%%@dirrmtry %%DATADIR%%