aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mercurial/Makefile
blob: 28cc71211d667d08e0fdbebce7cf6bac19637fdb (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
# Ports collection makefile for:    mercurial
# Date created:             11 July 2005
# Whom:                 Andreas Kohn
#
# $FreeBSD$
#

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

MAINTAINER= roberto@FreeBSD.org
COMMENT=    A fast, lightweight source control management system

USE_GETTEXT=    yes
USE_PYTHON= 2.3+
USE_PYDISTUTILS=yes
PYDISTUTILS_NOEGGINFO=  yes

CONTRIB_FILES=  bash_completion \
        convert-repo \
        dumprevlog \
        hg-relink \
        hg-ssh \
        hgdiff \
        hgk \
        logo-droplets.svg \
        mercurial.el \
        mq.el \
        sample.hgrc \
        simplemerge \
        tcsh_completion \
        undumprevlog \
        zsh_completion \
        git-viz/git-cat-file \
        git-viz/git-diff-tree \
        git-viz/git-rev-list \
        git-viz/git-rev-tree \
        git-viz/hg-viz \
        hgsh/Makefile \
        hgsh/hgsh.c \
        vim/HGAnnotate.vim \
        vim/hg-menu.vim \
        vim/hgcommand.vim \
        vim/patchreview.txt \
        vim/patchreview.vim

DOCS=   CONTRIBUTORS COPYING README doc/*.txt doc/*.html

MAN1=   hg.1
MAN5=   hgignore.5 hgrc.5

PKGMESSAGE= ${WRKDIR}/MESSAGE

post-build:
    @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}

post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/man/man1/
    ${INSTALL_MAN} ${WRKSRC}/doc/*.5 ${PREFIX}/man/man5/
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    for f in ${DOCS}; do \
        ${INSTALL_MAN} ${WRKSRC}/$${f} ${DOCSDIR}; \
    done
.endif
.if !defined(NOPORTDATA)
    ${MKDIR} ${DATADIR}
    ${MKDIR} ${DATADIR}/contrib
    ${MKDIR} ${DATADIR}/contrib/git-viz
    ${MKDIR} ${DATADIR}/contrib/hgsh
    ${MKDIR} ${DATADIR}/contrib/vim
    for f in ${CONTRIB_FILES}; do \
        ${CP} -p ${WRKSRC}/contrib/$${f} ${DATADIR}/contrib/$${f}; \
    done
    ${MKDIR} ${DATADIR}/www
    ${INSTALL_MAN} ${WRKSRC}/*.cgi ${DATADIR}/www
    ${INSTALL_MAN} ${WRKSRC}/contrib/hgwebdir.fcgi ${DATADIR}/www
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>