View | Details | Raw Unified
Collapse All | Expand All

(-) wmcalendar-0.5.0-r1.ebuild.orig (-8 / +13 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $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 $
# $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 $
inherit eutils
inherit eutils toolchain-funcs
IUSE=""
IUSE=""
 Lines 26-47    Link Here 
src_unpack()
src_unpack()
{
{
	unpack ${A}
	unpack ${A}
	cd ${WORKDIR}
	cd "${WORKDIR}"
	# default Makefile overwrites CC and CFLAGS variables so we patch it
	# default Makefile overwrites CC and CFLAGS variables so we patch it
	epatch ${FILESDIR}/${P}.makefile.patch
	epatch "${FILESDIR}"/${P}.makefile.patch
	# Fix compilation issues with gcc >= 4
	# Fix compilation issues with gcc >= 4
	epatch ${FILESDIR}/${P}-gcc4.patch
	epatch "${FILESDIR}"/${P}-gcc4.patch
	# remove unneeded SYSTEM variable from Makefile, fixing bug #105730
	# remove unneeded SYSTEM variable from Makefile, fixing bug #105730
	cd ${S}
	cd "${S}"
	sed -i -e "s:\$(SYSTEM)::" Makefile
	sed -i -e "s:\$(SYSTEM)::" Makefile || die "sed failed."
	sed -i -e "s:install -c -s:install -c:" Makefile || die "sed failed."
	sed -i -e "s:\$(DESTDIR)/man:\$(DESTDIR)/share/man:" \
		Makefile || die "sed failed."
	tc-export CC
}
}
src_install()
src_install()
{
{
	dodir /usr/bin /usr/man/man1
	dodir /usr/bin /usr/share/man/man1
	make DESTDIR=${D}/usr install || die
	emake DESTDIR="${D}"/usr install || die
	cd .. && dodoc BUGS CHANGES HINTS README TODO || die
	cd .. && dodoc BUGS CHANGES HINTS README TODO || die
}
}