Magellan Linux

Contents of /branches/R11-stable/extras/git/git-1.8.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18295 - (show annotations) (download)
Mon Jul 1 13:59:57 2013 UTC (10 years, 10 months ago) by niro
Original Path: trunk/extras/git/git-1.8.3.2-r1.smage2
File size: 3305 byte(s)
auto added: ver bump to 1.8.3.2-r1
1 # $Id$
2
3 PNAME="git"
4 PVER="1.8.3.2"
5 PBUILD="r1"
6
7 PCAT="dev-util"
8
9 DESCRIPTION="Git - Fast Version Control System."
10 HOMEPAGE="http://git.or.cz/"
11
12 DEPEND=">= dev-libs/expat-2
13 >= dev-libs/openssl-1.0.1
14 >= sys-libs/zlib-1.2.5
15 >= app-arch/cpio-2
16 >= net-misc/curl-7
17 >= dev-lang/perl-5.18
18 >= dev-lang/tk-8.5
19 >= dev-perl/perl-error-0.17015
20 >= dev-perl/perl-cgi-3.48
21 >= dev-perl/net-smtp-ssl-1
22 >= dev-python/pygtk-2.24
23 >= dev-util/tla-1.3.5
24 >= dev-util/quilt-0.48"
25
26 MANPAGES_SRCFILE="${PNAME}-manpages-${PVER}.tar.gz"
27 SRCFILE="${PNAME}-${PVER}.tar.gz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mtools perl
31
32 SRC_URI=(
33 http://git-core.googlecode.com/files/${SRCFILE}
34 http://git-core.googlecode.com/files/${MANPAGES_SRCFILE}
35 http://kernel.org/pub/software/scm/${PNAME}/${SRCFILE}
36 http://kernel.org/pub/software/scm/${PNAME}/${MANPAGES_SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/git-daemon.service
39 mirror://${PNAME}/git-daemon.confd
40 )
41
42 UP2DATE="updatecmd http://code.google.com/p/git-core/downloads/list | grep ${PNAME}-[0-9] | firsttarball gz"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 munpack ${MANPAGES_SRCFILE} ${SRCDIR} || die
48 cd ${SRCDIR}
49
50 # we want symbolic links, no hardlinks
51 sed -i 's:ln :ln -s :g' Makefile || die
52
53 # fix CFLAGS and LDFLAGS too
54 sed -i -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
55 -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
56 Makefile || die
57 }
58
59 src_compile()
60 {
61 cd ${SRCDIR}
62 mmake prefix=/usr gitexecdir=$(mlibdir)/${PNAME}/git-core || die
63
64 # compile gitweb.cgi too
65 mmake prefix=/usr gitexecdir=$(mlibdir)/${PNAME}/git-core gitweb/gitweb.cgi || die
66 }
67
68 src_install()
69 {
70 cd ${SRCDIR}
71 mmake DESTDIR=${BINDIR} prefix=/usr gitexecdir=$(mlibdir)/${PNAME}/git-core install || die
72
73 # install the gtk-gui
74 minstallexec contrib/gitview/gitview || die
75 minstalldocs contrib/gitview/gitview.txt || die
76
77 # install some nice contribs
78 minstallexec contrib/fast-import/import-tars.perl /usr/bin/import-tars || die
79 minstallexec git-p4 || die
80 minstalldocs contrib/fast-import/git-p4.README || die
81
82 # the following are excluded: (from gentoo)
83 # svnimport - use git-svn
84 # p4import - excluded because fast-import has a better one
85 # examples - these are stuff that is not used in git anymore actually
86 # patches - stuff the git guys made to go upstream to other places
87 minstalldir /usr/share/${PNAME}/contrib || die
88 local i
89 for i in continuous fast-import hg-to-git \
90 hooks remotes2config.sh vim stats \
91 workdir convert-objects blameview
92 do
93 cp -rf contrib/${i} ${BINDIR}/usr/share/${PNAME}/contrib || die
94 done
95
96 # install git-web
97 mmake -C gitweb DESTDIR=${BINDIR} gitwebdir=/usr/share/${PNAME}/gitweb || die
98 # prevent overwriting of the docs
99 cp gitweb/INSTALL{,.gitweb} || die
100 cp gitweb/README{,.gitweb} || die
101 minstalldocs gitweb/INSTALL.gitweb || die
102 minstalldocs gitweb/README.gitweb || die
103
104 # git daemon systemd unit
105 minstallunit git-daemon.service || die
106 minstallconf git-daemon.confd git-daemon || die
107
108 # install all man pages
109 minstallman man\?/\* || die
110
111 # install documentation
112 minstalldocs README Documentation/{SubmittingPatches,CodingGuidelines} || die
113
114 # finally fix perl modules
115 fixlocalpod
116 }
117
118 postinstall()
119 {
120 echo
121 echo "To use git-web, install an apache-server and point it to '/usr/share/git/gitweb'."
122 echo
123 }