/[gentoo-x86]/dev-libs/cgicc/cgicc-3.2.5.ebuild
Gentoo

Contents of /dev-libs/cgicc/cgicc-3.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon May 31 20:17:49 2010 UTC (4 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/cgicc/cgicc-3.2.5.ebuild,v 1.1 2008/01/30 11:23:26 dev-zero Exp $
4
5 DESCRIPTION="A C++ class library for writing CGI applications"
6 HOMEPAGE="http://www.cgicc.org/"
7 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
8 LICENSE="LGPL-3 doc? ( FDL-1.2 )"
9 SLOT="0"
10 KEYWORDS="~amd64 ~x86"
11 IUSE="doc debug"
12
13 DEPEND="doc? ( app-doc/doxygen )"
14 RDEPEND=""
15
16 src_unpack() {
17 unpack ${A}
18 cd "${S}"
19
20 # remove stray GNUCAP_LDFLAGS
21 # upstream bug: #22176
22 sed -i \
23 -e 's/@GNUCAP_LDFLAGS@//' \
24 cgicc/Makefile.in || die "sed failed"
25
26 # Fix docdir/htmldir paths in doc/Makefile.in
27 # upstream bug: #6385
28 sed -i \
29 -e 's|$(docdir)|@htmldir@|g' \
30 -e 's|$(prefix)/doc/\$(PACKAGE)-\$(VERSION)|@docdir@|' \
31 doc/Makefile.in || die "sed failed"
32 }
33
34 src_compile() {
35
36 if ! use doc ; then
37 sed -i \
38 -e 's/^\(SUBDIRS = .*\) doc \(.*\)/\1 \2/' \
39 Makefile.in || die "sed failed"
40 fi
41
42 econf \
43 --disable-demos \
44 --htmldir=/usr/share/doc/${PF}/html \
45 $(use_enable debug debug-logging) \
46 || die "econf failed"
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install || die "make install failed"
52
53 dodoc AUTHORS BUGS ChangeLog NEWS README* THANKS
54
55 # Manually install the m4-file
56 # upstream bug: #22177
57 insinto /usr/share/aclocal
58 doins example/cgicc.m4
59
60 if use doc ; then
61 insinto /usr/share/doc/${PF}/contrib
62 doins contrib/*.cpp contrib/README
63
64 insinto /usr/share/doc/${PF}/demo
65 doins -r demo/*.{h,cpp} demo/images demo/README
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20