blob: a5958047c03f06dceed5156bf6a4e0e3e092666c (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
# Ports collection makefile for: git
# Date created: 7 Feb 2006
# Whom: Eric Anholt
#
# $FreeBSD$
#
PORTNAME= git
PORTVERSION= 1.5.2.1
CATEGORIES= devel
MASTER_SITES= http://www.kernel.org/pub/software/scm/git/
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-manpages-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= anholt@FreeBSD.org
COMMENT= Distributed source code management tool
BUILD_DEPENDS= curl:${PORTSDIR}/ftp/curl \
${SITE_PERL}/Error.pm:${PORTSDIR}/lang/p5-Error
RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl \
cvsps:${PORTSDIR}/devel/cvsps-devel \
${SITE_PERL}/Error.pm:${PORTSDIR}/lang/p5-Error
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
CONFLICTS= cogito-0.1[012] git-4.*
MAN1= git-add.1 \
git-am.1 \
git-annotate.1 \
git-apply.1 \
git-applymbox.1 \
git-applypatch.1 \
git-archimport.1 \
git-archive.1 \
git-bisect.1 \
git-blame.1 \
git-branch.1 \
git-bundle.1 \
git-cat-file.1 \
git-check-attr.1 \
git-check-ref-format.1 \
git-checkout-index.1 \
git-checkout.1 \
git-cherry-pick.1 \
git-cherry.1 \
git-clean.1 \
git-clone.1 \
git-commit-tree.1 \
git-commit.1 \
git-config.1 \
git-convert-objects.1 \
git-count-objects.1 \
git-cvsexportcommit.1 \
git-cvsimport.1 \
git-cvsserver.1 \
git-daemon.1 \
git-describe.1 \
git-diff-files.1 \
git-diff-index.1 \
git-diff-tree.1 \
git-diff.1 \
git-fast-import.1 \
git-fetch-pack.1 \
git-fetch.1 \
git-fmt-merge-msg.1 \
git-format-patch.1 \
git-for-each-ref.1 \
git-fsck.1 \
git-fsck-objects.1 \
git-gc.1 \
git-get-tar-commit-id.1 \
git-grep.1 \
git-hash-object.1 \
git-http-fetch.1 \
git-http-push.1 \
git-imap-send.1 \
git-index-pack.1 \
git-init.1 \
git-init-db.1 \
git-instaweb.1 \
git-local-fetch.1 \
git-log.1 \
git-lost-found.1 \
git-ls-files.1 \
git-ls-remote.1 \
git-ls-tree.1 \
git-mailinfo.1 \
git-mailsplit.1 \
git-merge.1 \
git-merge-base.1 \
git-merge-file.1 \
git-merge-index.1 \
git-merge-one-file.1 \
git-merge-tree.1 \
git-mergetool.1 \
git-mktag.1 \
git-mktree.1 \
git-mv.1 \
git-name-rev.1 \
git-p4import.1 \
git-pack-objects.1 \
git-pack-redundant.1 \
git-pack-refs.1 \
git-parse-remote.1 \
git-patch-id.1 \
git-peek-remote.1 \
git-prune-packed.1 \
git-prune.1 \
git-pull.1 \
git-push.1 \
git-quiltimport.1 \
git-read-tree.1 \
git-rebase.1 \
git-receive-pack.1 \
git-reflog.1 \
git-relink.1 \
git-remote.1 \
git-repack.1 \
git-repo-config.1 \
git-request-pull.1 \
git-rerere.1 \
git-reset.1 \
git-rev-list.1 \
git-rev-parse.1 \
git-revert.1 \
git-rm.1 \
git-runstatus.1 \
git-send-email.1 \
git-send-pack.1 \
git-sh-setup.1 \
git-shell.1 \
git-shortlog.1 \
git-show-branch.1 \
git-show-index.1 \
git-show-ref.1 \
git-show.1 \
git-ssh-fetch.1 \
git-ssh-upload.1 \
git-status.1 \
git-stripspace.1 \
git-svnimport.1 \
git-svn.1 \
git-symbolic-ref.1 \
git-tag.1 \
git-tar-tree.1 \
git-unpack-file.1 \
git-unpack-objects.1 \
git-update-index.1 \
git-update-ref.1 \
git-update-server-info.1 \
git-upload-archive.1 \
git-upload-pack.1 \
git-var.1 \
git-verify-pack.1 \
git-verify-tag.1 \
git-whatchanged.1 \
git-write-tree.1 \
gitk.1
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
MAN3= Git.3
MAN5= gitattributes.5 gitignore.5
MAN7= git.7
USE_BZIP2= yes
USE_PERL5= yes
USE_PYTHON= yes
USE_ICONV= yes
USE_GMAKE= yes
CFLAGS+= -I${LOCALBASE}/include
MAKE_ENV+= CURLDIR=${LOCALBASE} \
NEEDS_LIBICONV=yes \
WITH_P4IMPORT=yes \
LDFLAGS="-L${LOCALBASE}/lib" \
PYTHON_PATH=${LOCALBASE}/bin/python \
PERL_PATH=${PERL}
MAKE_ARGS+= prefix="${PREFIX}"
.ifndef WITHOUT_GUI
PLIST_SUB+= GUI=""
RUN_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84
MAKE_ENV+= TCL_PATH=tclsh8.4 TCLTK_PATH=wish8.4
.else
PLIST_SUB+= GUI="@comment "
MAKE_ENV+= NO_TCLTK=yes
.endif
post-install:
.for i in ${MAN1}
${INSTALL_MAN} ${WRKDIR}/man1/${i} ${MANPREFIX}/man/man1/
.endfor
.for i in ${MAN5}
${INSTALL_MAN} ${WRKDIR}/man5/${i} ${MANPREFIX}/man/man5/
.endfor
.for i in ${MAN7}
${INSTALL_MAN} ${WRKDIR}/man7/${i} ${MANPREFIX}/man/man7/
.endfor
-${RM} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/mach/perllocal.pod
${MKDIR} ${PREFIX}/share/emacs/site-lisp/git
${MKDIR} ${PREFIX}/lib/xemacs/site-lisp/git
${INSTALL_DATA} ${WRKSRC}/contrib/emacs/git.el \
${PREFIX}/share/emacs/site-lisp/git/
${INSTALL_DATA} ${WRKSRC}/contrib/emacs/vc-git.el \
${PREFIX}/share/emacs/site-lisp/git/
${LN} -sf ${PREFIX}/share/emacs/site-lisp/git/git.el \
${PREFIX}/lib/xemacs/site-lisp/git/git.el
${LN} -sf ${PREFIX}/share/emacs/site-lisp/git/vc-git.el \
${PREFIX}/lib/xemacs/site-lisp/git/vc-git.el
.include <bsd.port.mk>
|