Magellan Linux

Annotation of /branches/R11-unstable/extras/git/git-2.4.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24861 - (hide annotations) (download)
Wed May 27 12:32:42 2015 UTC (8 years, 11 months ago) by niro
Original Path: trunk/extras/git/git-2.4.2-r1.smage2
File size: 3395 byte(s)
auto added: ver bump to 2.4.2-r1
1 niro 24861 # $Id$
2    
3     PNAME="git"
4     PVER="2.4.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.8
15     >= app-arch/cpio-2
16     >= net-misc/curl-7
17     >= dev-lang/perl-5.20.1
18     >= dev-lang/tk-8.6
19     >= dev-perl/perl-error-0.17022
20     >= dev-perl/perl-cgi-4.08
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.xz"
27     SRCFILE="${PNAME}-${PVER}.tar.xz"
28     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29    
30     sminclude mtools perl systemd
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     UP2DATE="updatecmd https://www.kernel.org/pub/software/scm/${PNAME}/ | grep ${PNAME}-[0-9] | highesttarball xz"
44    
45     src_prepare()
46     {
47     munpack ${SRCFILE} || die
48     munpack ${MANPAGES_SRCFILE} ${SRCDIR} || die
49     cd ${SRCDIR}
50    
51     # we want symbolic links, no hardlinks
52     sed -i 's:ln :ln -s :g' Makefile || die
53    
54     # fix CFLAGS and LDFLAGS too
55     sed -i -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
56     -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
57     Makefile || die
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63     mmake prefix=/usr gitexecdir=$(mlibdir)/${PNAME}/git-core || die
64    
65     # compile gitweb.cgi too
66     mmake prefix=/usr gitexecdir=$(mlibdir)/${PNAME}/git-core gitweb/gitweb.cgi || die
67     }
68    
69     src_install()
70     {
71     cd ${SRCDIR}
72     mmake DESTDIR=${BINDIR} prefix=/usr gitexecdir=$(mlibdir)/${PNAME}/git-core install || die
73    
74     # install the gtk-gui
75     minstallexec contrib/gitview/gitview || die
76     minstalldocs contrib/gitview/gitview.txt || die
77    
78     # install some nice contribs
79     minstallexec contrib/fast-import/import-tars.perl /usr/bin/import-tars || die
80     minstallexec git-p4 || die
81     minstalldocs contrib/fast-import/git-p4.README || die
82    
83     # the following are excluded: (from gentoo)
84     # svnimport - use git-svn
85     # p4import - excluded because fast-import has a better one
86     # examples - these are stuff that is not used in git anymore actually
87     # patches - stuff the git guys made to go upstream to other places
88     minstalldir /usr/share/${PNAME}/contrib || die
89     local i
90     for i in fast-import hg-to-git \
91     hooks remotes2config.sh \
92     workdir convert-objects
93     do
94     cp -rf contrib/${i} ${BINDIR}/usr/share/${PNAME}/contrib || die
95     done
96    
97     # install git-web
98     mmake -C gitweb DESTDIR=${BINDIR} gitwebdir=/usr/share/${PNAME}/gitweb || die
99     # prevent overwriting of the docs
100     cp gitweb/INSTALL{,.gitweb} || die
101     cp gitweb/README{,.gitweb} || die
102     minstalldocs gitweb/INSTALL.gitweb || die
103     minstalldocs gitweb/README.gitweb || die
104    
105     # git daemon systemd unit
106     minstallunit git-daemon.service || die
107     minstallconf git-daemon.confd git-daemon || die
108    
109     # install all man pages
110     minstallman man\?/\* || die
111    
112     # install documentation
113     minstalldocs README Documentation/{SubmittingPatches,CodingGuidelines} || die
114    
115     # finally fix perl modules
116     fixlocalpod
117     }
118    
119     postinstall()
120     {
121     echo
122     echo "To use git-web, install an apache-server and point it to '/usr/share/git/gitweb'."
123     echo
124     }