Lines 132-144
RMMAN1+= git-cvsimport.1 \
Link Here
|
132 |
RMMAN7+= gitcvs-migration.7 |
132 |
RMMAN7+= gitcvs-migration.7 |
133 |
.endif |
133 |
.endif |
134 |
|
134 |
|
135 |
post-extract: |
135 |
post-extract-HTMLDOCS-on: |
136 |
.if ${PORT_OPTIONS:MHTMLDOCS} |
|
|
137 |
@${MKDIR} ${WRKDIR}/htmldocs |
136 |
@${MKDIR} ${WRKDIR}/htmldocs |
138 |
@cd ${WRKDIR}/htmldocs && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ |
137 |
@cd ${WRKDIR}/htmldocs && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ |
139 |
${DISTDIR}/${PORTNAME}-htmldocs-${DISTVERSION}${EXTRACT_SUFX} \ |
138 |
${DISTDIR}/${PORTNAME}-htmldocs-${DISTVERSION}${EXTRACT_SUFX} \ |
140 |
${EXTRACT_AFTER_ARGS} |
139 |
${EXTRACT_AFTER_ARGS} |
141 |
.endif |
|
|
142 |
|
140 |
|
143 |
post-patch: |
141 |
post-patch: |
144 |
.for FILE in ${RMMAN1} |
142 |
.for FILE in ${RMMAN1} |
Lines 148-176
post-patch:
Link Here
|
148 |
@${RM} ${WRKDIR}/man7/${FILE} |
146 |
@${RM} ${WRKDIR}/man7/${FILE} |
149 |
.endfor |
147 |
.endfor |
150 |
@${REINPLACE_CMD} -e 's|share/man/man3|man/man3|' ${WRKSRC}/perl/Makefile.PL |
148 |
@${REINPLACE_CMD} -e 's|share/man/man3|man/man3|' ${WRKSRC}/perl/Makefile.PL |
151 |
.if empty(PORT_OPTIONS:MCVS) |
149 |
|
|
|
150 |
post-patch-CVS-off: |
152 |
@${REINPLACE_CMD} -e '/git-cvsexportcommit.perl/d; \ |
151 |
@${REINPLACE_CMD} -e '/git-cvsexportcommit.perl/d; \ |
153 |
/git-cvsimport.perl/d; \ |
152 |
/git-cvsimport.perl/d; \ |
154 |
/git-cvsserver.perl/d; \ |
153 |
/git-cvsserver.perl/d; \ |
155 |
/documented,gitcvs-migration/d; \ |
154 |
/documented,gitcvs-migration/d; \ |
156 |
s/git-cvsserver//' \ |
155 |
s/git-cvsserver//' \ |
157 |
${WRKSRC}/Makefile |
156 |
${WRKSRC}/Makefile |
158 |
.endif |
157 |
|
159 |
.if empty(PORT_OPTIONS:MSVN) |
158 |
post-patch-SVN-off: |
160 |
@${REINPLACE_CMD} -e '/git-svn.perl/d' ${WRKSRC}/Makefile |
159 |
@${REINPLACE_CMD} -e '/git-svn.perl/d' ${WRKSRC}/Makefile |
161 |
.endif |
160 |
|
162 |
.if empty(PORT_OPTIONS:MGITWEB) |
161 |
post-patch-GITHUB-off: |
163 |
@${REINPLACE_CMD} -e '/$$(MAKE) -C gitweb install/d' ${WRKSRC}/Makefile |
162 |
@${REINPLACE_CMD} -e '/$$(MAKE) -C gitweb install/d' ${WRKSRC}/Makefile |
164 |
@${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL}," ${WRKSRC}/t/gitweb-lib.sh |
163 |
@${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL}," ${WRKSRC}/t/gitweb-lib.sh |
165 |
.endif |
164 |
|
166 |
.if empty(PORT_OPTIONS:MP4) |
165 |
post-patch-P4-off: |
167 |
@${REINPLACE_CMD} -e '/^SCRIPT_PYTHON += git-p4.py$$/d' ${WRKSRC}/Makefile |
166 |
@${REINPLACE_CMD} -e '/^SCRIPT_PYTHON += git-p4.py$$/d' ${WRKSRC}/Makefile |
168 |
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \ |
167 |
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \ |
169 |
${WRKSRC}/contrib/subtree/git-subtree.sh |
168 |
${WRKSRC}/contrib/subtree/git-subtree.sh |
170 |
.endif |
|
|
171 |
|
169 |
|
172 |
post-build: |
|
|
173 |
.if ${PORT_OPTIONS:MP4} || ${PORT_OPTIONS:MCONTRIB} |
170 |
.if ${PORT_OPTIONS:MP4} || ${PORT_OPTIONS:MCONTRIB} |
|
|
171 |
post-build: |
174 |
@${FIND} ${WRKSRC} -name "*.bak" -delete |
172 |
@${FIND} ${WRKSRC} -name "*.bak" -delete |
175 |
.endif |
173 |
.endif |
176 |
|
174 |
|
Lines 178-193
post-install:
Link Here
|
178 |
(cd ${WRKDIR}/man1/ && ${COPYTREE_SHARE} . ${STAGEDIR}${MANPREFIX}/man/man1) |
176 |
(cd ${WRKDIR}/man1/ && ${COPYTREE_SHARE} . ${STAGEDIR}${MANPREFIX}/man/man1) |
179 |
(cd ${WRKDIR}/man5/ && ${COPYTREE_SHARE} . ${STAGEDIR}${MANPREFIX}/man/man5) |
177 |
(cd ${WRKDIR}/man5/ && ${COPYTREE_SHARE} . ${STAGEDIR}${MANPREFIX}/man/man5) |
180 |
(cd ${WRKDIR}/man7/ && ${COPYTREE_SHARE} . ${STAGEDIR}${MANPREFIX}/man/man7) |
178 |
(cd ${WRKDIR}/man7/ && ${COPYTREE_SHARE} . ${STAGEDIR}${MANPREFIX}/man/man7) |
181 |
.if ${PORT_OPTIONS:MHTMLDOCS} |
|
|
182 |
# Manually remove the index.html symlink before installing, and then |
183 |
# recreate it after. This is necessary because the distfile is |
184 |
# extracted with --no-same-owner. If the distfile is extracted as a |
185 |
# non-root user then the symlink will have the incorrect owner. |
186 |
${RM} -f ${WRKDIR}/htmldocs/index.html |
187 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
188 |
(cd ${WRKDIR}/htmldocs/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) |
189 |
${LN} -s git.html ${STAGEDIR}${DOCSDIR}/index.html |
190 |
.endif |
191 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/emacs/site-lisp/git |
179 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/emacs/site-lisp/git |
192 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/git |
180 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/git |
193 |
${INSTALL_DATA} ${WRKSRC}/contrib/emacs/git.el \ |
181 |
${INSTALL_DATA} ${WRKSRC}/contrib/emacs/git.el \ |
Lines 198-214
post-install:
Link Here
|
198 |
${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/git/git.el |
186 |
${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/git/git.el |
199 |
${LN} -sf ${PREFIX}/share/emacs/site-lisp/git/git-blame.el \ |
187 |
${LN} -sf ${PREFIX}/share/emacs/site-lisp/git/git-blame.el \ |
200 |
${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/git/git-blame.el |
188 |
${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/git/git-blame.el |
201 |
.if ${PORT_OPTIONS:MCONTRIB} |
189 |
|
|
|
190 |
post-install-HTMLDOCS-on: |
191 |
# Manually remove the index.html symlink before installing, and then |
192 |
# recreate it after. This is necessary because the distfile is |
193 |
# extracted with --no-same-owner. If the distfile is extracted as a |
194 |
# non-root user then the symlink will have the incorrect owner. |
195 |
${RM} -f ${WRKDIR}/htmldocs/index.html |
196 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
197 |
(cd ${WRKDIR}/htmldocs/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) |
198 |
${LN} -s git.html ${STAGEDIR}${DOCSDIR}/index.html |
199 |
|
200 |
post-install-CONTRIB-on: |
202 |
@${ECHO_MSG} "===> Installing contributed scripts" |
201 |
@${ECHO_MSG} "===> Installing contributed scripts" |
203 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/git-core/contrib |
202 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/git-core/contrib |
204 |
${CP} -R ${WRKSRC}/contrib/* ${STAGEDIR}${PREFIX}/share/git-core/contrib |
203 |
${CP} -R ${WRKSRC}/contrib/* ${STAGEDIR}${PREFIX}/share/git-core/contrib |
205 |
cd ${WRKSRC}/contrib/subtree && ${SETENV} ${MAKE_ENV} \ |
204 |
cd ${WRKSRC}/contrib/subtree && ${SETENV} ${MAKE_ENV} \ |
206 |
${MAKE_CMD} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} install install-doc |
205 |
${MAKE_CMD} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} install install-doc |
207 |
.endif |
206 |
# Symlink the completions from the contrib directory to where they |
208 |
.if ${PORT_OPTIONS:MP4} |
207 |
# will be useful |
|
|
208 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \ |
209 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions |
210 |
@${LN} -s ../../share/git-core/contrib/completion/git-completion.bash \ |
211 |
${STAGEDIR}${PREFIX}/etc/bash_completion.d/git.sh |
212 |
@${LN} -s ../../../share/git-core/contrib/completion/git-completion.zsh \ |
213 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_git |
214 |
|
215 |
post-install-CONTRIB-off: |
216 |
# Install the contrib completions anyway |
217 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \ |
218 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions |
219 |
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/completion/git-completion.bash \ |
220 |
${STAGEDIR}${PREFIX}/etc/bash_completion.d/git.sh |
221 |
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/completion/git-completion.zsh \ |
222 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_git |
223 |
|
224 |
post-install-P4-on: |
209 |
${INSTALL_SCRIPT} ${WRKSRC}/git-p4.py ${STAGEDIR}${PREFIX}/bin/ |
225 |
${INSTALL_SCRIPT} ${WRKSRC}/git-p4.py ${STAGEDIR}${PREFIX}/bin/ |
210 |
.endif |
|
|
211 |
|
212 |
post-stage: |
213 |
|
226 |
|
214 |
.include <bsd.port.mk> |
227 |
.include <bsd.port.mk> |