--- focuswriter-qt4.orig/Makefile 2016-07-14 16:37:39 UTC +++ focuswriter-qt4/Makefile @@ -1,13 +1,50 @@ # Created by: lightside # $FreeBSD: head/editors/focuswriter-qt4/Makefile 418540 2016-07-14 16:37:39Z pawel $ +PORTNAME= focuswriter +PORTVERSION= 1.5.7 +DISTVERSIONPREFIX= v +PORTREVISION= 1 +CATEGORIES= editors PKGNAMESUFFIX= -qt4 +MAINTAINER= lightside@gmx.com +COMMENT= Simple, distraction-free writing environment + +LICENSE= GPLv3 LGPL3 +LICENSE_COMB= multi +LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING +LICENSE_FILE_LGPL3= ${WRKSRC}/resources/images/icons/oxygen/COPYING + +LIB_DEPENDS= libhunspell-1.3.so:textproc/hunspell +RUN_DEPENDS= ${LOCALBASE}/lib/libSDL2_mixer.so:audio/sdl2_mixer + CONFLICTS_INSTALL= ${PORTNAME}-[0-9]* -OPTIONS_EXCLUDE= QT5 -OPTIONS_SLAVE= QT4 +USE_GITHUB= yes +GH_ACCOUNT= gottcode -MASTERDIR= ${.CURDIR}/../focuswriter +USES= desktop-file-utils pkgconfig qmake +USE_QT4= corelib gui network moc_build rcc_build +INSTALLS_ICONS= yes -.include "${MASTERDIR}/Makefile" +LIBS+= -lz + +PORTDATA= * +PORTDOCS= CREDITS NEWS README + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e '/PKGCONFIG/s/ zlib// ; \ + /INSTALLS/s/man //' \ + ${WRKSRC}/focuswriter.pro + +do-install-DOCS-on: + (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) + +post-install: + ${INSTALL_MAN} ${WRKSRC}/resources/unix/focuswriter.1 \ + ${STAGEDIR}${PREFIX}/man/man1 + +.include --- focuswriter-qt4.orig/distinfo 1970-01-01 00:00:00 UTC +++ focuswriter-qt4/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1468697342 +SHA256 (gottcode-focuswriter-v1.5.7_GH0.tar.gz) = 83d3e093360dfb8855602cb5b65a4c5249ada511031c76bdcee73e3dd0b09250 +SIZE (gottcode-focuswriter-v1.5.7_GH0.tar.gz) = 5621646 --- focuswriter-qt4.orig/pkg-descr 1970-01-01 00:00:00 UTC +++ focuswriter-qt4/pkg-descr @@ -0,0 +1,22 @@ +FocusWriter is a simple, distraction-free writing environment. It utilizes a +hide-away interface, that you access by moving your mouse to the edges of the +screen, allowing the program to have a familiar look and feel to it, while still +getting out of the way, so that you can immerse yourself in your work. + +Features: +- TXT, basic RTF, and basic ODT file support +- Timers and alarms +- Daily goals +- Fully customizable themes +- Typewriter sound effects (optional) +- Auto-save (optional) +- Live statistics (optional) +- Spell-checking (optional) +- Multi-document support +- Sessions +- Portable mode (optional) +- Translated into over 20 languages + +This is latest version, which uses Qt 4 toolkit. + +WWW: https://gottcode.org/focuswriter/ --- focuswriter-qt4.orig/pkg-plist 1970-01-01 00:00:00 UTC +++ focuswriter-qt4/pkg-plist @@ -0,0 +1,14 @@ +bin/focuswriter +man/man1/focuswriter.1.gz +share/appdata/focuswriter.appdata.xml +share/applications/focuswriter.desktop +share/icons/hicolor/128x128/apps/focuswriter.png +share/icons/hicolor/16x16/apps/focuswriter.png +share/icons/hicolor/22x22/apps/focuswriter.png +share/icons/hicolor/24x24/apps/focuswriter.png +share/icons/hicolor/256x256/apps/focuswriter.png +share/icons/hicolor/32x32/apps/focuswriter.png +share/icons/hicolor/48x48/apps/focuswriter.png +share/icons/hicolor/64x64/apps/focuswriter.png +share/icons/hicolor/scalable/apps/focuswriter.svg +share/pixmaps/focuswriter.xpm