Index: misc/Makefile =================================================================== --- misc/Makefile +++ misc/Makefile @@ -377,6 +377,7 @@ SUBDIR += p5-Zen-Koans SUBDIR += p5-asterisk-perl SUBDIR += pantry + SUBDIR += paperwork SUBDIR += parley SUBDIR += parley-kde4 SUBDIR += pastebinit Index: misc/paperwork/Makefile =================================================================== --- /dev/null +++ misc/paperwork/Makefile @@ -0,0 +1,56 @@ +# $FreeBSD$ + +PORTNAME= paperwork +DISTVERSION= 1.2.4 +CATEGORIES= misc python + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tool to make papers searchable - scan & forget + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/../LICENSE + +FLAVORS= gtk backend +FLAVOR?= ${FLAVORS:[1]} + +gtk_PKGNAMESUFFIX= -gtk +gtk_DESCR= ${PKGDIR}/pkg-descr.gtk +gtk_RUN_DEPENDS= paperwork-backend>0:misc/paperwork@backend \ + ${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyinsane2>0:graphics/py-pyinsane2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyocr>0:graphics/py-pyocr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pypillowfight>0:graphics/py-pypillowfight@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-Levenshtein>0:devel/py-python-Levenshtein@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} + +backend_PKGNAMESUFFIX= -backend +backend_DESCR= ${PKGDIR}/pkg-descr.backend +backend_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}natsort>0:devel/py-natsort@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyocr>0:graphics/py-pyocr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}simplebayes>0:textproc/py-simplebayes@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}whoosh>0:textproc/py-whoosh@${PY_FLAVOR} + +USES= gmake python:3.4+ +USE_GITLAB= yes +GL_SITE= https://gitlab.gnome.org/World +GL_ACCOUNT= OpenPaperwork +GL_COMMIT= 36c00eaac636c6fa6db58f2f86a01e1c1abf2398 +USE_PYTHON= distutils autoplist noflavors + +.if ${FLAVOR} == backend +COMMENT+= (the backend part) +.endif + +PATCHDIR= ${MASTERDIR}/files.${FLAVOR} +WRKSRC_SUBDIR= paperwork-${FLAVOR} + +pre-configure: + @cd ${WRKSRC} && ${MAKE_CMD} version + +.include Index: misc/paperwork/distinfo =================================================================== --- /dev/null +++ misc/paperwork/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1532970988 +SHA256 (OpenPaperwork-paperwork-36c00eaac636c6fa6db58f2f86a01e1c1abf2398_GL0.tar.gz) = d6fa18a6dc5a2593098ef5f2ce8a37278960a2c097c15de866d9c7bafa1a83ed +SIZE (OpenPaperwork-paperwork-36c00eaac636c6fa6db58f2f86a01e1c1abf2398_GL0.tar.gz) = 8206219 Index: misc/paperwork/files.gtk/patch-Makefile =================================================================== --- /dev/null +++ misc/paperwork/files.gtk/patch-Makefile @@ -0,0 +1,19 @@ +--- Makefile.orig 2018-07-28 06:41:34 UTC ++++ Makefile +@@ -17,13 +17,13 @@ version: ${VERSION_FILE} + ${VERSION_FILE}: + echo "# -*- coding: utf-8 -*-" >| $@ + echo -n "version = \"" >> $@ +- echo -n $(shell git describe --always) >> $@ +- $(eval branch_name = $(shell git symbolic-ref HEAD 2>/dev/null)) ++ #echo -n $(shell git describe --always) >> $@ ++ #$(eval branch_name = $(shell git symbolic-ref HEAD 2>/dev/null)) + if [ "${branch_name}" != "refs/heads/master" ] ; then echo -n "-${branch_name}" >> $@ ; fi + echo "\"" >> $@ + echo "authors_code = \"\"\"" >> $@ + echo " Code contributors:" >> $@ +- git shortlog -sne >> $@ ++ #git shortlog -sne >> $@ + echo "\"\"\"" >> $@ + echo >> $@ + cat ../AUTHORS.py >> $@ Index: misc/paperwork/pkg-descr.backend =================================================================== --- /dev/null +++ misc/paperwork/pkg-descr.backend @@ -0,0 +1,6 @@ +The backend part of Paperwork, a personal document manager that manages scanned +documents and PDFs. + +The UI part is the package paperwork-gtk (misc/paperwork@gtk). + +WWW: https://openpaper.work/en-us/ Index: misc/paperwork/pkg-descr.gtk =================================================================== --- /dev/null +++ misc/paperwork/pkg-descr.gtk @@ -0,0 +1,7 @@ +Paperwork is a personal document manager. It manages scanned documents and PDFs. + +It's designed to be easy and fast to use. The idea behind Paperwork is +"scan & forget": You can just scan a new document and forget about it until the +day you need it again. + +WWW: https://openpaper.work/en-us/