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