Annotation of /trunk/extras/git/git-2.20.1-r1.smage2
Parent Directory | Revision Log
Revision 31905 -
(hide annotations)
(download)
Wed Jan 2 10:38:51 2019 UTC (5 years, 8 months ago) by niro
File size: 3397 byte(s)
Wed Jan 2 10:38:51 2019 UTC (5 years, 8 months ago) by niro
File size: 3397 byte(s)
auto added: ver bump to 2.20.1-r1
1 | niro | 31905 | # $Id$ |
2 | |||
3 | PNAME="git" | ||
4 | PVER="2.20.1" | ||
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.1 | ||
14 | >= sys-libs/zlib-1.2.8 | ||
15 | >= app-arch/cpio-2 | ||
16 | >= net-misc/curl-7 | ||
17 | >= dev-lang/perl-5.28.1 | ||
18 | >= dev-lang/tk-8.6 | ||
19 | >= dev-perl/perl-error-0.17027 | ||
20 | >= dev-perl/perl-cgi-4.40 | ||
21 | >= dev-perl/perl-net-smtp-ssl-1 | ||
22 | >= dev-python/pygtk-2.24 | ||
23 | >= dev-util/tla-1.3.5 | ||
24 | >= dev-util/quilt-0.65" | ||
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 || 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 | #convert-objects | ||
91 | for i in fast-import hg-to-git \ | ||
92 | hooks remotes2config.sh \ | ||
93 | workdir | ||
94 | do | ||
95 | cp -rf contrib/${i} ${BINDIR}/usr/share/${PNAME}/contrib || die | ||
96 | done | ||
97 | |||
98 | # install git-web | ||
99 | mmake DESTDIR=${BINDIR} gitwebdir=/usr/share/${PNAME}/gitweb install-gitweb || die | ||
100 | # prevent overwriting of the docs | ||
101 | cp gitweb/INSTALL{,.gitweb} || die | ||
102 | cp gitweb/README{,.gitweb} || die | ||
103 | minstalldocs gitweb/INSTALL.gitweb || die | ||
104 | minstalldocs gitweb/README.gitweb || die | ||
105 | |||
106 | # git daemon systemd unit | ||
107 | minstallunit git-daemon.service || die | ||
108 | minstallconf git-daemon.confd git-daemon || die | ||
109 | |||
110 | # install all man pages | ||
111 | minstallman man\?/\* || die | ||
112 | |||
113 | # install documentation | ||
114 | minstalldocs README Documentation/{SubmittingPatches,CodingGuidelines} || die | ||
115 | |||
116 | # finally fix perl modules | ||
117 | fixlocalpod | ||
118 | } | ||
119 | |||
120 | postinstall() | ||
121 | { | ||
122 | echo | ||
123 | echo "To use git-web, install an apache-server and point it to '/usr/share/git/gitweb'." | ||
124 | echo | ||
125 | } |