aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/anamnesis/Makefile
blob: 53180934712f29864e33b806640d52a0bc2c0014 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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:databases/py-sqlite3 \
        ${PYTHON_PKGNAMEPREFIX}gtk2>0:x11-toolkits/py-gtk2 \
        ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg

USES=       python
PORTDOCS=   ChangeLog README
OPTIONS_DEFINE= DOCS
NO_ARCH=    yes

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

do-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>