Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmcalendar/wmcalendar-0.5.0-r1.ebuild,v 1.5 2006/10/10 07:16:21 s4t4n Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmcalendar/wmcalendar-0.5.0-r1.ebuild,v 1.5 2006/10/10 07:16:21 s4t4n Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils toolchain-funcs |
6 |
|
6 |
|
7 |
IUSE="" |
7 |
IUSE="" |
8 |
|
8 |
|
Lines 26-47
Link Here
|
26 |
src_unpack() |
26 |
src_unpack() |
27 |
{ |
27 |
{ |
28 |
unpack ${A} |
28 |
unpack ${A} |
29 |
cd ${WORKDIR} |
29 |
cd "${WORKDIR}" |
30 |
|
30 |
|
31 |
# default Makefile overwrites CC and CFLAGS variables so we patch it |
31 |
# default Makefile overwrites CC and CFLAGS variables so we patch it |
32 |
epatch ${FILESDIR}/${P}.makefile.patch |
32 |
epatch "${FILESDIR}"/${P}.makefile.patch |
33 |
|
33 |
|
34 |
# Fix compilation issues with gcc >= 4 |
34 |
# Fix compilation issues with gcc >= 4 |
35 |
epatch ${FILESDIR}/${P}-gcc4.patch |
35 |
epatch "${FILESDIR}"/${P}-gcc4.patch |
36 |
|
36 |
|
37 |
# remove unneeded SYSTEM variable from Makefile, fixing bug #105730 |
37 |
# remove unneeded SYSTEM variable from Makefile, fixing bug #105730 |
38 |
cd ${S} |
38 |
cd "${S}" |
39 |
sed -i -e "s:\$(SYSTEM)::" Makefile |
39 |
sed -i -e "s:\$(SYSTEM)::" Makefile || die "sed failed." |
|
|
40 |
sed -i -e "s:install -c -s:install -c:" Makefile || die "sed failed." |
41 |
sed -i -e "s:\$(DESTDIR)/man:\$(DESTDIR)/share/man:" \ |
42 |
Makefile || die "sed failed." |
43 |
|
44 |
tc-export CC |
40 |
} |
45 |
} |
41 |
|
46 |
|
42 |
src_install() |
47 |
src_install() |
43 |
{ |
48 |
{ |
44 |
dodir /usr/bin /usr/man/man1 |
49 |
dodir /usr/bin /usr/share/man/man1 |
45 |
make DESTDIR=${D}/usr install || die |
50 |
emake DESTDIR="${D}"/usr install || die |
46 |
cd .. && dodoc BUGS CHANGES HINTS README TODO || die |
51 |
cd .. && dodoc BUGS CHANGES HINTS README TODO || die |
47 |
} |
52 |
} |