focuswriter: Use some default values and install a man page under PKGMANDIR

* https://github.com/gottcode/focuswriter/archive/v1.7.4.tar.gz returns
  focuswriter-1.7.4.tar.gz. Use this as DISTNAME.
* Use default WRKSRC.

* Install the man page under PKGMANDIR.
This commit is contained in:
Ryo ONODERA 2020-02-17 21:34:23 +09:00
parent 0c1b7ba3c1
commit 7d4ebb1ddf
4 changed files with 16 additions and 10 deletions

7
focuswriter/CL Normal file
View File

@ -0,0 +1,7 @@
focuswriter: Use some default values and install a man page under PKGMANDIR
* https://github.com/gottcode/focuswriter/archive/v1.7.4.tar.gz returns
focuswriter-1.7.4.tar.gz. Use this as DISTNAME.
* Use default WRKSRC.
* Install the man page under PKGMANDIR.

View File

@ -1,7 +1,6 @@
# $NetBSD$
DISTNAME= focuswriter-v1.7.4
PKGNAME= focuswriter-1.7.4
DISTNAME= focuswriter-1.7.4
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_GITHUB:=gottcode/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@ -11,7 +10,6 @@ HOMEPAGE= https://gottcode.org/focuswriter/
COMMENT= Simple, distraction-free writing environment
LICENSE= gnu-gpl-v3
WRKSRC= ${WRKDIR}/focuswriter-1.7.4
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c++
USE_TOOLS+= pkg-config
@ -21,7 +19,8 @@ INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}
do-configure:
cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} \
${QTDIR}/bin/qmake -o Makefile PREFIX=${PREFIX}
${QTDIR}/bin/qmake -o Makefile \
PREFIX=${PREFIX} PKGMANDIR=${PKGMANDIR}
TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools

View File

@ -1,7 +1,7 @@
$NetBSD$
SHA1 (focuswriter-v1.7.4.tar.gz) = 1509242e22eed2d51b3e439d7e7f736cda55f734
RMD160 (focuswriter-v1.7.4.tar.gz) = e74330854c3bad04781cc5e643b951520e6e5a0e
SHA512 (focuswriter-v1.7.4.tar.gz) = ffe2827f3209eafb35c37eda76d218808760ac287e1c3462ccf05a96d8f546699eb5cf21ecfdf8960b4ef414e2a0aca04f1b6bd8b507a7edda4e0029fd83e875
Size (focuswriter-v1.7.4.tar.gz) = 10512419 bytes
SHA1 (patch-focuswriter.pro) = 42591dbbfeed7160decbf23cbc8207067a560d2f
SHA1 (focuswriter-1.7.4.tar.gz) = 1509242e22eed2d51b3e439d7e7f736cda55f734
RMD160 (focuswriter-1.7.4.tar.gz) = e74330854c3bad04781cc5e643b951520e6e5a0e
SHA512 (focuswriter-1.7.4.tar.gz) = ffe2827f3209eafb35c37eda76d218808760ac287e1c3462ccf05a96d8f546699eb5cf21ecfdf8960b4ef414e2a0aca04f1b6bd8b507a7edda4e0029fd83e875
Size (focuswriter-1.7.4.tar.gz) = 10512419 bytes
SHA1 (patch-focuswriter.pro) = 23764285b604fc533c28b67d25e62d5498d5f7b0

View File

@ -9,7 +9,7 @@ Add man to the correct location
man.files = resources/unix/focuswriter.1
- man.path = $$PREFIX/share/man/man1
+ man.path = $$PREFIX/man/man1
+ man.path = $$PREFIX/$$PKGMANDIR/man1
qm.files = $$replace(TRANSLATIONS, .ts, .qm)
qm.path = $$DATADIR/focuswriter/translations