/[gentoo-x86]/dev-libs/libhtmlparse/libhtmlparse-0.1.13-r1.ebuild
Gentoo

Contents of /dev-libs/libhtmlparse/libhtmlparse-0.1.13-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 10 10:50:41 2014 UTC (5 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +8 -2 lines
Use prune_libtool_files from eutils.eclass to drop libhtmlparse.la when it's not required. Mark stable for x86 as prereq for dropping -r0.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libhtmlparse/libhtmlparse-0.1.13-r1.ebuild,v 1.2 2014/03/10 10:47:39 ssuominen Exp $
4
5 EAPI=5
6 inherit eutils
7
8 DESCRIPTION="HTML parsing library. It takes HTML tags, text, and calls callbacks for each type of token"
9 HOMEPAGE="http://msalem.translator.cx/libhtmlparse.html"
10 SRC_URI="http://msalem.translator.cx/dist/${P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="~amd64 x86"
15 IUSE="static-libs"
16
17 DOCS=( AUTHORS BUGS INSTALL ChangeLog NEWS README TODO )
18
19 src_unpack() {
20 # for some reason, we get a "this does not look like a tar archive" error
21 # but the following works... go figure.
22 gunzip -c "${DISTDIR}"/${P}.tar.gz > ${P}.tar || die 'gunzip failed'
23 tar xf ${P}.tar || die "failed to unpack ${P}.tar"
24 rm ${P}.tar || die "rm failed"
25 }
26
27 src_configure() {
28 econf \
29 $(use_enable static-libs static)
30 }
31
32 src_install() {
33 default
34 prune_libtool_files
35 }

  ViewVC Help
Powered by ViewVC 1.1.20