diff options
author | Sergey Kuleshov <svyatogor@gentoo.org> | 2003-09-10 07:33:11 +0000 |
---|---|---|
committer | Sergey Kuleshov <svyatogor@gentoo.org> | 2003-09-10 07:33:11 +0000 |
commit | 5adcf8cb6caaa71a2bbd80a44a832b9db51b05e0 (patch) | |
tree | 3dcdb0ac45698b270ae7e682799429f0932c6f8c /app-doc/chmlib/chmlib-0.31.ebuild | |
parent | Initial commit. (diff) | |
download | historical-5adcf8cb6caaa71a2bbd80a44a832b9db51b05e0.tar.gz historical-5adcf8cb6caaa71a2bbd80a44a832b9db51b05e0.tar.bz2 historical-5adcf8cb6caaa71a2bbd80a44a832b9db51b05e0.zip |
Initial commit.
Diffstat (limited to 'app-doc/chmlib/chmlib-0.31.ebuild')
-rw-r--r-- | app-doc/chmlib/chmlib-0.31.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-doc/chmlib/chmlib-0.31.ebuild b/app-doc/chmlib/chmlib-0.31.ebuild new file mode 100644 index 000000000000..b4faebf3c517 --- /dev/null +++ b/app-doc/chmlib/chmlib-0.31.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-doc/chmlib/chmlib-0.31.ebuild,v 1.1 2003/09/10 07:33:04 sergey Exp $ + +DESCRIPTION="Library for MS CHM (compressed html) file format plus extracting and http server utils" +HOMEPAGE="http://66.93.236.84/~jedwin/projects/chmlib/" +SRC_URI="http://66.93.236.84/~jedwin/projects/chmlib/${PF}.tgz" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86" + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.tmp + sed -e "s:gcc-3.2:gcc:" Makefile.tmp > Makefile + mv Makefile Makefile.tmp + sed -e "s:/usr/local/:/${D}/usr/:" Makefile.tmp > Makefile +} + +src_compile() { + emake || die +} + +src_install() { + #Make expects to find these dirs. + dodir /usr/bin + dodir /usr/lib + dodir /usr/include + dodir /usr/share/doc/${PF}/examples/ + + make install + + #Build additional utils, making this lib useful by itself. + #This cannot be build in src_compile as it needs to find chmlib. + emake extract_chmLib || die + emake chm_http || die + exeinto /usr/bin + newexe extract_chmLib chmextract + newexe chm_http chmhttp + + #Install examples as well. + insinto /usr/share/doc/${PF}/examples/ + doins test_chmLib.c enum_chmLib.c chm_http.c + + dodoc AUTHORS COPYING NEWS README +} |