You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/xlhtml/xlhtml-0.5.1_p6.ebuild

46 lines
1.3 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/xlhtml/xlhtml-0.5.1_p6.ebuild,v 1.3 2012/05/21 18:43:50 xarthisius Exp $
EAPI=3
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit autotools eutils
MY_PV=${PV/_p*/}
DEB_PR=${PV/*_p/}
DESCRIPTION="Convert MS Excel and Powerpoint files to HTML"
HOMEPAGE="http://chicago.sourceforge.net/xlhtml/ http://packages.debian.org/etch/xlhtml/"
SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}-${DEB_PR}.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND=""
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${WORKDIR}"/${PN}_${MY_PV}-${DEB_PR}.diff
# This is needed specifically for depcomp, which is necessary for
# building xlhtml, but isn't included.
eautoreconf
}
src_install() {
make DESTDIR="${D}" install || die "make install failed for ${P}"
dodoc AUTHORS INSTALL README
docinto cole
dodoc cole/{AUTHORS,COPYING,NEWS,ChangeLog,THANKS,TODO}
docinto ppthtml
dodoc ppthtml/{ChangeLog,README,THANKS}
docinto xlhtml
dodoc xlhtml/{ChangeLog,README,THANKS,TODO}
rm -rf xlhtml/contrib/CVS
cp -pPR xlhtml/contrib "${ED}"/usr/share/doc/${PF}/xlhtml
}