# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 # $Header: $ S=${WORKDIR}/${P} DESCRIPTION="The GNU Calendar - a replacement for cal" SRC_URI="ftp://ftp.gnu.org/pub/gnu/gcal/${P}.tar.gz" HOMEPAGE="http://www.gnu.org/software/gcal/gcal.html" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc sparc sparc64" DEPEND="virtual/glibc nls? ( sys-devel/gettext )" RDEPEND="virtual/glibc" src_compile() { local myconf use nls \ || myconf="${myconf} --disable-nls" use ncurses \ || myconf="${myconf} --disable-term" ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man/man1 \ ${myconf} || die "./configure failed" emake || die } src_install() { make \ prefix=${D}/usr \ mandir=${D}/usr/share/man/man1 \ infodir=${D}/usr/share/info \ install || die dodoc ABOUT-NLS ATTENTION BUGS COPYING DISCLAIM HISTORY \ INSTALL LIMITATIONS MANIFEST NEWS README SYMBOLS THANKS TODO # Need to fix up paths for scripts in misc director # that are automatically created by the makefile # Couldn't seem to get dosed to work properly :-/ find ${D}/usr/share/gcal/misc/ -exec ssed -i -e "s/${D//\//\/}/\//" {} \; # Cleanup temp files from ssed find ${D}/usr/share/gcal/misc/ -name 'sed*' -exec rm -f {} \; # Rebuild the symlinks that makefile created into the image /usr/bin # directory during make install dosym /usr/share/gcal/misc/daily/daily /usr/bin/gcal-daily dosym /usr/share/gcal/misc/ddiff/ddiff /usr/bin/gcal-ddiff dosym /usr/share/gcal/misc/ddiff/ddiffdrv /usr/bin/gcal-ddiffdrv dosym /usr/share/gcal/misc/dst/dst /usr/bin/gcal-dst dosym /usr/share/gcal/misc/gcalltx/gcalltx /usr/bin/gcal-gcalltx dosym /usr/share/gcal/misc/gcalltx/gcalltx.pl /usr/bin/gcal-gcalltx.pl dosym /usr/share/gcal/misc/moon/moon /usr/bin/gcal-moon dosym /usr/share/gcal/misc/mrms/mrms /usr/bin/gcal-mrms dosym /usr/share/gcal/misc/srss/srss /usr/bin/gcal-srss dosym /usr/share/gcal/misc/wloc/wlocdrv /usr/bin/gcal-wlocdrv }