Changeset View
Changeset View
Standalone View
Standalone View
deskutils/znotes/Makefile
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org> | # Created by: Veniamin Gvozdikov <vg@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= znotes | PORTNAME= znotes | ||||
PORTVERSION= 0.4.5 | PORTVERSION= 0.4.5 | ||||
tcberner: instead of bumping you should maybe change the version number to the something like
`0.4.5. | |||||
tcbernerUnsubmitted Done Inline Actionstcberner: See:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles. | |||||
matUnsubmitted Done Inline Actionsit's not a question of "should maybe change" it is a question of must. The upstream version is not the same, so the port version must be updated. mat: it's not a question of "should maybe change" it is a question of **must**. The upstream… | |||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
CATEGORIES= deskutils | CATEGORIES= deskutils | ||||
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ | |||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= lbdm@privacychain.ch | ||||
COMMENT= Simple notes managment application based on Qt 4 | COMMENT= Simple notes managment application based on Qt | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
USES= qmake | USES= qmake | ||||
USE_QT4= corelib gui network xml uic_build moc_build rcc_build \ | USE_GL= gl | ||||
linguisttools_build | USE_GITHUB= yes | ||||
GH_ACCOUNT= proton | |||||
GH_PROJECT= zNotes | |||||
GH_TAGNAME= 6423c5e | |||||
QT4_USE= QT4=uic_build,moc_build,rcc_build,linguisttools_build,corelib,gui,network,xml | |||||
QT5_USE= QT5=buildtools_build,linguisttools_build,core,gui,network,printsupport,widgets,xml | |||||
OPTIONS_SINGLE= QT | |||||
tcbernerUnsubmitted Done Inline Actionshow about flavors? tcberner: how about flavors? | |||||
matUnsubmitted Done Inline ActionsYes, please. mat: Yes, please. | |||||
OPTIONS_SINGLE_QT= QT4 QT5 | |||||
OPTIONS_DEFAULT= QT5 | |||||
QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE} | QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE} | ||||
tcbernerUnsubmitted Done Inline Actions^ is this really needed? It should find LRELEASE on its own. tcberner: ^ is this really needed? It should find LRELEASE on its own. | |||||
DESKTOP_ENTRIES="zNotes" "Notes managment" \ | DESKTOP_ENTRIES="zNotes" "Notes managment" \ | ||||
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ | "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ | ||||
"Utility;TextEditor;Qt;" true | "Utility;TextEditor;Qt;" true | ||||
OPTIONS_DEFINE= NLS | OPTIONS_DEFINE= NLS | ||||
tcbernerUnsubmitted Done Inline Actions^ propbably you want either to get rid of the NLS option, or move the linguist* deps to NLS_USE=QT[45]=... tcberner: ^ propbably you want either to get rid of the NLS option, or move the linguist* deps to… | |||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/.path =/s|/usr|$$$$PREFIX|g' \ | @${REINPLACE_CMD} -e '/.path =/s|/usr|$$$$PREFIX|g' \ | ||||
-e '/PREFIX = /d' \ | -e '/PREFIX = /d' \ | ||||
${WRKSRC}/${PORTNAME}.pro | ${WRKSRC}/${PORTNAME}.pro | ||||
@${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \ | |||||
${WRKSRC}/settings.cpp | |||||
pre-configure: | pre-configure: | ||||
#Work around badly written .pro | #Work around badly written .pro | ||||
${LRELEASE} ${WRKSRC}/${PORTNAME}.pro | ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
instead of bumping you should maybe change the version number to the something like
0.4.5.20150825