aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2015-02-09 03:17:24 +0800
committerriggs <riggs@FreeBSD.org>2015-02-09 03:17:24 +0800
commitab6ad01950c9183c1a2d9ccdcb4379e736268fa0 (patch)
tree91a8e646a4bbfb6f4a102b872a81e95c14cc51ed /deskutils
parent5d9625366232eff69f342f28ad6ca31b7baccc83 (diff)
downloadfreebsd-ports-gnome-ab6ad01950c9183c1a2d9ccdcb4379e736268fa0.tar.gz
freebsd-ports-gnome-ab6ad01950c9183c1a2d9ccdcb4379e736268fa0.tar.zst
freebsd-ports-gnome-ab6ad01950c9183c1a2d9ccdcb4379e736268fa0.zip
Initial import of anamnesis
A clipboard manager allowing to keep history and search through it PR: 195804 Submitted by: yuri@rawbw.com (maintainer)
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/anamnesis/Makefile49
-rw-r--r--deskutils/anamnesis/distinfo2
-rw-r--r--deskutils/anamnesis/pkg-descr5
-rw-r--r--deskutils/anamnesis/pkg-plist32
5 files changed, 89 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile
index e568c43136fb..b618a100855b 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -6,6 +6,7 @@
SUBDIR += affiche
SUBDIR += akamaru
SUBDIR += alacarte
+ SUBDIR += anamnesis
SUBDIR += appwrapper
SUBDIR += aspostit
SUBDIR += autocutsel
diff --git a/deskutils/anamnesis/Makefile b/deskutils/anamnesis/Makefile
new file mode 100644
index 000000000000..54ba5fc90acc
--- /dev/null
+++ b/deskutils/anamnesis/Makefile
@@ -0,0 +1,49 @@
+# Created by: Yuri Victorovich <yuri@rawbw.com>
+# $FreeBSD$
+
+PORTNAME= anamnesis
+PORTVERSION= 1.0.4
+CATEGORIES= deskutils
+MASTER_SITES= SF
+
+MAINTAINER= yuri@rawbw.com
+COMMENT= Clipboard manager that stores all clipboard history
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
+ ${PYTHON_PKGNAMEPREFIX}gtk2>0:${PORTSDIR}/x11-toolkits/py-gtk2 \
+ ${PYTHON_PKGNAMEPREFIX}xdg>0:${PORTSDIR}/devel/py-xdg
+
+USES= python
+PORTDOCS= ChangeLog README
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} 's|cfg_files.reverse()|cfg_files += [os.path.join("'${PREFIX}/etc/'",cfg_filename)]; cfg_files.reverse()|' \
+ ${WRKSRC}/source/config.py
+do-build:
+ @(cd ${WRKSRC} && \
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
+ -d ${WRKSRC} -f ${WRKSRC} && \
+ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
+ -d ${WRKSRC} -f ${WRKSRC})
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/anamnesis
+.for f in anamnesis browser config clipboard clipboard_gtk clipboard_gtk_xclip daemon db db_sqlite3fts
+ ${INSTALL_DATA} ${WRKSRC}/source/${f}.py ${STAGEDIR}${PREFIX}/share/anamnesis
+ ${INSTALL_DATA} ${WRKSRC}/source/${f}.pyc ${STAGEDIR}${PREFIX}/share/anamnesis
+ ${INSTALL_DATA} ${WRKSRC}/source/${f}.pyo ${STAGEDIR}${PREFIX}/share/anamnesis
+.endfor
+ ${LN} -sf ${PREFIX}/share/anamnesis/anamnesis.py ${STAGEDIR}${PREFIX}/bin/anamnesis
+ ${INSTALL_DATA} ${WRKSRC}/anamnesis.cfg ${STAGEDIR}${PREFIX}/etc/anamnesis.cfg.sample
+ ${INSTALL_MAN} ${WRKSRC}/man/anamnesis.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/deskutils/anamnesis/distinfo b/deskutils/anamnesis/distinfo
new file mode 100644
index 000000000000..abfa1834467d
--- /dev/null
+++ b/deskutils/anamnesis/distinfo
@@ -0,0 +1,2 @@
+SHA256 (anamnesis-1.0.4.tar.gz) = 6785cbf09b333947ce031fa8a0e370b3e8a81a52a28221efef3f08f71bdb6f88
+SIZE (anamnesis-1.0.4.tar.gz) = 23438
diff --git a/deskutils/anamnesis/pkg-descr b/deskutils/anamnesis/pkg-descr
new file mode 100644
index 000000000000..713cb3ce8f1c
--- /dev/null
+++ b/deskutils/anamnesis/pkg-descr
@@ -0,0 +1,5 @@
+Anamnesis is a clipboard manager. It stores all clipboard history
+and offers an easy interface to do a full-text search on the items
+of its history.
+
+WWW: http://sourceforge.net/projects/anamnesis/
diff --git a/deskutils/anamnesis/pkg-plist b/deskutils/anamnesis/pkg-plist
new file mode 100644
index 000000000000..d57bb8a1a45e
--- /dev/null
+++ b/deskutils/anamnesis/pkg-plist
@@ -0,0 +1,32 @@
+bin/anamnesis
+@mode 0755
+%%DATADIR%%/anamnesis.py
+@mode
+%%DATADIR%%/anamnesis.pyc
+%%DATADIR%%/anamnesis.pyo
+%%DATADIR%%/browser.py
+%%DATADIR%%/browser.pyc
+%%DATADIR%%/browser.pyo
+%%DATADIR%%/clipboard.py
+%%DATADIR%%/clipboard.pyc
+%%DATADIR%%/clipboard.pyo
+%%DATADIR%%/clipboard_gtk.py
+%%DATADIR%%/clipboard_gtk.pyc
+%%DATADIR%%/clipboard_gtk.pyo
+%%DATADIR%%/clipboard_gtk_xclip.py
+%%DATADIR%%/clipboard_gtk_xclip.pyc
+%%DATADIR%%/clipboard_gtk_xclip.pyo
+%%DATADIR%%/config.py
+%%DATADIR%%/config.pyc
+%%DATADIR%%/config.pyo
+%%DATADIR%%/daemon.py
+%%DATADIR%%/daemon.pyc
+%%DATADIR%%/daemon.pyo
+%%DATADIR%%/db.py
+%%DATADIR%%/db.pyc
+%%DATADIR%%/db.pyo
+%%DATADIR%%/db_sqlite3fts.py
+%%DATADIR%%/db_sqlite3fts.pyc
+%%DATADIR%%/db_sqlite3fts.pyo
+man/man1/anamnesis.1.gz
+@sample etc/anamnesis.cfg.sample