Contents of /trunk/extras/git/git-1.6.5.3-r1.smage2
Parent Directory | Revision Log
Revision 4308 -
(show annotations)
(download)
Tue Dec 1 14:55:02 2009 UTC (14 years, 6 months ago) by niro
File size: 3450 byte(s)
Tue Dec 1 14:55:02 2009 UTC (14 years, 6 months ago) by niro
File size: 3450 byte(s)
auto added: ver bump to 1.6.5.3-r1
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}/${PNAME}-1.5.4.4-symlinks.patch |
38 | mirror://${PNAME}/git-daemon.rc |
39 | mirror://${PNAME}/git-daemon.confd |
40 | ) |
41 | |
42 | UP2DATE="updatecmd 'http://kernel.org/pub/software/scm/git/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball" |
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 | mpatch ${PNAME}-1.5.4.4-symlinks.patch || die |
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 || die |
64 | |
65 | # compile gitweb.cgi too |
66 | mmake prefix=/usr gitweb/gitweb.cgi || die |
67 | } |
68 | |
69 | src_install() |
70 | { |
71 | cd ${SRCDIR} |
72 | mmake DESTDIR=${BINDIR} prefix=/usr 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 contrib/fast-import/git-p4 || die |
81 | minstalldocs contrib/fast-import/git-p4.txt || 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 continuous fast-import hg-to-git \ |
91 | hooks remotes2config.sh vim stats \ |
92 | workdir convert-objects blameview |
93 | do |
94 | cp -rf contrib/${i} ${BINDIR}/usr/share/${PNAME}/contrib || die |
95 | done |
96 | |
97 | # install git-web |
98 | minstalldir /usr/share/${PNAME}/gitweb || die |
99 | minstallfile gitweb/gitweb.cgi /usr/share/${PNAME}/gitweb || die |
100 | minstallfile gitweb/gitweb.css /usr/share/${PNAME}/gitweb || die |
101 | minstallfile gitweb/git-favicon.png /usr/share/${PNAME}/gitweb || die |
102 | minstallfile gitweb/git-logo.png /usr/share/${PNAME}/gitweb || die |
103 | # prevent overwriting of the docs |
104 | cp gitweb/INSTALL{,.gitweb} || die |
105 | cp gitweb/README{,.gitweb} || die |
106 | minstalldocs gitweb/INSTALL.gitweb || die |
107 | minstalldocs gitweb/README.gitweb || die |
108 | |
109 | # git daemon rc-script |
110 | minstallrc git-daemon.rc git-daemon || die |
111 | minstallconf git-daemon.confd git-daemon || die |
112 | |
113 | # install all man pages |
114 | minstallman man\?/\* || die |
115 | |
116 | # install documentation |
117 | minstalldocs README Documentation/{SubmittingPatches,CodingGuidelines} || die |
118 | |
119 | # finally fix perl modules |
120 | fixlocalpod |
121 | } |
122 | |
123 | postinstall() |
124 | { |
125 | echo |
126 | echo "To use git-web, install an apache-server and point it to '/usr/share/git/gitweb'." |
127 | echo |
128 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |