aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mercurial/Makefile
blob: 78bc747c7b12f2742d612e0a31eaa5ad9ca322fc (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Created by: Andreas Kohn
# $FreeBSD$

PORTNAME=   mercurial
PORTVERSION=    2.8
CATEGORIES= devel python
MASTER_SITES=   http://mercurial.selenic.com/release/

MAINTAINER= python@FreeBSD.org
COMMENT=    Fast, lightweight source control management system

LICENSE=    GPLv2

USE_PYTHON= -2.7
USE_PYDISTUTILS=yes

OPTIONS_DEFINE= CA_BUNDLE DATA DOCS NLS
OPTIONS_DEFAULT=DATA
OPTIONS_SUB=    yes
CA_BUNDLE_DESC= Install CA Certificates

CONTRIB_FILES=  bash_completion \
        casesmash.py \
        check-code.py \
        convert-repo \
        debugcmdserver.py \
        debugshell.py \
        dumprevlog \
        hg-ssh \
        hgfixes/__init__.py \
        hgfixes/fix_bytes.py \
        hgfixes/fix_bytesmod.py \
        hgfixes/fix_leftover_imports.py \
        hgk \
        hgsh/Makefile \
        hgsh/hgsh.c \
        mercurial.el \
        mergetools.hgrc \
        mq.el \
        perf.py \
        pylintrc \
        python-hook-examples.py \
        sample.hgrc \
        simplemerge \
        tcsh_completion \
        tcsh_completion_build.sh \
        tmplrewrite.py \
        undumprevlog \
        zsh_completion \
        vim/HGAnnotate.vim \
        vim/hg-menu.vim \
        vim/hgcommand.vim \
        vim/hgtest.vim \
        vim/patchreview.txt \
        vim/patchreview.vim
DOCS=       CONTRIBUTORS README

CA_BUNDLE_RUN_DEPENDS=  ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
NLS_USES=       gettext

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDATA}
SUB_FILES=  pkg-message
.endif

.if !${PORT_OPTIONS:MNLS}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-setup.py
.endif

post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${PREFIX}/man/man1/
    ${INSTALL_MAN} ${WRKSRC}/doc/*.5 ${STAGEDIR}${PREFIX}/man/man5/
.if ${PORT_OPTIONS:MDATA}
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${DATADIR}/contrib
    ${MKDIR} ${STAGEDIR}${DATADIR}/contrib/hgfixes
    ${MKDIR} ${STAGEDIR}${DATADIR}/contrib/hgsh
    ${MKDIR} ${STAGEDIR}${DATADIR}/contrib/vim
    for f in ${CONTRIB_FILES}; do \
        ${CP} -p ${WRKSRC}/contrib/$${f} ${STAGEDIR}${DATADIR}/contrib/$${f}; \
    done
    ${MKDIR} ${STAGEDIR}${DATADIR}/www
    ${INSTALL_DATA} ${WRKSRC}/*.cgi ${STAGEDIR}${DATADIR}/www
    ${INSTALL_DATA} ${WRKSRC}/contrib/hgweb.fcgi ${STAGEDIR}${DATADIR}/www
    ${INSTALL_DATA} ${WRKSRC}/contrib/hgweb.wsgi ${STAGEDIR}${DATADIR}/www
.endif
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/
.endif

.include <bsd.port.mk>